Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 123.9 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 185.2 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 47.91 kB / 365.7 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1026, allocations: 52.14 MB / 417.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006199/0.1088, allocations: 4.958 MB / 422.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002505/0.1113, allocations: 1.268 MB / 424 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002541/0.1116, allocations: 15.94 kB / 424 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002943/0.1119, allocations: 122.7 kB / 424.2 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000428/0.1123, allocations: 257.7 kB / 424.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006662/0.113, allocations: 315.4 kB / 424.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009999/0.114, allocations: 1.095 MB / 425.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003109/0.1143, allocations: 186.5 kB / 426 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004044/0.1147, allocations: 422.5 kB / 426.4 MB, free: 4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005166/0.1152, allocations: 482 kB / 426.9 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.1153, allocations: 92 kB / 427 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001885/0.1155, allocations: 108 kB / 427.1 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.1157, allocations: 199.3 kB / 427.3 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003966/0.1161, allocations: 457.8 kB / 427.7 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.1171, allocations: 1.035 MB / 428.8 MB, free: 1.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.1171, allocations: 8 kB / 428.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1171, allocations: 0 / 428.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.437e-06/0.1171, allocations: 0 / 428.8 MB, free: 1.641 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002443/0.1195, allocations: 1.277 MB / 430 MB, free: 304 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.1196, allocations: 15.97 kB / 430.1 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/0.1197, allocations: 110.6 kB / 430.2 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.1198, allocations: 96.38 kB / 430.3 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007008/0.1205, allocations: 499.9 kB / 430.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.678e-05/0.1206, allocations: 45.69 kB / 430.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.1207, allocations: 72.31 kB / 430.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.122, allocations: 0.6468 MB / 431.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.122, allocations: 0 / 431.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.076e-05/0.1221, allocations: 28 kB / 431.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.1221, allocations: 16 kB / 431.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.1236, allocations: 0.7 MB / 432.2 MB, free: 14.03 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003681/0.1273, allocations: 2.383 MB / 434.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/0.1287, allocations: 0.5592 MB / 435.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006834/0.1293, allocations: 322.6 kB / 435.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.154e-05/0.1294, allocations: 4.438 kB / 435.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008542/0.1302, allocations: 425.4 kB / 435.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=54): time 2.174e-06/0.1302, allocations: 0 / 435.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.2458/0.3761, allocations: 15.39 MB / 451.3 MB, free: 29.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.745e-05/0.3762, allocations: 144.2 kB / 451.5 MB, free: 29.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007446/0.3769, allocations: 0.5143 MB / 452 MB, free: 29.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.3771, allocations: 45.77 kB / 452 MB, free: 29.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.3773, allocations: 400 kB / 452.4 MB, free: 29.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000255/0.3776, allocations: 327.5 kB / 452.7 MB, free: 28.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003327/0.3779, allocations: 190.6 kB / 452.9 MB, free: 28.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.579e-05/0.378, allocations: 385.4 kB / 453.3 MB, free: 28.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001835/0.3799, allocations: 0.7211 MB / 454 MB, free: 28.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001926/0.3818, allocations: 0.9589 MB / 455 MB, free: 28.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003619/0.3854, allocations: 1.692 MB / 456.7 MB, free: 27.76 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.3854, allocations: 2.781 kB / 456.7 MB, free: 27.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02196/0.4074, allocations: 5.332 MB / 462 MB, free: 26.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.052e-05/0.4074, allocations: 67.77 kB / 462.1 MB, free: 26.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.4074, allocations: 6.781 kB / 462.1 MB, free: 26.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03187/0.4393, allocations: 6.831 MB / 468.9 MB, free: 24.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006545/0.44, allocations: 150.7 kB / 469 MB, free: 24.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004814/0.4448, allocations: 3.018 MB / 472.1 MB, free: 22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.4462, allocations: 176 kB / 472.2 MB, free: 21.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.292e-05/0.4463, allocations: 48.25 kB / 472.3 MB, free: 21.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003347/0.4467, allocations: 225 kB / 472.5 MB, free: 21.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.4468, allocations: 87.3 kB / 472.6 MB, free: 21.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01932/0.4661, allocations: 5.049 MB / 477.6 MB, free: 18.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/0.4661, allocations: 12 kB / 477.6 MB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.4661, allocations: 0.5625 kB / 477.6 MB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/0.4661, allocations: 9.766 kB / 477.7 MB, free: 18.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.4672, allocations: 1.108 MB / 478.8 MB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.4672, allocations: 7.938 kB / 478.8 MB, free: 17.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004472/0.4677, allocations: 93.27 kB / 478.9 MB, free: 17.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02964/0.4973, allocations: 6.778 MB / 485.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002251/0.4975, allocations: 27.97 kB / 485.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004685/0.5022, allocations: 3.035 MB / 488.7 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.644e-06/0.5022, allocations: 0 / 488.7 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02121/0.5234, allocations: 5.942 MB / 494.6 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002145/0.5236, allocations: 148.6 kB / 494.8 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.5238, allocations: 16 kB / 494.8 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/0.525, allocations: 176.4 kB / 495 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.5252, allocations: 96.88 kB / 495.1 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.21e-05/0.5253, allocations: 36.72 kB / 495.1 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000281/0.5256, allocations: 354.8 kB / 495.5 MB, free: 440 kB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5256, allocations: 0 / 495.5 MB, free: 440 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006332/0.5262, allocations: 257.3 kB / 495.7 MB, free: 184 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02417/0.5504, allocations: 6.543 MB / 0.4905 GB, free: 9.613 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005654/0.556, allocations: 1.971 MB / 0.4924 GB, free: 7.621 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.5561, allocations: 0 / 0.4924 GB, free: 7.621 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003218/0.5593, allocations: 1.016 MB / 0.4934 GB, free: 6.613 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007204/0.56, allocations: 143.9 kB / 0.4935 GB, free: 6.477 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05373/0.6137, allocations: 15.89 MB / 0.509 GB, free: 6.297 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.6143, allocations: 0.9507 MB / 0.51 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003209/0.6146, allocations: 62.36 kB / 0.51 GB, free: 5.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/0.615, allocations: 275.3 kB / 0.5103 GB, free: 4.996 MB / 398.1 MB Notification: Performance of SimCode: time 1.573e-06/0.615, allocations: 0 / 0.5103 GB, free: 4.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07293/0.6879, allocations: 29.92 MB / 0.5395 GB, free: 7.363 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/14.07, allocations: 7.375 kB / 0.5395 GB, free: 7.359 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.187426817137748]