Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 198.3 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007114/0.0007114, allocations: 88.98 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1767/0.1767, allocations: 44.84 MB / 392 MB, free: 9.324 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002391/0.0002392, allocations: 11.98 kB / 464.8 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1019, allocations: 62.95 MB / 0.5153 GB, free: 2.758 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.2063/0.3083, allocations: 36.68 MB / 0.5512 GB, free: 4.309 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02231/0.3306, allocations: 18.87 MB / 0.5696 GB, free: 5.109 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001198/0.3318, allocations: 27.19 kB / 0.5696 GB, free: 5.094 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001315/0.3332, allocations: 371.5 kB / 0.57 GB, free: 4.785 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01245/0.3457, allocations: 4.074 MB / 0.5739 GB, free: 1.723 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005704/0.3514, allocations: 2.028 MB / 0.5759 GB, free: 15.7 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002648/0.354, allocations: 2.383 MB / 0.5783 GB, free: 13.31 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000786/0.3548, allocations: 418.6 kB / 0.5787 GB, free: 12.89 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009396/0.3642, allocations: 6.416 MB / 0.5849 GB, free: 6.465 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01147/0.3757, allocations: 9.112 MB / 0.5938 GB, free: 13.35 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002324/0.376, allocations: 36 kB / 0.5938 GB, free: 13.31 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01298/0.389, allocations: 6.961 MB / 0.6006 GB, free: 6.344 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000507/0.3895, allocations: 243.2 kB / 0.6009 GB, free: 6.105 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004083/0.39, allocations: 189.3 kB / 0.6011 GB, free: 5.914 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006061/0.396, allocations: 3.492 MB / 0.6045 GB, free: 2.414 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3961, allocations: 3.938 kB / 0.6045 GB, free: 2.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3961, allocations: 0 / 0.6045 GB, free: 2.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.611e-05/0.3961, allocations: 0 / 0.6045 GB, free: 2.41 MB / 410.7 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.003834/0.4, allocations: 1.508 MB / 0.6059 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.4, allocations: 8.031 kB / 0.606 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002065/0.4021, allocations: 314.8 kB / 0.6063 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009025/0.403, allocations: 0.5356 MB / 0.6068 GB, free: 15.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.4031, allocations: 112.7 kB / 0.6069 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.4032, allocations: 60 kB / 0.6069 GB, free: 15.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002264/0.4055, allocations: 1.165 MB / 0.6081 GB, free: 14.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.132e-05/0.4056, allocations: 8.688 kB / 0.6081 GB, free: 14.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.05e-05/0.4057, allocations: 31.98 kB / 0.6081 GB, free: 14.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-05/0.4057, allocations: 45.3 kB / 0.6082 GB, free: 14.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001579/0.4073, allocations: 0.8362 MB / 0.609 GB, free: 13.59 MB / 426.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.005808/0.4131, allocations: 5.522 MB / 0.6144 GB, free: 7.699 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.4143, allocations: 0.576 MB / 0.6149 GB, free: 7.105 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003222/0.4146, allocations: 223.3 kB / 0.6151 GB, free: 6.883 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09019/0.5048, allocations: 51.74 MB / 0.6657 GB, free: 12.79 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.921e-05/0.5049, allocations: 46.28 kB / 0.6657 GB, free: 12.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 2.645e-06/0.5049, allocations: 0 / 0.6657 GB, free: 12.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=46): time 0.004948/0.5098, allocations: 1.933 MB / 0.6676 GB, free: 10.75 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.5099, allocations: 166.2 kB / 0.6678 GB, free: 10.55 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007178/0.5107, allocations: 0.6209 MB / 0.6684 GB, free: 9.914 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.56e-05/0.5107, allocations: 37.7 kB / 0.6684 GB, free: 9.871 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.511, allocations: 387.2 kB / 0.6688 GB, free: 9.484 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.5111, allocations: 169.7 kB / 0.6689 GB, free: 9.316 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.182e-05/0.5112, allocations: 16 kB / 0.669 GB, free: 9.301 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.5113, allocations: 378.8 kB / 0.6693 GB, free: 8.922 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/0.5117, allocations: 225.9 kB / 0.6695 GB, free: 8.699 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005751/0.5123, allocations: 0.564 MB / 0.6701 GB, free: 7.969 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004843/0.5128, allocations: 328.5 kB / 0.6704 GB, free: 7.648 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.5128, allocations: 4 kB / 0.6704 GB, free: 7.645 MB / 490.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001303/0.5141, allocations: 0.8636 MB / 0.6712 GB, free: 6.773 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.5141, allocations: 8 kB / 0.6712 GB, free: 6.766 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.5142, allocations: 20.03 kB / 0.6713 GB, free: 6.746 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002833/0.5145, allocations: 68.81 kB / 0.6713 GB, free: 6.676 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/0.5156, allocations: 275.6 kB / 0.6716 GB, free: 6.406 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001447/0.5171, allocations: 1.987 MB / 0.6735 GB, free: 4.262 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005525/0.5177, allocations: 55.86 kB / 0.6736 GB, free: 4.207 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.786e-05/0.5177, allocations: 48.05 kB / 0.6736 GB, free: 4.16 MB / 490.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003533/0.5181, allocations: 268.5 kB / 0.6739 GB, free: 3.891 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.5182, allocations: 75.11 kB / 0.674 GB, free: 3.816 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002375/0.5206, allocations: 2.228 MB / 0.6761 GB, free: 1.578 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-05/0.5206, allocations: 31.95 kB / 0.6762 GB, free: 1.547 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.5207, allocations: 0 / 0.6762 GB, free: 1.547 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.5207, allocations: 3.984 kB / 0.6762 GB, free: 1.543 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003552/0.5242, allocations: 3.292 MB / 0.6794 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.5242, allocations: 0 / 0.6794 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009302/0.5252, allocations: 187.8 kB / 0.6796 GB, free: 13.99 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003905/0.5256, allocations: 100.6 kB / 0.6797 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/0.5256, allocations: 8 kB / 0.6797 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.527, allocations: 1.999 MB / 0.6816 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5271, allocations: 3.984 kB / 0.6816 GB, free: 11.72 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002126/0.5292, allocations: 1.978 MB / 0.6836 GB, free: 9.719 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003546/0.5296, allocations: 283.2 kB / 0.6838 GB, free: 9.422 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.109e-05/0.5297, allocations: 12 kB / 0.6838 GB, free: 9.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005709/0.5302, allocations: 56.02 kB / 0.6839 GB, free: 9.355 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.033e-05/0.5303, allocations: 40.28 kB / 0.6839 GB, free: 9.316 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/0.5304, allocations: 23.98 kB / 0.684 GB, free: 9.293 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0005983/0.531, allocations: 0.5029 MB / 0.6844 GB, free: 8.789 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/0.531, allocations: 0 / 0.6844 GB, free: 8.789 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003161/0.5341, allocations: 1.097 MB / 0.6855 GB, free: 7.691 MB / 0.4948 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004808/0.539, allocations: 1.225 MB / 0.6867 GB, free: 6.469 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001812/0.5408, allocations: 0.924 MB / 0.6876 GB, free: 5.547 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.5408, allocations: 0 / 0.6876 GB, free: 5.547 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.542, allocations: 0.66 MB / 0.6883 GB, free: 4.891 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001907/0.5439, allocations: 377.7 kB / 0.6886 GB, free: 4.531 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003313/0.5473, allocations: 2.755 MB / 0.6913 GB, free: 1.734 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006379/0.5479, allocations: 1.11 MB / 0.6924 GB, free: 0.5977 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.5481, allocations: 67.44 kB / 0.6925 GB, free: 0.5312 MB / 0.4948 GB Notification: Performance of SimCode: time 1.773e-06/0.5481, allocations: 4 kB / 0.6925 GB, free: 0.5273 MB / 0.4948 GB Notification: Performance of Templates: time 0.237/0.7851, allocations: 37.84 MB / 0.7294 GB, free: 166.3 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches