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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 176.8 kB / 17.39 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 223.3 MB / 241.4 MB, free: 11.68 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007901/0.0007902, allocations: 93.83 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003057/0.0003057, allocations: 11.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2067, allocations: 50.4 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.46/4.667, allocations: 2.787 GB / 3.181 GB, free: 19.52 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/4.667, allocations: 70.41 kB / 3.181 GB, free: 19.45 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4235/5.091, allocations: 108.4 MB / 3.287 GB, free: 97.67 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.944e-06/5.091, allocations: 3 kB / 3.287 GB, free: 97.67 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.013e-05/5.091, allocations: 0 / 3.287 GB, free: 97.67 MB / 458.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.005198/5.096, allocations: 1.142 MB / 3.288 GB, free: 96.61 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/5.096, allocations: 12.03 kB / 3.288 GB, free: 96.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004418/5.096, allocations: 56.28 kB / 3.288 GB, free: 96.56 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/5.096, allocations: 230.5 kB / 3.288 GB, free: 96.32 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/5.097, allocations: 8.656 kB / 3.288 GB, free: 96.31 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/5.097, allocations: 20.28 kB / 3.288 GB, free: 96.29 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/5.098, allocations: 401.2 kB / 3.288 GB, free: 95.97 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/5.098, allocations: 192 / 3.288 GB, free: 95.97 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/5.098, allocations: 7.938 kB / 3.288 GB, free: 95.96 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/5.098, allocations: 7.938 kB / 3.288 GB, free: 95.96 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/5.099, allocations: 373.1 kB / 3.289 GB, free: 95.68 MB / 458.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.0009935/5.1, allocations: 1.184 MB / 3.29 GB, free: 94.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006772/5.101, allocations: 291 kB / 3.29 GB, free: 94.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/5.101, allocations: 117.1 kB / 3.29 GB, free: 94.11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06966/5.17, allocations: 47.19 MB / 3.336 GB, free: 43.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/5.17, allocations: 34.56 kB / 3.336 GB, free: 43.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 1.873e-06/5.17, allocations: 0 / 3.336 GB, free: 43.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.005746/5.176, allocations: 1.621 MB / 3.338 GB, free: 41.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.572e-05/5.176, allocations: 110.8 kB / 3.338 GB, free: 41.33 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.826e-05/5.176, allocations: 125.8 kB / 3.338 GB, free: 41.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/5.176, allocations: 29.7 kB / 3.338 GB, free: 41.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.288e-05/5.176, allocations: 100.6 kB / 3.338 GB, free: 41.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.1e-05/5.176, allocations: 126.2 kB / 3.338 GB, free: 40.93 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/5.177, allocations: 8 kB / 3.338 GB, free: 40.93 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.219e-05/5.177, allocations: 322.8 kB / 3.339 GB, free: 40.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003213/5.177, allocations: 143.9 kB / 3.339 GB, free: 40.46 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003207/5.177, allocations: 203 kB / 3.339 GB, free: 40.24 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006225/5.178, allocations: 347.2 kB / 3.339 GB, free: 39.88 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/5.178, allocations: 0 / 3.339 GB, free: 39.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008615/5.179, allocations: 449.9 kB / 3.34 GB, free: 39.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/5.179, allocations: 4 kB / 3.34 GB, free: 39.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/5.179, allocations: 4 kB / 3.34 GB, free: 39.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002047/5.179, allocations: 36.83 kB / 3.34 GB, free: 39.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/5.179, allocations: 95.97 kB / 3.34 GB, free: 39.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002192/5.18, allocations: 0.5407 MB / 3.34 GB, free: 38.72 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/5.18, allocations: 39.78 kB / 3.341 GB, free: 38.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/5.18, allocations: 24.09 kB / 3.341 GB, free: 38.66 MB / 458.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001238/5.18, allocations: 134.5 kB / 3.341 GB, free: 38.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.665e-05/5.18, allocations: 11.91 kB / 3.341 GB, free: 38.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/5.182, allocations: 1.461 MB / 3.342 GB, free: 37.04 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/5.182, allocations: 19.97 kB / 3.342 GB, free: 37.02 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/5.182, allocations: 7.969 kB / 3.342 GB, free: 37.01 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/5.182, allocations: 7.922 kB / 3.342 GB, free: 37 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00213/5.184, allocations: 2.003 MB / 3.344 GB, free: 34.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/5.184, allocations: 4 kB / 3.344 GB, free: 34.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003838/5.184, allocations: 87.86 kB / 3.344 GB, free: 34.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002911/5.185, allocations: 72.92 kB / 3.344 GB, free: 34.77 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/5.185, allocations: 11.98 kB / 3.344 GB, free: 34.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002006/5.185, allocations: 0.5874 MB / 3.345 GB, free: 34.14 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/5.185, allocations: 0 / 3.345 GB, free: 34.14 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/5.186, allocations: 1.717 MB / 3.347 GB, free: 32.39 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/5.187, allocations: 124.5 kB / 3.347 GB, free: 32.25 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.942e-05/5.187, allocations: 11.94 kB / 3.347 GB, free: 32.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003249/5.187, allocations: 28.02 kB / 3.347 GB, free: 32.21 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.187e-05/5.187, allocations: 35.83 kB / 3.347 GB, free: 32.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.739e-05/5.187, allocations: 15.98 kB / 3.347 GB, free: 32.16 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.117e-05/5.187, allocations: 91.28 kB / 3.347 GB, free: 32.07 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/5.187, allocations: 0 / 3.347 GB, free: 32.07 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003628/5.191, allocations: 0.964 MB / 3.348 GB, free: 31.11 MB / 458.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003919/5.195, allocations: 1.237 MB / 3.349 GB, free: 29.86 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.000989/5.196, allocations: 0.6089 MB / 3.35 GB, free: 29.25 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/5.196, allocations: 3.938 kB / 3.35 GB, free: 29.25 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000605/5.196, allocations: 0.5207 MB / 3.35 GB, free: 28.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006944/5.197, allocations: 76.73 kB / 3.35 GB, free: 28.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/5.199, allocations: 1.561 MB / 3.352 GB, free: 27.04 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000181/5.199, allocations: 0.8178 MB / 3.352 GB, free: 26.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003538/5.199, allocations: 141 kB / 3.353 GB, free: 26.07 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/5.199, allocations: 35.42 kB / 3.353 GB, free: 26.03 MB / 458.7 MB Notification: Performance of SimCode: time 2.71e-07/5.199, allocations: 0 / 3.353 GB, free: 26.03 MB / 458.7 MB Notification: Performance of Templates: time 0.2089/5.408, allocations: 28.77 MB / 3.381 GB, free: 109.6 MB / 458.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches