Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008157/0.0008159, allocations: 93.86 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008461/0.0008461, allocations: 176.6 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003482/0.0003482, allocations: 7.938 kB / 301.4 MB, free: 6.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1261, allocations: 50.42 MB / 351.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.02432/0.1504, allocations: 13.23 MB / 365 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1613/0.3118, allocations: 12.27 MB / 377.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.3119, allocations: 5.406 kB / 377.3 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002839/0.3122, allocations: 63.41 kB / 377.4 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.3124, allocations: 76.38 kB / 377.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01147/0.3239, allocations: 4.009 MB / 381.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003515/0.3243, allocations: 269 kB / 381.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.678e-05/0.3244, allocations: 8.391 kB / 381.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003751/0.3247, allocations: 191.4 kB / 381.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.3249, allocations: 68.41 kB / 382 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.899e-05/0.3249, allocations: 8.969 kB / 382 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01188/0.3368, allocations: 6.907 MB / 388.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.961e-05/0.3369, allocations: 25.83 kB / 388.9 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.337, allocations: 95.8 kB / 389 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006901/0.3439, allocations: 3.863 MB / 392.9 MB, free: 5.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.3439, allocations: 7.875 kB / 392.9 MB, free: 5.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3439, allocations: 0 / 392.9 MB, free: 5.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.3439, allocations: 1.062 kB / 392.9 MB, free: 5.801 MB / 302.1 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.004521/0.3485, allocations: 1.102 MB / 394 MB, free: 5.027 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.3485, allocations: 8.25 kB / 394 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004445/0.349, allocations: 59.08 kB / 394.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.3492, allocations: 220.5 kB / 394.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.3492, allocations: 13.88 kB / 394.3 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.972e-05/0.3493, allocations: 18.17 kB / 394.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.3504, allocations: 398.6 kB / 394.7 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3504, allocations: 3.984 kB / 394.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.424e-05/0.3505, allocations: 6.75 kB / 394.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3505, allocations: 4.125 kB / 394.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/0.3519, allocations: 369.4 kB / 395.1 MB, free: 4.289 MB / 302.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.00109/0.353, allocations: 1.19 MB / 396.3 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007919/0.3538, allocations: 292.8 kB / 396.6 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002689/0.3541, allocations: 122.3 kB / 396.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09965/0.4537, allocations: 47.88 MB / 444.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.4538, allocations: 42.55 kB / 444.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.174e-06/0.4538, allocations: 0 / 444.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.007239/0.4611, allocations: 1.613 MB / 446.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.4611, allocations: 110.8 kB / 446.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.4613, allocations: 125.7 kB / 446.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.52e-05/0.4613, allocations: 33.7 kB / 446.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.866e-05/0.4614, allocations: 100.5 kB / 446.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.4615, allocations: 121.8 kB / 446.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.648e-05/0.4616, allocations: 41.69 kB / 446.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.973e-05/0.4617, allocations: 322.8 kB / 447 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004041/0.4621, allocations: 139.9 kB / 447.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/0.4625, allocations: 200.7 kB / 447.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008274/0.4634, allocations: 358.6 kB / 447.7 MB, free: 12.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.4634, allocations: 3.938 kB / 447.7 MB, free: 12.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001127/0.4645, allocations: 437.9 kB / 448.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.4645, allocations: 4 kB / 448.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.4646, allocations: 4 kB / 448.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002411/0.4648, allocations: 43.92 kB / 448.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004702/0.4653, allocations: 87.88 kB / 448.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003472/0.4656, allocations: 0.5484 MB / 448.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003135/0.466, allocations: 32.09 kB / 448.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.466, allocations: 16 kB / 448.9 MB, free: 10.93 MB / 366.1 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.0001423/0.4662, allocations: 129.8 kB / 449 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.845e-05/0.4663, allocations: 15.81 kB / 449 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002218/0.4685, allocations: 1.466 MB / 450.5 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.562e-05/0.4685, allocations: 27.91 kB / 450.5 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4685, allocations: 0 / 450.5 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.4685, allocations: 7.984 kB / 450.5 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.4715, allocations: 1.993 MB / 452.5 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.4715, allocations: 6.625 kB / 452.5 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.4719, allocations: 87.84 kB / 452.6 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003452/0.4723, allocations: 72.92 kB / 452.7 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/0.4724, allocations: 15.98 kB / 452.7 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003331/0.4727, allocations: 0.5875 MB / 453.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.4727, allocations: 7.875 kB / 453.3 MB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.475, allocations: 1.693 MB / 455 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.97e-05/0.475, allocations: 132.3 kB / 455.1 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.434e-05/0.4751, allocations: 8 kB / 455.1 MB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/0.4755, allocations: 28.02 kB / 455.2 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.342e-05/0.4756, allocations: 39.84 kB / 455.2 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/0.4756, allocations: 16.36 kB / 455.2 MB, free: 4.441 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.146e-05/0.4757, allocations: 95.2 kB / 455.3 MB, free: 4.348 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4757, allocations: 0 / 455.3 MB, free: 4.348 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002994/0.4787, allocations: 0.9565 MB / 456.3 MB, free: 3.391 MB / 366.1 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.004875/0.4836, allocations: 1.135 MB / 457.4 MB, free: 2.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.4849, allocations: 0.6124 MB / 458 MB, free: 1.727 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4849, allocations: 448 / 458 MB, free: 1.727 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008192/0.4857, allocations: 0.5124 MB / 458.5 MB, free: 1.215 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008066/0.4865, allocations: 79.56 kB / 458.6 MB, free: 1.141 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.489, allocations: 1.588 MB / 460.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.4894, allocations: 0.8178 MB / 461 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003874/0.4898, allocations: 133.8 kB / 461.1 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.49, allocations: 35.41 kB / 461.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.49, allocations: 4 kB / 461.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of Templates: time 0.05127/0.5412, allocations: 35.88 MB / 497.1 MB, free: 10.62 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches