Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0012/0.0012, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001113, allocations: 212.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 247.6 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2317/0.2317, allocations: 46.1 MB / 345 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 75.88 kB / 482 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3664, allocations: 62.43 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.04044/0.4069, allocations: 39.18 MB / 0.5699 GB, free: 10.45 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02374/0.4307, allocations: 20.17 MB / 0.5896 GB, free: 6.219 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009092/0.4316, allocations: 27.81 kB / 0.5897 GB, free: 6.191 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.4331, allocations: 445.3 kB / 0.5901 GB, free: 5.754 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01396/0.447, allocations: 5.114 MB / 0.5951 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007108/0.4542, allocations: 2.57 MB / 0.5976 GB, free: 14.07 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002832/0.457, allocations: 2.004 MB / 0.5995 GB, free: 12.05 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009859/0.458, allocations: 497.5 kB / 0.6 GB, free: 11.55 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009465/0.4675, allocations: 4.18 MB / 0.6041 GB, free: 7.316 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01092/0.4785, allocations: 5.436 MB / 0.6094 GB, free: 1.797 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003279/0.4788, allocations: 72 kB / 0.6095 GB, free: 1.727 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01467/0.4935, allocations: 7.395 MB / 0.6167 GB, free: 10.32 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005321/0.4941, allocations: 275.3 kB / 0.617 GB, free: 10.05 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009061/0.495, allocations: 462 kB / 0.6174 GB, free: 9.602 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.507, allocations: 5.122 MB / 0.6224 GB, free: 4.469 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.507, allocations: 0 / 0.6224 GB, free: 4.469 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.507, allocations: 8 kB / 0.6224 GB, free: 4.461 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.817e-05/0.5071, allocations: 0 / 0.6224 GB, free: 4.461 MB / 478.1 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.004888/0.5119, allocations: 1.664 MB / 0.624 GB, free: 2.746 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.512, allocations: 8.031 kB / 0.624 GB, free: 2.738 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002378/0.5144, allocations: 303.7 kB / 0.6243 GB, free: 2.441 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.5156, allocations: 0.5755 MB / 0.6249 GB, free: 1.824 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.5157, allocations: 113.3 kB / 0.625 GB, free: 1.699 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.5159, allocations: 64.12 kB / 0.6251 GB, free: 1.637 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002658/0.5186, allocations: 1.158 MB / 0.6262 GB, free: 388 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.5186, allocations: 7.938 kB / 0.6262 GB, free: 380 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.5187, allocations: 31.98 kB / 0.6262 GB, free: 348 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.403e-05/0.5188, allocations: 45.3 kB / 0.6263 GB, free: 304 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001849/0.5206, allocations: 0.8479 MB / 0.6271 GB, free: 15.45 MB / 494.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.006543/0.5272, allocations: 5.497 MB / 0.6325 GB, free: 9.574 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.5286, allocations: 0.5865 MB / 0.6331 GB, free: 8.973 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003639/0.529, allocations: 229.5 kB / 0.6333 GB, free: 8.742 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1025/0.6315, allocations: 51.54 MB / 0.6836 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.637e-05/0.6316, allocations: 42.56 kB / 0.6836 GB, free: 14.8 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 2.605e-06/0.6316, allocations: 0 / 0.6836 GB, free: 14.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.005582/0.6372, allocations: 1.921 MB / 0.6855 GB, free: 12.82 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.6373, allocations: 166.2 kB / 0.6857 GB, free: 12.62 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008256/0.6381, allocations: 0.6172 MB / 0.6863 GB, free: 11.99 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.048e-05/0.6382, allocations: 33.73 kB / 0.6863 GB, free: 11.95 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002757/0.6385, allocations: 399.1 kB / 0.6867 GB, free: 11.56 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.6387, allocations: 169.7 kB / 0.6868 GB, free: 11.39 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/0.6389, allocations: 158.5 kB / 0.687 GB, free: 11.23 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.639, allocations: 374.8 kB / 0.6874 GB, free: 10.86 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003946/0.6394, allocations: 225.9 kB / 0.6876 GB, free: 10.63 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005855/0.64, allocations: 0.5756 MB / 0.6881 GB, free: 9.895 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009803/0.641, allocations: 0.8368 MB / 0.689 GB, free: 8.906 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.641, allocations: 4 kB / 0.689 GB, free: 8.902 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001372/0.6424, allocations: 0.8705 MB / 0.6898 GB, free: 8.02 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.6424, allocations: 8.969 kB / 0.6898 GB, free: 8.012 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.6425, allocations: 12 kB / 0.6898 GB, free: 8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002723/0.6427, allocations: 60.81 kB / 0.6899 GB, free: 7.938 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.644, allocations: 283.6 kB / 0.6902 GB, free: 7.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001581/0.6456, allocations: 2.075 MB / 0.6922 GB, free: 5.426 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005026/0.6461, allocations: 35.94 kB / 0.6922 GB, free: 5.391 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/0.6462, allocations: 43.98 kB / 0.6923 GB, free: 5.348 MB / 0.545 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 (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004016/0.6466, allocations: 269.4 kB / 0.6925 GB, free: 5.074 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.6468, allocations: 71.16 kB / 0.6926 GB, free: 5.004 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002456/0.6492, allocations: 2.212 MB / 0.6947 GB, free: 2.777 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.83e-05/0.6493, allocations: 27.95 kB / 0.6948 GB, free: 2.75 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.6493, allocations: 3.938 kB / 0.6948 GB, free: 2.746 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.6493, allocations: 7.984 kB / 0.6948 GB, free: 2.738 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/0.6529, allocations: 3.28 MB / 0.698 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/0.6529, allocations: 3.938 kB / 0.698 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009461/0.6538, allocations: 195.8 kB / 0.6982 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003301/0.6542, allocations: 76.78 kB / 0.6982 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.595e-05/0.6542, allocations: 12 kB / 0.6983 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.6557, allocations: 2.094 MB / 0.7003 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.6557, allocations: 11.91 kB / 0.7003 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002253/0.658, allocations: 1.983 MB / 0.7023 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003679/0.6583, allocations: 251.6 kB / 0.7025 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.6585, allocations: 23.84 kB / 0.7025 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005378/0.659, allocations: 31.97 kB / 0.7025 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.365e-05/0.6591, allocations: 32.39 kB / 0.7026 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-05/0.6592, allocations: 27.98 kB / 0.7026 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006562/0.6598, allocations: 0.5068 MB / 0.7031 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6599, allocations: 0 / 0.7031 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00306/0.6629, allocations: 1.085 MB / 0.7042 GB, free: 8.852 MB / 0.5606 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 (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004706/0.6676, allocations: 1.23 MB / 0.7054 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001945/0.6696, allocations: 0.924 MB / 0.7063 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.85e-06/0.6696, allocations: 4.062 kB / 0.7063 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.6708, allocations: 0.6638 MB / 0.7069 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002098/0.6729, allocations: 396.7 kB / 0.7073 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003428/0.6764, allocations: 2.262 MB / 0.7095 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006593/0.677, allocations: 1.109 MB / 0.7106 GB, free: 2.223 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.6773, allocations: 75.42 kB / 0.7107 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of SimCode: time 7.62e-07/0.6773, allocations: 0 / 0.7107 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of Templates: time 0.2707/0.948, allocations: 37.98 MB / 0.7477 GB, free: 178.5 MB / 0.5763 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.h,volume.medium.p Variables in the result:time,volume.medium.h,volume.medium.p