Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.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.0009079/0.0009079, allocations: 88.05 kB / 20.67 MB, free: 3.871 MB / 18.57 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.000925/0.000925, allocations: 145.1 kB / 23.93 MB, free: 0.6172 MB / 18.57 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 0.8711/0.8711, allocations: 173.4 MB / 200.5 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.912e-05/2.092e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.02409/0.02411, allocations: 34.4 MB / 352.8 MB, free: 3.809 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02019/0.0443, allocations: 27.1 MB / 379.9 MB, free: 8.613 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004985/0.0448, allocations: 11.94 kB / 380 MB, free: 8.602 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009246/0.04572, allocations: 389.5 kB / 380.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008898/0.04661, allocations: 0.5473 MB / 380.9 MB, free: 7.668 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01117/0.05778, allocations: 5.349 MB / 386.2 MB, free: 2.301 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.05912, allocations: 1.374 MB / 387.6 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002245/0.05934, allocations: 115.9 kB / 387.7 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007569/0.0601, allocations: 0.7285 MB / 388.5 MB, free: 80 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003982/0.0605, allocations: 402.8 kB / 388.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.529e-05/0.06055, allocations: 56 kB / 388.9 MB, free: 15.63 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01661/0.07716, allocations: 12.46 MB / 401.4 MB, free: 3.141 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003982/0.07756, allocations: 163.5 kB / 401.5 MB, free: 2.98 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007066/0.07827, allocations: 239.6 kB / 401.8 MB, free: 2.746 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02828/0.1065, allocations: 15.56 MB / 417.3 MB, free: 3.168 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1065, allocations: 4 kB / 417.3 MB, free: 3.164 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1066, allocations: 3.938 kB / 417.3 MB, free: 3.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.1066, allocations: 0 / 417.3 MB, free: 3.16 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.005734/0.1123, allocations: 1.384 MB / 418.7 MB, free: 1.738 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.1123, allocations: 8.031 kB / 418.7 MB, free: 1.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003577/0.1127, allocations: 90.52 kB / 418.8 MB, free: 1.633 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004407/0.1131, allocations: 95.56 kB / 418.9 MB, free: 1.539 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004673/0.1136, allocations: 328.3 kB / 419.2 MB, free: 1.191 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.1136, allocations: 33 kB / 419.2 MB, free: 1.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.1137, allocations: 48 kB / 419.3 MB, free: 1.113 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007877/0.1145, allocations: 0.833 MB / 420.1 MB, free: 184 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.1145, allocations: 3.938 kB / 420.1 MB, free: 180 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.1145, allocations: 16 kB / 420.1 MB, free: 164 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.1145, allocations: 12 kB / 420.2 MB, free: 152 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000606/0.1151, allocations: 0.5308 MB / 420.7 MB, free: 15.62 MB / 394.7 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.002361/0.1175, allocations: 2.797 MB / 423.5 MB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005845/0.1181, allocations: 400 kB / 423.9 MB, free: 12.33 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/0.1183, allocations: 200.9 kB / 424.1 MB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009755/0.1192, allocations: 0.6168 MB / 424.7 MB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.1193, allocations: 42.88 kB / 424.7 MB, free: 11.47 MB / 394.7 MB Notification: Performance of pre-optimization done (n=46): time 2.074e-06/0.1193, allocations: 0 / 424.7 MB, free: 11.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.005121/0.1244, allocations: 1.893 MB / 426.6 MB, free: 9.535 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.1244, allocations: 63.84 kB / 426.7 MB, free: 9.461 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.1246, allocations: 320.4 kB / 427 MB, free: 9.137 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.1247, allocations: 29.7 kB / 427 MB, free: 9.102 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1248, allocations: 241.1 kB / 427.3 MB, free: 8.859 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.944e-05/0.1248, allocations: 194.3 kB / 427.5 MB, free: 8.668 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.125, allocations: 110.3 kB / 427.6 MB, free: 8.555 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.959e-05/0.125, allocations: 358.7 kB / 427.9 MB, free: 8.195 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.1252, allocations: 177.2 kB / 428.1 MB, free: 8.023 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.1255, allocations: 336.1 kB / 428.4 MB, free: 7.633 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000512/0.126, allocations: 0.5457 MB / 429 MB, free: 7.027 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.126, allocations: 4 kB / 429 MB, free: 7.023 MB / 394.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008067/0.1268, allocations: 0.6713 MB / 429.6 MB, free: 6.332 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1268, allocations: 8 kB / 429.6 MB, free: 6.324 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1269, allocations: 4 kB / 429.6 MB, free: 6.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004901/0.1318, allocations: 450.5 kB / 430.1 MB, free: 5.871 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003578/0.1321, allocations: 143.8 kB / 430.2 MB, free: 5.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.1338, allocations: 2.99 MB / 433.2 MB, free: 2.555 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002292/0.134, allocations: 12 kB / 433.2 MB, free: 2.543 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.134, allocations: 32 kB / 433.3 MB, free: 2.512 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 3 systems {(1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002109/0.1343, allocations: 190.2 kB / 433.4 MB, free: 2.316 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.408e-05/0.1343, allocations: 43.72 kB / 433.5 MB, free: 2.273 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.1354, allocations: 1.086 MB / 434.6 MB, free: 1.172 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.1354, allocations: 16.19 kB / 434.6 MB, free: 1.156 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.1354, allocations: 0 / 434.6 MB, free: 1.156 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007854/0.1362, allocations: 1.103 MB / 435.7 MB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.1377, allocations: 1.673 MB / 437.4 MB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1377, allocations: 4 kB / 437.4 MB, free: 14.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/0.1379, allocations: 95.89 kB / 437.5 MB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/0.1393, allocations: 349.1 kB / 437.8 MB, free: 13.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.1394, allocations: 19.92 kB / 437.8 MB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004738/0.1398, allocations: 1.152 MB / 439 MB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1398, allocations: 0 / 439 MB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.1411, allocations: 1.151 MB / 440.1 MB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.325e-05/0.1412, allocations: 47.61 kB / 440.2 MB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.1412, allocations: 16 kB / 440.2 MB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.1414, allocations: 8 kB / 440.2 MB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.376e-05/0.1414, allocations: 44.41 kB / 440.2 MB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.1414, allocations: 19.98 kB / 440.3 MB, free: 11.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000183/0.1416, allocations: 251 kB / 440.5 MB, free: 11.03 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1416, allocations: 192 / 440.5 MB, free: 11.03 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003708/0.1453, allocations: 0.9779 MB / 441.5 MB, free: 10.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0225/0.1678, allocations: 9.591 MB / 451.1 MB, free: 420 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.122/0.2898, allocations: 0.6941 MB / 451.8 MB, free: 116.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.2898, allocations: 0 / 451.8 MB, free: 116.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005754/0.2904, allocations: 350.6 kB / 452.1 MB, free: 116.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009431/0.2913, allocations: 267.9 kB / 452.4 MB, free: 116.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007547/0.2989, allocations: 5.26 MB / 457.6 MB, free: 113.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.2991, allocations: 264.5 kB / 457.9 MB, free: 113.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004746/0.2995, allocations: 244.4 kB / 458.1 MB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.2997, allocations: 202.2 kB / 458.3 MB, free: 113.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.743e-06/0.2997, allocations: 4.75 kB / 458.3 MB, free: 113.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05269/0.3524, allocations: 43.95 MB / 0.4905 GB, free: 72.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.736/9.088, allocations: 4.062 kB / 0.4905 GB, free: 72.15 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.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: 12.838633712381124]