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.001277/0.001277, allocations: 114.2 kB / 17.69 MB, free: 5.312 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.001316/0.001316, allocations: 191 kB / 18.63 MB, free: 4.379 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.318/1.318, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001007, allocations: 42.47 kB / 302 MB, free: 5.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09602/0.09704, allocations: 49.45 MB / 351.5 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01606/0.1131, allocations: 12.91 MB / 364.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1664/0.2796, allocations: 11.54 MB / 375.9 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.2797, allocations: 5.281 kB / 375.9 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002938/0.28, allocations: 68.52 kB / 376 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002707/0.2804, allocations: 82.14 kB / 376.1 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01409/0.2945, allocations: 5.069 MB / 381.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005283/0.295, allocations: 232.4 kB / 381.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.596e-05/0.2951, allocations: 9.078 kB / 381.4 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005232/0.2956, allocations: 196 kB / 381.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.2957, allocations: 70.7 kB / 381.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.2958, allocations: 11.66 kB / 381.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01344/0.3092, allocations: 6.991 MB / 388.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.479e-05/0.3093, allocations: 22.2 kB / 388.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.3095, allocations: 79.41 kB / 388.8 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01306/0.3226, allocations: 3.868 MB / 392.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.3226, allocations: 1.5 kB / 392.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3226, allocations: 0 / 392.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.3226, allocations: 0 / 392.6 MB, free: 5.172 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.006612/0.3293, allocations: 1.142 MB / 393.8 MB, free: 4.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.3293, allocations: 8.625 kB / 393.8 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007606/0.3301, allocations: 51.3 kB / 393.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003964/0.3305, allocations: 218.7 kB / 394 MB, free: 4.113 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.329e-05/0.3306, allocations: 10.44 kB / 394.1 MB, free: 4.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.871e-05/0.3306, allocations: 22.28 kB / 394.1 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.3323, allocations: 389.8 kB / 394.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.3323, allocations: 4.891 kB / 394.5 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.081e-05/0.3324, allocations: 6.156 kB / 394.5 MB, free: 3.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3324, allocations: 4.406 kB / 394.5 MB, free: 3.812 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001847/0.3342, allocations: 357.6 kB / 394.8 MB, free: 3.641 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.001469/0.3357, allocations: 1.188 MB / 396 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.3369, allocations: 279.2 kB / 396.3 MB, free: 2.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.3372, allocations: 114.7 kB / 396.4 MB, free: 2.219 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09803/0.4353, allocations: 47.65 MB / 444 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.4354, allocations: 42.55 kB / 444.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.074e-06/0.4354, allocations: 0 / 444.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006858/0.4422, allocations: 1.584 MB / 445.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.4423, allocations: 114.8 kB / 445.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.4424, allocations: 118.1 kB / 445.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.4425, allocations: 37.64 kB / 445.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.327e-05/0.4426, allocations: 100.5 kB / 446 MB, free: 12.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.105e-05/0.4427, allocations: 113.1 kB / 446.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.4428, allocations: 77.53 kB / 446.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.4429, allocations: 326.8 kB / 446.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003739/0.4433, allocations: 135.9 kB / 446.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004104/0.4437, allocations: 198.5 kB / 446.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007767/0.4445, allocations: 350.6 kB / 447.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4445, allocations: 3.938 kB / 447.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001035/0.4456, allocations: 426 kB / 447.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.4456, allocations: 4 kB / 447.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.4456, allocations: 4.219 kB / 447.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002338/0.4459, allocations: 33.8 kB / 447.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004686/0.4463, allocations: 91.88 kB / 447.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000381/0.4467, allocations: 0.5556 MB / 448.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003015/0.447, allocations: 24.08 kB / 448.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.4471, allocations: 15.98 kB / 448.3 MB, free: 10.52 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.0001562/0.4473, allocations: 143.3 kB / 448.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.4474, allocations: 15.91 kB / 448.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.4494, allocations: 1.435 MB / 449.9 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.506e-05/0.4495, allocations: 24.98 kB / 450 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.515e-06/0.4495, allocations: 3.984 kB / 450 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.4495, allocations: 0 / 450 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.4524, allocations: 1.98 MB / 451.9 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4524, allocations: 0 / 451.9 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000446/0.4528, allocations: 83.86 kB / 452 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003189/0.4532, allocations: 72.7 kB / 452.1 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.799e-05/0.4532, allocations: 11.98 kB / 452.1 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003418/0.4536, allocations: 0.5837 MB / 452.7 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4536, allocations: 11.91 kB / 452.7 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002103/0.4557, allocations: 1.683 MB / 454.4 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.098e-05/0.4558, allocations: 130 kB / 454.5 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/0.4559, allocations: 8 kB / 454.5 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.4562, allocations: 24.02 kB / 454.5 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.744e-05/0.4563, allocations: 35.84 kB / 454.6 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/0.4564, allocations: 19.98 kB / 454.6 MB, free: 4.105 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.29e-05/0.4564, allocations: 95.2 kB / 454.7 MB, free: 4.012 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4564, allocations: 0 / 454.7 MB, free: 4.012 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002944/0.4594, allocations: 0.9566 MB / 455.7 MB, free: 3.055 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.005309/0.4647, allocations: 1.135 MB / 456.8 MB, free: 2.008 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.4662, allocations: 0.6164 MB / 457.4 MB, free: 1.391 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4662, allocations: 0 / 457.4 MB, free: 1.391 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008022/0.467, allocations: 0.5169 MB / 457.9 MB, free: 0.875 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007754/0.4678, allocations: 79.64 kB / 458 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.4702, allocations: 1.3 MB / 459.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.4706, allocations: 0.8142 MB / 460.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003594/0.471, allocations: 141.7 kB / 460.3 MB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.4712, allocations: 39.41 kB / 460.3 MB, free: 14.43 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4712, allocations: 0 / 460.3 MB, free: 14.43 MB / 382.1 MB Notification: Performance of Templates: time 0.05005/0.5212, allocations: 36.17 MB / 496.5 MB, free: 10.28 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/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