Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.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) 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(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 110.3 kB / 17.28 MB, free: 6.215 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.00146/0.00146, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.532/1.532, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.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.0013/0.0013, allocations: 51.92 kB / 280.2 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09762, allocations: 46.63 MB / 326.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT): time 0.03472/0.1324, allocations: 32.49 MB / 359.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01704/0.1495, allocations: 15.78 MB / 375.1 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003861/0.15, allocations: 4 kB / 375.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008816/0.1509, allocations: 234.8 kB / 375.3 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007834/0.1516, allocations: 342.2 kB / 375.6 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2055/0.3571, allocations: 5.116 MB / 380.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001837/0.359, allocations: 0.9844 MB / 381.7 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003385/0.3594, allocations: 111.5 kB / 381.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0059/0.3653, allocations: 2.165 MB / 384 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008907/0.3662, allocations: 310.2 kB / 384.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.3664, allocations: 35.38 kB / 384.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01016/0.3766, allocations: 3.526 MB / 387.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003042/0.3769, allocations: 107 kB / 388 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008717/0.3778, allocations: 222.3 kB / 388.2 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008761/0.3866, allocations: 2.356 MB / 390.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3866, allocations: 0.9375 kB / 390.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3866, allocations: 0 / 390.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.811e-05/0.3867, allocations: 4.375 kB / 390.6 MB, free: 11.75 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003277/0.3899, allocations: 0.813 MB / 391.4 MB, free: 11.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.39, allocations: 13.83 kB / 391.4 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009542/0.391, allocations: 88.3 kB / 391.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004545/0.3914, allocations: 298.9 kB / 391.8 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.3915, allocations: 23.59 kB / 391.8 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.16e-05/0.3916, allocations: 33.38 kB / 391.8 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008861/0.3924, allocations: 450.6 kB / 392.3 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.3925, allocations: 0 / 392.3 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.055e-05/0.3925, allocations: 19.31 kB / 392.3 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.3925, allocations: 8.156 kB / 392.3 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005667/0.3931, allocations: 317.2 kB / 392.6 MB, free: 10.84 MB / 318.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.002535/0.3957, allocations: 2.619 MB / 395.2 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005832/0.3963, allocations: 253.9 kB / 395.5 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.3964, allocations: 106.6 kB / 395.6 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02851/0.4249, allocations: 15.48 MB / 411 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.425, allocations: 34 kB / 411.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.824e-06/0.425, allocations: 0 / 411.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.004493/0.4295, allocations: 1.313 MB / 412.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.4296, allocations: 57.97 kB / 412.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/0.4299, allocations: 269.4 kB / 412.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.4299, allocations: 29.45 kB / 412.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.4301, allocations: 195.4 kB / 412.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.656e-05/0.4301, allocations: 110.1 kB / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.4303, allocations: 78.06 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4304, allocations: 342.2 kB / 413.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.4305, allocations: 99.03 kB / 413.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.4308, allocations: 224.4 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004043/0.4312, allocations: 351.6 kB / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.4312, allocations: 3.031 kB / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006973/0.4319, allocations: 439.6 kB / 414.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.4319, allocations: 8.156 kB / 414.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.4319, allocations: 2.438 kB / 414.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003345/0.4353, allocations: 269.2 kB / 414.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003073/0.4356, allocations: 80.45 kB / 414.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001628/0.4372, allocations: 1.981 MB / 416.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003351/0.4376, allocations: 25.7 kB / 416.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/0.4376, allocations: 18.33 kB / 416.9 MB, free: 10.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001949/0.4378, allocations: 170.7 kB / 417.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.475e-05/0.4379, allocations: 43.44 kB / 417.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009741/0.4389, allocations: 0.9457 MB / 418.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.4389, allocations: 10.7 kB / 418.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.439, allocations: 2.594 kB / 418.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008844/0.4398, allocations: 1.115 MB / 419.2 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001854/0.4417, allocations: 1.578 MB / 420.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.4417, allocations: 1.203 kB / 420.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.4419, allocations: 56.53 kB / 420.8 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001888/0.4438, allocations: 288.8 kB / 421.1 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/0.4439, allocations: 11.3 kB / 421.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005816/0.4445, allocations: 0.6704 MB / 421.8 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4445, allocations: 0 / 421.8 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.4456, allocations: 0.9562 MB / 422.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.4458, allocations: 116.5 kB / 422.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.781e-05/0.4459, allocations: 18.28 kB / 422.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.4462, allocations: 11.25 kB / 422.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.4462, allocations: 19.41 kB / 422.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-05/0.4463, allocations: 17.3 kB / 422.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002821/0.4466, allocations: 240.1 kB / 423.2 MB, free: 6.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4466, allocations: 0 / 423.2 MB, free: 6.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003299/0.4499, allocations: 0.4931 MB / 423.7 MB, free: 5.781 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003543/0.4534, allocations: 0.5101 MB / 424.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.4545, allocations: 0.5379 MB / 424.7 MB, free: 4.918 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.4545, allocations: 0 / 424.7 MB, free: 4.918 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004386/0.455, allocations: 297.7 kB / 425 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.4562, allocations: 205.9 kB / 425.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.458, allocations: 1.195 MB / 426.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.4584, allocations: 0.8128 MB / 427.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003454/0.4588, allocations: 111.2 kB / 427.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.97e-05/0.4589, allocations: 33.19 kB / 427.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4589, allocations: 2.625 kB / 427.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of Templates: time 0.0268/0.4857, allocations: 18.82 MB / 446.2 MB, free: 15.82 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches