Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001556/0.001556, allocations: 195.5 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 229.5 MB / 247.7 MB, free: 6.316 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007338/0.0007338, allocations: 104.4 kB / 299.9 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002219/0.000222, allocations: 4 kB / 360.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1817, allocations: 51.42 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.0112/0.193, allocations: 15.9 MB / 427.9 MB, free: 9.219 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01223/0.2053, allocations: 17.17 MB / 445.1 MB, free: 6.727 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.54e-05/0.2054, allocations: 0 / 445.1 MB, free: 6.727 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002917/0.2057, allocations: 67.67 kB / 445.2 MB, free: 6.66 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002343/0.2059, allocations: 87.48 kB / 445.3 MB, free: 6.574 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01033/0.2163, allocations: 4.004 MB / 449.3 MB, free: 2.559 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003217/0.2166, allocations: 274.9 kB / 449.5 MB, free: 2.289 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.992e-05/0.2167, allocations: 13.44 kB / 449.6 MB, free: 2.273 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003979/0.2171, allocations: 179.4 kB / 449.7 MB, free: 2.098 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.2172, allocations: 79.62 kB / 449.8 MB, free: 2.02 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.2172, allocations: 4 kB / 449.8 MB, free: 2.016 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01031/0.2276, allocations: 6.658 MB / 456.5 MB, free: 11.35 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.997e-05/0.2276, allocations: 31.89 kB / 456.5 MB, free: 11.32 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.274e-05/0.2277, allocations: 89.44 kB / 456.6 MB, free: 11.22 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006331/0.2341, allocations: 3.875 MB / 460.5 MB, free: 7.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2341, allocations: 4 kB / 460.5 MB, free: 7.336 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2341, allocations: 0 / 460.5 MB, free: 7.336 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.2341, allocations: 0 / 460.5 MB, free: 7.336 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.003955/0.2381, allocations: 1.115 MB / 461.6 MB, free: 6.172 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.2381, allocations: 12.03 kB / 461.6 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004359/0.2386, allocations: 56.7 kB / 461.6 MB, free: 6.105 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.2388, allocations: 224.2 kB / 461.9 MB, free: 5.848 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.2388, allocations: 16.38 kB / 461.9 MB, free: 5.832 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.2389, allocations: 16.28 kB / 461.9 MB, free: 5.816 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.2401, allocations: 388 kB / 462.3 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.2401, allocations: 7.984 kB / 462.3 MB, free: 5.398 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.2401, allocations: 8 kB / 462.3 MB, free: 5.391 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.2402, allocations: 4 kB / 462.3 MB, free: 5.387 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.2415, allocations: 363.5 kB / 462.6 MB, free: 5.031 MB / 330.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.001279/0.2428, allocations: 1.184 MB / 463.8 MB, free: 3.746 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007857/0.2436, allocations: 291.7 kB / 464.1 MB, free: 3.434 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/0.2439, allocations: 118.9 kB / 464.2 MB, free: 3.309 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2388/0.4826, allocations: 53 MB / 0.5051 GB, free: 93.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.4827, allocations: 45.09 kB / 0.5052 GB, free: 93.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.904e-06/0.4827, allocations: 0 / 0.5052 GB, free: 93.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.006232/0.489, allocations: 1.61 MB / 0.5067 GB, free: 93.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.489, allocations: 111.5 kB / 0.5068 GB, free: 93.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.586e-05/0.4891, allocations: 122.4 kB / 0.5069 GB, free: 92.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.4891, allocations: 31.2 kB / 0.507 GB, free: 92.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.394e-05/0.4891, allocations: 101.3 kB / 0.5071 GB, free: 92.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.86e-05/0.4892, allocations: 120.6 kB / 0.5072 GB, free: 92.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.4893, allocations: 5.719 kB / 0.5072 GB, free: 92.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.142e-05/0.4893, allocations: 333.3 kB / 0.5075 GB, free: 92.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003484/0.4897, allocations: 136.8 kB / 0.5076 GB, free: 92.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.49, allocations: 201.7 kB / 0.5078 GB, free: 92.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006483/0.4907, allocations: 356 kB / 0.5082 GB, free: 91.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.4907, allocations: 0 / 0.5082 GB, free: 91.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008856/0.4916, allocations: 431.2 kB / 0.5086 GB, free: 91.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.4916, allocations: 7.531 kB / 0.5086 GB, free: 91.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.4916, allocations: 4 kB / 0.5086 GB, free: 91.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002204/0.4918, allocations: 44.42 kB / 0.5086 GB, free: 91.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004244/0.4923, allocations: 89.16 kB / 0.5087 GB, free: 91.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002227/0.4925, allocations: 0.5493 MB / 0.5093 GB, free: 91.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.4928, allocations: 27.61 kB / 0.5093 GB, free: 91.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.334e-05/0.4928, allocations: 19.83 kB / 0.5093 GB, free: 91.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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.0001014/0.4929, allocations: 140 kB / 0.5094 GB, free: 90.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.396e-05/0.493, allocations: 15.72 kB / 0.5095 GB, free: 90.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001683/0.4947, allocations: 1.463 MB / 0.5109 GB, free: 90.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.4947, allocations: 19.83 kB / 0.5109 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4947, allocations: 8.312 kB / 0.5109 GB, free: 90.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.4947, allocations: 2.953 kB / 0.5109 GB, free: 90.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.4969, allocations: 1.985 MB / 0.5129 GB, free: 88.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.4969, allocations: 4 kB / 0.5129 GB, free: 88.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004133/0.4974, allocations: 89.55 kB / 0.5129 GB, free: 88.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003101/0.4977, allocations: 76.72 kB / 0.513 GB, free: 88.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.4977, allocations: 15.55 kB / 0.513 GB, free: 88.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002069/0.4979, allocations: 0.5875 MB / 0.5136 GB, free: 87.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.4979, allocations: 0 / 0.5136 GB, free: 87.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.4995, allocations: 1.697 MB / 0.5153 GB, free: 86.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.884e-05/0.4996, allocations: 132.5 kB / 0.5154 GB, free: 86.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.181e-05/0.4996, allocations: 8 kB / 0.5154 GB, free: 86.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003375/0.5, allocations: 23.98 kB / 0.5154 GB, free: 86.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.622e-05/0.5, allocations: 43.81 kB / 0.5155 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.5001, allocations: 19.98 kB / 0.5155 GB, free: 85.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.182e-05/0.5001, allocations: 91.27 kB / 0.5156 GB, free: 85.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5001, allocations: 1.312 kB / 0.5156 GB, free: 85.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002103/0.5022, allocations: 0.9593 MB / 0.5165 GB, free: 84.97 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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.003062/0.5053, allocations: 1.146 MB / 0.5176 GB, free: 83.99 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000923/0.5062, allocations: 0.6082 MB / 0.5182 GB, free: 83.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.5062, allocations: 0 / 0.5182 GB, free: 83.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005821/0.5068, allocations: 0.5123 MB / 0.5187 GB, free: 82.87 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000651/0.5075, allocations: 72.44 kB / 0.5188 GB, free: 82.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.5093, allocations: 1.574 MB / 0.5203 GB, free: 81.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001718/0.5094, allocations: 0.8295 MB / 0.5211 GB, free: 80.33 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003297/0.5098, allocations: 133.6 kB / 0.5213 GB, free: 80.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.5099, allocations: 39.41 kB / 0.5213 GB, free: 80.16 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5099, allocations: 0 / 0.5213 GB, free: 80.16 MB / 378.7 MB Notification: Performance of Templates: time 0.03306/0.543, allocations: 35.96 MB / 0.5564 GB, free: 44.24 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_trunk_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches