Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.001619, allocations: 200.5 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.407/1.407, allocations: 226.5 MB / 243.4 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007311/0.0007312, allocations: 106.1 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2762/0.2762, allocations: 44.82 MB / 392.3 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002603, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.268, allocations: 62.95 MB / 0.5159 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.02566/0.2937, allocations: 36.81 MB / 0.5518 GB, free: 11.07 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01913/0.3129, allocations: 18.89 MB / 0.5703 GB, free: 13.61 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001024/0.3139, allocations: 23.03 kB / 0.5703 GB, free: 13.59 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.3151, allocations: 372.2 kB / 0.5706 GB, free: 13.36 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.01227/0.3274, allocations: 4.128 MB / 0.5747 GB, free: 10.28 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006319/0.3338, allocations: 2.048 MB / 0.5767 GB, free: 8.785 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002815/0.3366, allocations: 2.368 MB / 0.579 GB, free: 7.395 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006952/0.3373, allocations: 417.7 kB / 0.5794 GB, free: 7.125 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01033/0.3476, allocations: 6.43 MB / 0.5857 GB, free: 1.891 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0125/0.3602, allocations: 9.096 MB / 0.5946 GB, free: 8.789 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002014/0.3604, allocations: 32 kB / 0.5946 GB, free: 8.758 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01234/0.3728, allocations: 6.89 MB / 0.6013 GB, free: 1.859 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000411/0.3732, allocations: 247.2 kB / 0.6015 GB, free: 1.617 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006268/0.3739, allocations: 427.9 kB / 0.602 GB, free: 1.191 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005516/0.3794, allocations: 3.407 MB / 0.6053 GB, free: 13.78 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3794, allocations: 0 / 0.6053 GB, free: 13.78 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3794, allocations: 0 / 0.6053 GB, free: 13.78 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.3794, allocations: 0 / 0.6053 GB, free: 13.78 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.003498/0.3829, allocations: 1.466 MB / 0.6067 GB, free: 12.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.383, allocations: 8.031 kB / 0.6067 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001274/0.3843, allocations: 223.7 kB / 0.6069 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007752/0.385, allocations: 0.5442 MB / 0.6075 GB, free: 11.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.3852, allocations: 109.3 kB / 0.6076 GB, free: 11.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-05/0.3852, allocations: 64.12 kB / 0.6076 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.387, allocations: 1.06 MB / 0.6087 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.387, allocations: 7.938 kB / 0.6087 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.708e-05/0.3871, allocations: 31.98 kB / 0.6087 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.792e-05/0.3871, allocations: 44.98 kB / 0.6087 GB, free: 10.01 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.3886, allocations: 0.8154 MB / 0.6095 GB, free: 9.195 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.005378/0.394, allocations: 5.565 MB / 0.615 GB, free: 3.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.3952, allocations: 0.5297 MB / 0.6155 GB, free: 2.715 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003086/0.3955, allocations: 219 kB / 0.6157 GB, free: 2.492 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08719/0.4827, allocations: 53 MB / 0.6675 GB, free: 6.832 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.4828, allocations: 46.55 kB / 0.6675 GB, free: 6.777 MB / 490.7 MB Notification: Performance of pre-optimization done (n=39): time 2.254e-06/0.4828, allocations: 0 / 0.6675 GB, free: 6.777 MB / 490.7 MB Notification: Performance of matching and sorting (n=44): time 0.006012/0.4888, allocations: 2.141 MB / 0.6696 GB, free: 4.578 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/0.4889, allocations: 187.9 kB / 0.6698 GB, free: 4.352 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007436/0.4897, allocations: 0.6367 MB / 0.6704 GB, free: 3.703 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.668e-05/0.4897, allocations: 29.7 kB / 0.6704 GB, free: 3.668 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.49, allocations: 395.2 kB / 0.6708 GB, free: 3.273 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.4901, allocations: 165.7 kB / 0.671 GB, free: 3.109 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.709e-05/0.4902, allocations: 19.94 kB / 0.671 GB, free: 3.09 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4903, allocations: 386.8 kB / 0.6714 GB, free: 2.703 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004012/0.4907, allocations: 225.8 kB / 0.6716 GB, free: 2.48 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005616/0.4913, allocations: 0.5861 MB / 0.6721 GB, free: 1.715 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009704/0.4923, allocations: 0.8636 MB / 0.673 GB, free: 0.6875 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.4923, allocations: 4 kB / 0.673 GB, free: 0.6836 MB / 490.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001363/0.4937, allocations: 0.8922 MB / 0.6739 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.4937, allocations: 12.19 kB / 0.6739 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.4937, allocations: 12 kB / 0.6739 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003072/0.4968, allocations: 272.5 kB / 0.6741 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/0.4979, allocations: 279.6 kB / 0.6744 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.4995, allocations: 2.026 MB / 0.6764 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007173/0.5002, allocations: 56.03 kB / 0.6764 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.588e-05/0.5003, allocations: 43.98 kB / 0.6765 GB, free: 12.94 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * 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 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004147/0.5007, allocations: 277.9 kB / 0.6767 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.5009, allocations: 71.16 kB / 0.6768 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002208/0.5031, allocations: 2.03 MB / 0.6788 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.694e-05/0.5031, allocations: 23.97 kB / 0.6788 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.5031, allocations: 0 / 0.6788 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.5031, allocations: 3.984 kB / 0.6788 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003281/0.5064, allocations: 2.999 MB / 0.6818 GB, free: 7.445 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.5064, allocations: 0 / 0.6818 GB, free: 7.445 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008834/0.5073, allocations: 183.8 kB / 0.6819 GB, free: 7.266 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001608/0.509, allocations: 311.8 kB / 0.6822 GB, free: 6.957 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.12e-05/0.509, allocations: 16.03 kB / 0.6822 GB, free: 6.941 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.5105, allocations: 2.077 MB / 0.6843 GB, free: 4.703 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.5105, allocations: 0 / 0.6843 GB, free: 4.703 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002014/0.5125, allocations: 1.944 MB / 0.6862 GB, free: 2.734 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004436/0.513, allocations: 283.5 kB / 0.6864 GB, free: 2.438 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.5131, allocations: 12 kB / 0.6864 GB, free: 2.426 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004945/0.5136, allocations: 35.88 kB / 0.6865 GB, free: 2.391 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.876e-05/0.5137, allocations: 36.33 kB / 0.6865 GB, free: 2.355 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-05/0.5137, allocations: 23.94 kB / 0.6865 GB, free: 2.332 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0007305/0.5145, allocations: 0.5693 MB / 0.6871 GB, free: 1.766 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.353e-06/0.5145, allocations: 0 / 0.6871 GB, free: 1.766 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003006/0.5175, allocations: 1.097 MB / 0.6882 GB, free: 0.668 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.1947/0.7122, allocations: 1.186 MB / 0.6893 GB, free: 155.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002354/0.7146, allocations: 0.9003 MB / 0.6902 GB, free: 155.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.7146, allocations: 2.031 kB / 0.6902 GB, free: 155.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.7158, allocations: 0.6321 MB / 0.6908 GB, free: 155.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002047/0.7179, allocations: 379.6 kB / 0.6912 GB, free: 155.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.7206, allocations: 2.622 MB / 0.6937 GB, free: 154.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004643/0.7211, allocations: 1.092 MB / 0.6948 GB, free: 153.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.7213, allocations: 62.62 kB / 0.6949 GB, free: 153.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.493e-06/0.7213, allocations: 4.969 kB / 0.6949 GB, free: 153.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.04726/0.7686, allocations: 37.15 MB / 0.7312 GB, free: 137.1 MB / 0.4948 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches