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.001468/0.001468, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001781/0.001781, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2203/0.2203, allocations: 46.11 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 71.88 kB / 482 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4458/0.4474, allocations: 62.44 MB / 0.5317 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.04231/0.4897, allocations: 39.18 MB / 0.5699 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02367/0.5134, allocations: 20.19 MB / 0.5896 GB, free: 6.141 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009678/0.5144, allocations: 19.88 kB / 0.5897 GB, free: 6.121 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001349/0.5158, allocations: 441.3 kB / 0.5901 GB, free: 5.688 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01498/0.5309, allocations: 5.136 MB / 0.5951 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007338/0.5382, allocations: 2.581 MB / 0.5976 GB, free: 13.97 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002944/0.5412, allocations: 1.993 MB / 0.5996 GB, free: 11.97 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008364/0.542, allocations: 0.5053 MB / 0.6001 GB, free: 11.45 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01123/0.5533, allocations: 4.172 MB / 0.6041 GB, free: 7.219 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01352/0.5669, allocations: 5.44 MB / 0.6094 GB, free: 1.695 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003952/0.5673, allocations: 76 kB / 0.6095 GB, free: 1.621 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01658/0.5839, allocations: 7.383 MB / 0.6167 GB, free: 10.23 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005667/0.5845, allocations: 291.2 kB / 0.617 GB, free: 9.945 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007444/0.5853, allocations: 454 kB / 0.6174 GB, free: 9.5 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0134/0.5987, allocations: 5.126 MB / 0.6224 GB, free: 4.363 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.5987, allocations: 4 kB / 0.6225 GB, free: 4.359 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5987, allocations: 0 / 0.6225 GB, free: 4.359 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.5987, allocations: 0 / 0.6225 GB, free: 4.359 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.005062/0.6038, allocations: 1.664 MB / 0.6241 GB, free: 2.645 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.6039, allocations: 8.031 kB / 0.6241 GB, free: 2.637 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002246/0.6061, allocations: 299.8 kB / 0.6244 GB, free: 2.344 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/0.6072, allocations: 0.5794 MB / 0.6249 GB, free: 1.723 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.6073, allocations: 109.3 kB / 0.625 GB, free: 1.602 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.6074, allocations: 68.06 kB / 0.6251 GB, free: 1.535 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002389/0.6098, allocations: 1.158 MB / 0.6262 GB, free: 284 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.6099, allocations: 4 kB / 0.6262 GB, free: 280 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.43e-05/0.61, allocations: 35.98 kB / 0.6263 GB, free: 244 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.945e-05/0.61, allocations: 45.17 kB / 0.6263 GB, free: 200 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.6117, allocations: 0.844 MB / 0.6271 GB, free: 15.35 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.005909/0.6177, allocations: 5.497 MB / 0.6325 GB, free: 9.477 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.6189, allocations: 0.5899 MB / 0.6331 GB, free: 8.875 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000336/0.6193, allocations: 233.6 kB / 0.6333 GB, free: 8.641 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0947/0.714, allocations: 51.53 MB / 0.6836 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/0.7141, allocations: 38.56 kB / 0.6837 GB, free: 14.7 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 2.865e-06/0.7141, allocations: 0 / 0.6837 GB, free: 14.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.005672/0.7198, allocations: 1.921 MB / 0.6855 GB, free: 12.72 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.365e-05/0.7199, allocations: 170.1 kB / 0.6857 GB, free: 12.52 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008423/0.7208, allocations: 0.6133 MB / 0.6863 GB, free: 11.89 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.759e-05/0.7208, allocations: 29.7 kB / 0.6863 GB, free: 11.86 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/0.7211, allocations: 403.1 kB / 0.6867 GB, free: 11.46 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.7213, allocations: 165.7 kB / 0.6869 GB, free: 11.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002226/0.7215, allocations: 158.5 kB / 0.687 GB, free: 11.14 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.7217, allocations: 378.8 kB / 0.6874 GB, free: 10.76 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003986/0.7221, allocations: 225.9 kB / 0.6876 GB, free: 10.54 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006257/0.7227, allocations: 0.5717 MB / 0.6882 GB, free: 9.801 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.7238, allocations: 0.8407 MB / 0.689 GB, free: 8.809 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.7238, allocations: 7.938 kB / 0.689 GB, free: 8.801 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001519/0.7253, allocations: 0.8713 MB / 0.6898 GB, free: 7.918 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.7254, allocations: 8 kB / 0.6898 GB, free: 7.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.7254, allocations: 12 kB / 0.6899 GB, free: 7.898 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002971/0.7257, allocations: 56.83 kB / 0.6899 GB, free: 7.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.7269, allocations: 283.8 kB / 0.6902 GB, free: 7.562 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.7285, allocations: 2.08 MB / 0.6922 GB, free: 5.328 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005321/0.7291, allocations: 35.92 kB / 0.6923 GB, free: 5.293 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-05/0.7291, allocations: 36 kB / 0.6923 GB, free: 5.258 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.0004076/0.7296, allocations: 277.6 kB / 0.6926 GB, free: 4.977 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.7298, allocations: 71.16 kB / 0.6926 GB, free: 4.906 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002638/0.7324, allocations: 2.208 MB / 0.6948 GB, free: 2.684 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.794e-05/0.7324, allocations: 27.95 kB / 0.6948 GB, free: 2.656 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.7325, allocations: 11.92 kB / 0.6948 GB, free: 2.645 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.7325, allocations: 0 / 0.6948 GB, free: 2.645 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003948/0.7364, allocations: 3.288 MB / 0.698 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.7365, allocations: 3.938 kB / 0.698 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009229/0.7374, allocations: 191.7 kB / 0.6982 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003606/0.7378, allocations: 80.78 kB / 0.6983 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.7378, allocations: 15.98 kB / 0.6983 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.7394, allocations: 2.086 MB / 0.7003 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.7394, allocations: 11.97 kB / 0.7004 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.7417, allocations: 1.983 MB / 0.7023 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004069/0.7422, allocations: 259.3 kB / 0.7025 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.7423, allocations: 15.84 kB / 0.7025 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005374/0.7429, allocations: 31.97 kB / 0.7026 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.07e-05/0.743, allocations: 32.39 kB / 0.7026 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-05/0.743, allocations: 32.05 kB / 0.7026 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006973/0.7437, allocations: 0.5107 MB / 0.7031 GB, free: 9.832 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7437, allocations: 0 / 0.7031 GB, free: 9.832 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00342/0.7472, allocations: 1.082 MB / 0.7042 GB, free: 8.75 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.005565/0.7527, allocations: 1.22 MB / 0.7054 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002094/0.7548, allocations: 0.9237 MB / 0.7063 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.7549, allocations: 0 / 0.7063 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.7562, allocations: 0.6643 MB / 0.7069 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00209/0.7583, allocations: 401.9 kB / 0.7073 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.762, allocations: 2.269 MB / 0.7095 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007822/0.7628, allocations: 1.109 MB / 0.7106 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002149/0.763, allocations: 67.44 kB / 0.7107 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of SimCode: time 7.81e-07/0.7631, allocations: 0 / 0.7107 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of Templates: time 0.3416/1.105, allocations: 37.99 MB / 0.7478 GB, free: 178.5 MB / 0.5762 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