Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.0008332/0.0008333, allocations: 100.2 kB / 17.3 MB, free: 6.395 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.0008275/0.0008276, allocations: 178.5 kB / 18.2 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004937/0.0004937, allocations: 12 kB / 281.4 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09536, allocations: 47.58 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01794/0.1133, allocations: 13.23 MB / 342.2 MB, free: 6.484 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01541/0.1288, allocations: 12.27 MB / 354.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.129, allocations: 4 kB / 354.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000393/0.1294, allocations: 63.67 kB / 354.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003712/0.1298, allocations: 71.5 kB / 354.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0148/0.1446, allocations: 4.008 MB / 358.6 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004655/0.1451, allocations: 266.9 kB / 358.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.853e-05/0.1452, allocations: 13.44 kB / 358.9 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005872/0.1458, allocations: 183.4 kB / 359.1 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002119/0.146, allocations: 75.69 kB / 359.1 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.168e-05/0.1461, allocations: 8 kB / 359.1 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01446/0.1605, allocations: 6.899 MB / 366 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.1607, allocations: 23.91 kB / 366.1 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.1609, allocations: 93.42 kB / 366.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009323/0.1702, allocations: 3.863 MB / 370 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.1702, allocations: 0 / 370 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1702, allocations: 0 / 370 MB, free: 10.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1702, allocations: 0 / 370 MB, free: 10.59 MB / 318.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.004661/0.1749, allocations: 1.107 MB / 371.1 MB, free: 9.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.175, allocations: 8.031 kB / 371.1 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004744/0.1755, allocations: 64.64 kB / 371.2 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002514/0.1757, allocations: 212.2 kB / 371.4 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.1758, allocations: 8.375 kB / 371.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.1758, allocations: 28.22 kB / 371.4 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.1771, allocations: 388.1 kB / 371.8 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.1771, allocations: 7.938 kB / 371.8 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.1772, allocations: 8 kB / 371.8 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.1772, allocations: 8 kB / 371.8 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.1786, allocations: 363.5 kB / 372.2 MB, free: 8.289 MB / 318.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.001376/0.18, allocations: 1.199 MB / 373.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008334/0.1809, allocations: 291.8 kB / 373.7 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002751/0.1811, allocations: 114.9 kB / 373.8 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2555/0.4367, allocations: 47.87 MB / 421.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.4368, allocations: 33.95 kB / 421.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.224e-06/0.4368, allocations: 0 / 421.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.006331/0.4431, allocations: 1.617 MB / 423.3 MB, free: 188 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.4432, allocations: 113.9 kB / 423.4 MB, free: 52 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.4433, allocations: 121.8 kB / 423.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.424e-05/0.4433, allocations: 33.14 kB / 423.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.074e-05/0.4434, allocations: 109.8 kB / 423.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.4435, allocations: 115.5 kB / 423.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.149e-05/0.4436, allocations: 36.45 kB / 423.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.4437, allocations: 325.5 kB / 424.1 MB, free: 15.35 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003779/0.4441, allocations: 141.4 kB / 424.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.4445, allocations: 200.1 kB / 424.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007852/0.4453, allocations: 360.5 kB / 424.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4453, allocations: 0 / 424.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001134/0.4465, allocations: 437.2 kB / 425.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.4465, allocations: 6.906 kB / 425.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.4465, allocations: 4 kB / 425.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000258/0.4468, allocations: 41.55 kB / 425.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004528/0.4473, allocations: 86.22 kB / 425.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004079/0.4477, allocations: 0.5497 MB / 425.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003147/0.448, allocations: 32.69 kB / 426 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.4481, allocations: 15.81 kB / 426 MB, free: 13.79 MB / 334.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.0002131/0.4483, allocations: 139.5 kB / 426.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.4484, allocations: 23.73 kB / 426.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.4508, allocations: 1.469 MB / 427.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-05/0.4508, allocations: 26.91 kB / 427.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4508, allocations: 0 / 427.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.4508, allocations: 7.984 kB / 427.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002873/0.4537, allocations: 1.984 MB / 429.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.4537, allocations: 8.125 kB / 429.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004492/0.4542, allocations: 87.33 kB / 429.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003711/0.4546, allocations: 72.3 kB / 429.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.379e-05/0.4546, allocations: 18.28 kB / 429.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003954/0.455, allocations: 0.5907 MB / 430.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.455, allocations: 0 / 430.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/0.4571, allocations: 1.697 MB / 432.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.285e-05/0.4572, allocations: 132.3 kB / 432.2 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.38e-05/0.4573, allocations: 14.62 kB / 432.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003582/0.4577, allocations: 23.77 kB / 432.3 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.93e-05/0.4577, allocations: 35.05 kB / 432.3 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.4578, allocations: 15.75 kB / 432.3 MB, free: 9.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.888e-05/0.4578, allocations: 94.48 kB / 432.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4579, allocations: 0 / 432.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002958/0.4608, allocations: 0.9611 MB / 433.4 MB, free: 8.172 MB / 334.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.004003/0.4648, allocations: 1.132 MB / 434.5 MB, free: 7.242 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.4661, allocations: 0.6036 MB / 435.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4661, allocations: 0 / 435.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007741/0.4669, allocations: 0.5173 MB / 435.6 MB, free: 6.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008057/0.4677, allocations: 72 kB / 435.7 MB, free: 6.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.4702, allocations: 1.584 MB / 437.3 MB, free: 5.082 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003517/0.4705, allocations: 0.8178 MB / 438.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003981/0.4709, allocations: 133.4 kB / 438.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.4711, allocations: 43.22 kB / 438.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4711, allocations: 0 / 438.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of Templates: time 0.0494/0.5205, allocations: 35.88 MB / 474.2 MB, free: 308 kB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.3_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches