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.001366/0.001366, allocations: 120.8 kB / 17.79 MB, free: 5.285 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.001307/0.001307, allocations: 186.9 kB / 20.73 MB, free: 2.355 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.36/1.36, allocations: 225.6 MB / 249.1 MB, free: 3.613 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.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 0.001461/0.001461, allocations: 47.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0939/0.09537, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.2159/0.3113, allocations: 37.86 MB / 455.7 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02888/0.3402, allocations: 30.71 MB / 486.4 MB, free: 7.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005493/0.3407, allocations: 14.94 kB / 486.4 MB, free: 7.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.3418, allocations: 425.8 kB / 486.8 MB, free: 7.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00113/0.343, allocations: 0.5381 MB / 487.3 MB, free: 7.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01517/0.3581, allocations: 5.228 MB / 492.6 MB, free: 4.844 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001944/0.3601, allocations: 1.356 MB / 493.9 MB, free: 4.082 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002728/0.3603, allocations: 125.9 kB / 494 MB, free: 4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008251/0.3612, allocations: 0.535 MB / 494.6 MB, free: 3.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005469/0.3617, allocations: 462.4 kB / 495 MB, free: 3.445 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.858e-05/0.3618, allocations: 53.47 kB / 495.1 MB, free: 3.445 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02343/0.3852, allocations: 12.88 MB / 0.4961 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003602/0.3856, allocations: 159.5 kB / 0.4962 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007236/0.3863, allocations: 318.7 kB / 0.4965 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03666/0.423, allocations: 14.93 MB / 0.5111 GB, free: 12.03 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.423, allocations: 3.984 kB / 0.5111 GB, free: 12.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.423, allocations: 0 / 0.5111 GB, free: 12.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.423, allocations: 0 / 0.5111 GB, free: 12.02 MB / 414.1 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.00715/0.4301, allocations: 1.475 MB / 0.5125 GB, free: 10.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4302, allocations: 15.89 kB / 0.5126 GB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.4303, allocations: 90.52 kB / 0.5126 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006932/0.431, allocations: 95.58 kB / 0.5127 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006244/0.4316, allocations: 386.1 kB / 0.5131 GB, free: 9.871 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.4316, allocations: 33.75 kB / 0.5131 GB, free: 9.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.518e-05/0.4317, allocations: 48 kB / 0.5132 GB, free: 9.793 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.4329, allocations: 0.6205 MB / 0.5138 GB, free: 9.121 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.4329, allocations: 7.984 kB / 0.5138 GB, free: 9.113 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.783e-05/0.433, allocations: 20 kB / 0.5138 GB, free: 9.094 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.433, allocations: 17.77 kB / 0.5138 GB, free: 9.078 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.434, allocations: 0.5229 MB / 0.5143 GB, free: 8.559 MB / 414.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.004893/0.4389, allocations: 3.805 MB / 0.5181 GB, free: 4.445 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00095/0.4398, allocations: 403.5 kB / 0.5184 GB, free: 4.047 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.4402, allocations: 197.4 kB / 0.5186 GB, free: 3.852 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003547/0.4437, allocations: 3.459 MB / 0.522 GB, free: 15.69 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.4437, allocations: 38.94 kB / 0.522 GB, free: 15.64 MB / 430.1 MB Notification: Performance of pre-optimization done (n=46): time 3.096e-06/0.4437, allocations: 0.9375 kB / 0.522 GB, free: 15.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.009326/0.4531, allocations: 2.037 MB / 0.524 GB, free: 13.53 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.4531, allocations: 59.78 kB / 0.5241 GB, free: 13.46 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/0.4535, allocations: 312.5 kB / 0.5244 GB, free: 13.14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.21e-05/0.4535, allocations: 33.7 kB / 0.5244 GB, free: 13.11 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.4537, allocations: 241.1 kB / 0.5246 GB, free: 12.87 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/0.4538, allocations: 206.2 kB / 0.5248 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/0.454, allocations: 118.3 kB / 0.525 GB, free: 12.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.4542, allocations: 346.8 kB / 0.5253 GB, free: 12.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000304/0.4545, allocations: 181.7 kB / 0.5255 GB, free: 12.02 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004459/0.4549, allocations: 328.1 kB / 0.5258 GB, free: 11.64 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008168/0.4558, allocations: 0.5452 MB / 0.5263 GB, free: 11.04 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.4558, allocations: 4 kB / 0.5263 GB, free: 11.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001277/0.457, allocations: 0.6741 MB / 0.527 GB, free: 10.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.4571, allocations: 11.94 kB / 0.527 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.4571, allocations: 4 kB / 0.527 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009288/0.4664, allocations: 450.5 kB / 0.5274 GB, free: 9.883 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000659/0.467, allocations: 139.8 kB / 0.5275 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002647/0.4697, allocations: 3.092 MB / 0.5306 GB, free: 6.445 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.47, allocations: 15.94 kB / 0.5306 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-05/0.47, allocations: 32 kB / 0.5306 GB, free: 6.398 MB / 430.1 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.0002761/0.4703, allocations: 187.3 kB / 0.5308 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.4704, allocations: 43.77 kB / 0.5308 GB, free: 6.164 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001665/0.4721, allocations: 1.053 MB / 0.5319 GB, free: 5.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.4721, allocations: 8 kB / 0.5319 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.4721, allocations: 3.938 kB / 0.5319 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001288/0.4734, allocations: 1.087 MB / 0.5329 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002415/0.4758, allocations: 1.734 MB / 0.5346 GB, free: 2.117 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.4758, allocations: 0 / 0.5346 GB, free: 2.117 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003986/0.4762, allocations: 107.8 kB / 0.5347 GB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003082/0.4793, allocations: 349.1 kB / 0.5351 GB, free: 1.664 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.115e-05/0.4793, allocations: 16 kB / 0.5351 GB, free: 1.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008127/0.4802, allocations: 1.155 MB / 0.5362 GB, free: 452 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4802, allocations: 0 / 0.5362 GB, free: 452 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001605/0.4818, allocations: 1.125 MB / 0.5373 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/0.4819, allocations: 128.9 kB / 0.5374 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.31e-05/0.482, allocations: 16 kB / 0.5374 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.4822, allocations: 15.75 kB / 0.5375 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.4823, allocations: 32.52 kB / 0.5375 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.4823, allocations: 24.55 kB / 0.5375 GB, free: 15.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000291/0.4826, allocations: 247 kB / 0.5377 GB, free: 14.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4826, allocations: 0 / 0.5377 GB, free: 14.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005086/0.4877, allocations: 0.9779 MB / 0.5387 GB, free: 13.84 MB / 446.1 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.03101/0.5187, allocations: 9.457 MB / 0.5479 GB, free: 4.344 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.5204, allocations: 0.6918 MB / 0.5486 GB, free: 3.633 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5204, allocations: 0 / 0.5486 GB, free: 3.633 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000595/0.521, allocations: 347.4 kB / 0.5489 GB, free: 3.297 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.5223, allocations: 277.9 kB / 0.5492 GB, free: 3.027 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.5327, allocations: 5.34 MB / 0.5544 GB, free: 13.48 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005023/0.5332, allocations: 0.8609 MB / 0.5553 GB, free: 12.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005398/0.5337, allocations: 240.7 kB / 0.5555 GB, free: 12.35 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.534, allocations: 199.4 kB / 0.5557 GB, free: 12.16 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.534, allocations: 0 / 0.5557 GB, free: 12.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0819/0.6159, allocations: 42.32 MB / 0.597 GB, free: 1.945 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.88, allocations: 11.81 kB / 0.597 GB, free: 1.938 MB / 494.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 19.20109123084694]