Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.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) 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.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.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.00123/0.00123, allocations: 105.5 kB / 18.4 MB, free: 4.68 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.001297/0.001297, allocations: 187 kB / 19.33 MB, free: 3.758 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.342/1.342, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001252/0.001252, allocations: 51.92 kB / 329.2 MB, free: 3.254 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09443/0.09569, allocations: 46.61 MB / 375.9 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.2463/0.342, allocations: 32.57 MB / 408.4 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02325/0.3653, allocations: 15.73 MB / 424.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006352/0.3661, allocations: 8.406 kB / 424.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.3672, allocations: 271.1 kB / 424.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001271/0.3685, allocations: 357 kB / 424.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02093/0.3895, allocations: 5.784 MB / 430.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001741/0.3912, allocations: 1.005 MB / 431.6 MB, free: 7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002998/0.3915, allocations: 115.1 kB / 431.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006292/0.3978, allocations: 2.211 MB / 433.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007034/0.3986, allocations: 302.8 kB / 434.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.3987, allocations: 40 kB / 434.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01387/0.4126, allocations: 6.068 MB / 440.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002438/0.4129, allocations: 115.6 kB / 440.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004702/0.4134, allocations: 231.2 kB / 440.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.4236, allocations: 3.781 MB / 444.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.035e-05/0.4236, allocations: 4 kB / 444.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.4237, allocations: 0 / 444.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.099e-05/0.4237, allocations: 0 / 444.4 MB, free: 10.95 MB / 366.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.002905/0.4266, allocations: 0.9909 MB / 445.4 MB, free: 9.906 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.685e-05/0.4267, allocations: 16.03 kB / 445.4 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001469/0.4282, allocations: 148.3 kB / 445.6 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006055/0.4288, allocations: 327.6 kB / 445.9 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.4288, allocations: 25.91 kB / 445.9 MB, free: 9.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.769e-05/0.4289, allocations: 36.56 kB / 446 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.4302, allocations: 0.5151 MB / 446.5 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.4302, allocations: 0 / 446.5 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.747e-05/0.4303, allocations: 16 kB / 446.5 MB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.4303, allocations: 8 kB / 446.5 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006508/0.4309, allocations: 325.9 kB / 446.8 MB, free: 8.434 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.002976/0.4339, allocations: 2.552 MB / 449.4 MB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005727/0.4345, allocations: 274.8 kB / 449.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/0.4347, allocations: 113.2 kB / 449.8 MB, free: 5.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06405/0.4987, allocations: 31.04 MB / 480.8 MB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.348e-05/0.4989, allocations: 34.56 kB / 480.8 MB, free: 2.609 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.264e-06/0.4989, allocations: 0 / 480.8 MB, free: 2.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.003773/0.5026, allocations: 1.198 MB / 482 MB, free: 1.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.5027, allocations: 55.41 kB / 482.1 MB, free: 1.266 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.503, allocations: 250.6 kB / 482.3 MB, free: 1.016 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.5031, allocations: 37.7 kB / 482.4 MB, free: 0.9727 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.5032, allocations: 192 kB / 482.5 MB, free: 0.7812 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.117e-05/0.5033, allocations: 110.4 kB / 482.7 MB, free: 0.6719 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.5034, allocations: 89.97 kB / 482.7 MB, free: 0.5781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.5036, allocations: 334.8 kB / 483.1 MB, free: 248 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.5037, allocations: 88.84 kB / 483.2 MB, free: 160 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000243/0.504, allocations: 214.9 kB / 483.4 MB, free: 15.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000441/0.5044, allocations: 346.3 kB / 483.7 MB, free: 15.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5045, allocations: 0 / 483.7 MB, free: 15.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006953/0.5052, allocations: 410.7 kB / 484.1 MB, free: 15.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.5052, allocations: 11.98 kB / 484.1 MB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.5052, allocations: 4 kB / 484.1 MB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002865/0.5055, allocations: 58.16 kB / 484.2 MB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003624/0.5059, allocations: 95.72 kB / 484.3 MB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001758/0.5076, allocations: 2.529 MB / 486.8 MB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.5079, allocations: 12 kB / 486.8 MB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.5079, allocations: 20 kB / 486.8 MB, free: 12.16 MB / 414.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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.5081, allocations: 161.9 kB / 487 MB, free: 12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.966e-05/0.5082, allocations: 31.62 kB / 487 MB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.5093, allocations: 0.8655 MB / 487.9 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.5093, allocations: 7.984 kB / 487.9 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.5093, allocations: 3.938 kB / 487.9 MB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000922/0.5102, allocations: 1.04 MB / 488.9 MB, free: 9.953 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001746/0.512, allocations: 1.493 MB / 490.4 MB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.512, allocations: 7.875 kB / 490.4 MB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002123/0.5122, allocations: 47.97 kB / 490.5 MB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003174/0.5125, allocations: 72.7 kB / 490.6 MB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.5126, allocations: 8 kB / 490.6 MB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003492/0.5129, allocations: 0.5953 MB / 491.2 MB, free: 7.629 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.513, allocations: 0 / 491.2 MB, free: 7.629 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009533/0.5139, allocations: 0.8169 MB / 492 MB, free: 6.789 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.514, allocations: 108.7 kB / 492.1 MB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.296e-05/0.5141, allocations: 20.06 kB / 492.1 MB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/0.5144, allocations: 29.84 kB / 492.1 MB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.5145, allocations: 15.97 kB / 492.1 MB, free: 6.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.5145, allocations: 15.98 kB / 492.2 MB, free: 6.586 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002523/0.5148, allocations: 235.1 kB / 492.4 MB, free: 6.352 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5148, allocations: 0 / 492.4 MB, free: 6.352 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002565/0.5173, allocations: 0.8589 MB / 493.2 MB, free: 5.492 MB / 414.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.h) * 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 (32): * Single equations (assignments): 29 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00538/0.5227, allocations: 0.9734 MB / 494.2 MB, free: 4.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.5239, allocations: 491.1 kB / 494.7 MB, free: 4.016 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.5239, allocations: 3.938 kB / 494.7 MB, free: 4.012 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003874/0.5243, allocations: 245.5 kB / 494.9 MB, free: 3.773 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.5254, allocations: 179.2 kB / 495.1 MB, free: 3.602 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.5271, allocations: 1.018 MB / 496.1 MB, free: 2.547 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.5275, allocations: 0.8172 MB / 497 MB, free: 1.707 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.264e-05/0.5276, allocations: 43.42 kB / 497 MB, free: 1.664 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5276, allocations: 0 / 497 MB, free: 1.664 MB / 414.1 MB Notification: Performance of Templates: time 0.04114/0.5688, allocations: 23.01 MB / 0.5078 GB, free: 10.62 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches