Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 118.7 kB / 17.09 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 197.2 kB / 18.01 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2076/0.2076, allocations: 43.53 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 63.91 kB / 442.5 MB, free: 5.625 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1076, allocations: 57.79 MB / 0.4886 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03908/0.1467, allocations: 39.04 MB / 0.5267 GB, free: 4.574 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2272/0.3739, allocations: 20.14 MB / 0.5464 GB, free: 3.969 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007727/0.3747, allocations: 23.06 kB / 0.5464 GB, free: 3.969 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.3759, allocations: 444.2 kB / 0.5468 GB, free: 3.961 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01343/0.3894, allocations: 5.105 MB / 0.5518 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006751/0.3961, allocations: 2.562 MB / 0.5543 GB, free: 3.121 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002684/0.3988, allocations: 1.996 MB / 0.5562 GB, free: 2.77 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000703/0.3995, allocations: 0.4954 MB / 0.5567 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009347/0.4089, allocations: 4.166 MB / 0.5608 GB, free: 1.555 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01147/0.4204, allocations: 5.431 MB / 0.5661 GB, free: 15.56 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002542/0.4207, allocations: 72.22 kB / 0.5662 GB, free: 15.56 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01504/0.4357, allocations: 7.378 MB / 0.5734 GB, free: 11.98 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004995/0.4363, allocations: 287.6 kB / 0.5736 GB, free: 11.79 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006976/0.437, allocations: 462 kB / 0.5741 GB, free: 11.51 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01094/0.4479, allocations: 5.11 MB / 0.5791 GB, free: 8.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.439e-05/0.448, allocations: 3.984 kB / 0.5791 GB, free: 8.477 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.448, allocations: 6.781 kB / 0.5791 GB, free: 8.473 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.448, allocations: 0 / 0.5791 GB, free: 8.473 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.004148/0.4522, allocations: 1.655 MB / 0.5807 GB, free: 7.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.4522, allocations: 12.27 kB / 0.5807 GB, free: 7.316 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002253/0.4545, allocations: 306.3 kB / 0.581 GB, free: 7.074 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.4555, allocations: 0.5867 MB / 0.5816 GB, free: 6.461 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.4557, allocations: 109.3 kB / 0.5817 GB, free: 6.344 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.4558, allocations: 58.78 kB / 0.5817 GB, free: 6.289 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002456/0.4583, allocations: 1.16 MB / 0.5829 GB, free: 5.047 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.4583, allocations: 7.938 kB / 0.5829 GB, free: 5.039 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.656e-05/0.4584, allocations: 28 kB / 0.5829 GB, free: 5.012 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-05/0.4585, allocations: 45.28 kB / 0.5829 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.4602, allocations: 0.8401 MB / 0.5838 GB, free: 4.129 MB / 430.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.006159/0.4664, allocations: 5.503 MB / 0.5891 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.4676, allocations: 0.5818 MB / 0.5897 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003414/0.468, allocations: 221.6 kB / 0.5899 GB, free: 13.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09478/0.5628, allocations: 46.4 MB / 0.6352 GB, free: 9.789 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/0.5628, allocations: 42.56 kB / 0.6353 GB, free: 9.738 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 3.106e-06/0.5629, allocations: 3.938 kB / 0.6353 GB, free: 9.734 MB / 494.1 MB Notification: Performance of matching and sorting (n=46): time 0.005394/0.5683, allocations: 1.914 MB / 0.6371 GB, free: 7.762 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/0.5683, allocations: 166.2 kB / 0.6373 GB, free: 7.562 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007634/0.5691, allocations: 0.621 MB / 0.6379 GB, free: 6.941 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.71e-05/0.5692, allocations: 37.73 kB / 0.6379 GB, free: 6.898 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002791/0.5695, allocations: 391 kB / 0.6383 GB, free: 6.516 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.5696, allocations: 174.2 kB / 0.6385 GB, free: 6.348 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.5698, allocations: 154.5 kB / 0.6386 GB, free: 6.191 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.57, allocations: 378.7 kB / 0.639 GB, free: 5.812 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003738/0.5704, allocations: 225.9 kB / 0.6392 GB, free: 5.594 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005916/0.571, allocations: 0.5795 MB / 0.6398 GB, free: 4.859 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.572, allocations: 0.8368 MB / 0.6406 GB, free: 3.863 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.572, allocations: 4 kB / 0.6406 GB, free: 3.859 MB / 494.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001357/0.5734, allocations: 0.8666 MB / 0.6414 GB, free: 2.98 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.5734, allocations: 15.66 kB / 0.6414 GB, free: 2.969 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.5735, allocations: 8 kB / 0.6415 GB, free: 2.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002613/0.5737, allocations: 68.81 kB / 0.6415 GB, free: 2.891 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.5749, allocations: 279.6 kB / 0.6418 GB, free: 2.609 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.5764, allocations: 2.075 MB / 0.6438 GB, free: 384 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004965/0.5769, allocations: 28 kB / 0.6438 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.746e-05/0.577, allocations: 43.98 kB / 0.6439 GB, free: 312 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (volume.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003507/0.5774, allocations: 269.3 kB / 0.6441 GB, free: 32 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.5776, allocations: 75.34 kB / 0.6442 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/0.5799, allocations: 2.209 MB / 0.6464 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.408e-05/0.5799, allocations: 31.95 kB / 0.6464 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.58, allocations: 0 / 0.6464 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.58, allocations: 7.922 kB / 0.6464 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003555/0.5835, allocations: 3.284 MB / 0.6496 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.5835, allocations: 0 / 0.6496 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000931/0.5845, allocations: 191.8 kB / 0.6498 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003344/0.5848, allocations: 92.62 kB / 0.6499 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/0.5849, allocations: 12.62 kB / 0.6499 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001486/0.5864, allocations: 2.099 MB / 0.6519 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5864, allocations: 0 / 0.6519 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.5886, allocations: 1.983 MB / 0.6539 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003818/0.589, allocations: 243.7 kB / 0.6541 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.5891, allocations: 31.69 kB / 0.6541 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005471/0.5897, allocations: 35.97 kB / 0.6542 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.062e-05/0.5898, allocations: 32.39 kB / 0.6542 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.032e-05/0.5898, allocations: 23.98 kB / 0.6542 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0006535/0.5905, allocations: 0.5068 MB / 0.6547 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5905, allocations: 0 / 0.6547 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003166/0.5937, allocations: 1.085 MB / 0.6558 GB, free: 3.824 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004884/0.5986, allocations: 1.213 MB / 0.657 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001947/0.6005, allocations: 0.9314 MB / 0.6579 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.6005, allocations: 1.859 kB / 0.6579 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.6017, allocations: 0.6639 MB / 0.6585 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.6037, allocations: 390.6 kB / 0.6589 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003315/0.6071, allocations: 2.261 MB / 0.6611 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006656/0.6078, allocations: 1.113 MB / 0.6622 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.608, allocations: 67.44 kB / 0.6623 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of SimCode: time 6.11e-07/0.608, allocations: 3.938 kB / 0.6623 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of Templates: time 0.048/0.656, allocations: 38.03 MB / 0.6994 GB, free: 7.18 MB / 0.545 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches