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.001647/0.001647, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 226.5 MB / 243.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008321/0.0008321, allocations: 87.8 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.308/0.308, allocations: 44.83 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002816/0.0002817, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3316, allocations: 62.95 MB / 0.5159 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.02622/0.3579, allocations: 36.8 MB / 0.5518 GB, free: 10.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0203/0.3782, allocations: 18.88 MB / 0.5703 GB, free: 13.51 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001228/0.3795, allocations: 26.94 kB / 0.5703 GB, free: 13.5 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.3808, allocations: 373.1 kB / 0.5706 GB, free: 13.3 MB / 394.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.0135/0.3943, allocations: 4.136 MB / 0.5747 GB, free: 10.25 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007145/0.4015, allocations: 2.044 MB / 0.5767 GB, free: 8.758 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003578/0.4051, allocations: 2.397 MB / 0.579 GB, free: 7.348 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008198/0.406, allocations: 431.1 kB / 0.5794 GB, free: 7.07 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01067/0.4166, allocations: 6.44 MB / 0.5857 GB, free: 1.836 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01253/0.4292, allocations: 9.111 MB / 0.5946 GB, free: 8.719 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002153/0.4295, allocations: 36 kB / 0.5947 GB, free: 8.684 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01328/0.4428, allocations: 7.027 MB / 0.6015 GB, free: 1.648 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004668/0.4433, allocations: 251.2 kB / 0.6018 GB, free: 1.402 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007202/0.444, allocations: 428 kB / 0.6022 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00638/0.4504, allocations: 3.528 MB / 0.6056 GB, free: 13.44 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.4504, allocations: 0 / 0.6056 GB, free: 13.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4504, allocations: 0 / 0.6056 GB, free: 13.44 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.4504, allocations: 0 / 0.6056 GB, free: 13.44 MB / 426.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.004058/0.4545, allocations: 1.497 MB / 0.6071 GB, free: 11.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.4546, allocations: 12.03 kB / 0.6071 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002021/0.4566, allocations: 311.7 kB / 0.6074 GB, free: 11.58 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008823/0.4575, allocations: 0.5598 MB / 0.6079 GB, free: 10.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.4576, allocations: 109.3 kB / 0.608 GB, free: 10.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.47e-05/0.4577, allocations: 68.11 kB / 0.6081 GB, free: 10.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002277/0.46, allocations: 1.162 MB / 0.6092 GB, free: 9.527 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.46, allocations: 7.938 kB / 0.6092 GB, free: 9.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-05/0.4601, allocations: 32 kB / 0.6093 GB, free: 9.488 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-05/0.4602, allocations: 45.3 kB / 0.6093 GB, free: 9.445 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.4618, allocations: 0.8362 MB / 0.6101 GB, free: 8.609 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.005612/0.4674, allocations: 5.517 MB / 0.6155 GB, free: 2.723 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.4686, allocations: 0.578 MB / 0.6161 GB, free: 2.129 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003351/0.4689, allocations: 227.3 kB / 0.6163 GB, free: 1.902 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08759/0.5565, allocations: 51.73 MB / 0.6668 GB, free: 7.816 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.954e-05/0.5566, allocations: 42.5 kB / 0.6669 GB, free: 7.766 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 2.364e-06/0.5566, allocations: 0 / 0.6669 GB, free: 7.766 MB / 490.7 MB Notification: Performance of matching and sorting (n=46): time 0.005175/0.5618, allocations: 1.939 MB / 0.6688 GB, free: 5.77 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/0.5619, allocations: 166.1 kB / 0.6689 GB, free: 5.57 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007456/0.5627, allocations: 0.6171 MB / 0.6695 GB, free: 4.941 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.718e-05/0.5627, allocations: 37.7 kB / 0.6695 GB, free: 4.898 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002567/0.563, allocations: 391.2 kB / 0.6699 GB, free: 4.508 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.5631, allocations: 169.7 kB / 0.6701 GB, free: 4.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-05/0.5632, allocations: 16 kB / 0.6701 GB, free: 4.324 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5633, allocations: 378.8 kB / 0.6705 GB, free: 3.945 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003827/0.5637, allocations: 221.9 kB / 0.6707 GB, free: 3.727 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006035/0.5643, allocations: 0.5679 MB / 0.6712 GB, free: 2.992 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.5654, allocations: 0.8329 MB / 0.672 GB, free: 2.008 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.413e-06/0.5654, allocations: 4 kB / 0.672 GB, free: 2.004 MB / 490.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001364/0.5668, allocations: 0.8629 MB / 0.6729 GB, free: 1.129 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.5668, allocations: 12 kB / 0.6729 GB, free: 1.117 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.5668, allocations: 8 kB / 0.6729 GB, free: 1.109 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002811/0.5671, allocations: 77.5 kB / 0.673 GB, free: 1.031 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.5682, allocations: 275.6 kB / 0.6732 GB, free: 0.7617 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001426/0.5697, allocations: 1.991 MB / 0.6752 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005526/0.5702, allocations: 60.12 kB / 0.6752 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-05/0.5703, allocations: 40 kB / 0.6753 GB, free: 14.52 MB / 0.4948 GB 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.0003544/0.5707, allocations: 283.8 kB / 0.6756 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.5708, allocations: 71.16 kB / 0.6756 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002396/0.5732, allocations: 2.228 MB / 0.6778 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.462e-05/0.5733, allocations: 31.95 kB / 0.6778 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.5733, allocations: 0 / 0.6778 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.5733, allocations: 0 / 0.6778 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003523/0.5768, allocations: 3.284 MB / 0.681 GB, free: 8.535 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.5768, allocations: 4.031 kB / 0.681 GB, free: 8.531 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008945/0.5777, allocations: 195.7 kB / 0.6812 GB, free: 8.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003748/0.5781, allocations: 88.69 kB / 0.6813 GB, free: 8.25 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.029e-05/0.5782, allocations: 19.94 kB / 0.6813 GB, free: 8.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.5795, allocations: 1.995 MB / 0.6833 GB, free: 6.078 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5795, allocations: 0 / 0.6833 GB, free: 6.078 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00213/0.5817, allocations: 1.978 MB / 0.6852 GB, free: 4.078 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003777/0.5821, allocations: 291.3 kB / 0.6855 GB, free: 3.773 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.5822, allocations: 16 kB / 0.6855 GB, free: 3.758 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005663/0.5827, allocations: 59.8 kB / 0.6856 GB, free: 3.699 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.5828, allocations: 32.39 kB / 0.6856 GB, free: 3.668 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-05/0.5829, allocations: 31.92 kB / 0.6856 GB, free: 3.637 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006099/0.5835, allocations: 0.499 MB / 0.6861 GB, free: 3.137 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5835, allocations: 0 / 0.6861 GB, free: 3.137 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002902/0.5864, allocations: 1.093 MB / 0.6872 GB, free: 2.043 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.004509/0.5909, allocations: 1.223 MB / 0.6884 GB, free: 0.8203 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.1861/0.7771, allocations: 0.919 MB / 0.6893 GB, free: 155 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/0.7771, allocations: 0.8125 kB / 0.6893 GB, free: 155 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001482/0.7786, allocations: 0.6658 MB / 0.6899 GB, free: 155 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001928/0.7805, allocations: 359.6 kB / 0.6903 GB, free: 155 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.7835, allocations: 2.758 MB / 0.693 GB, free: 153.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.7839, allocations: 1.107 MB / 0.694 GB, free: 153 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.7841, allocations: 71.83 kB / 0.6941 GB, free: 153 MB / 0.4948 GB Notification: Performance of SimCode: time 8.62e-07/0.7841, allocations: 3.688 kB / 0.6941 GB, free: 153 MB / 0.4948 GB Notification: Performance of Templates: time 0.04557/0.8297, allocations: 37.84 MB / 0.7311 GB, free: 137.2 MB / 0.4948 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