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.001112/0.001112, allocations: 181.1 kB / 16.39 MB, free: 5.762 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.347/1.347, allocations: 223.2 MB / 240.3 MB, free: 11.86 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.0009272/0.0009271, allocations: 103.8 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002527/0.0002528, allocations: 4 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2535, allocations: 50.4 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.384/5.637, allocations: 2.787 GB / 3.179 GB, free: 140.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/5.638, allocations: 71.88 kB / 3.179 GB, free: 140.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2508/5.889, allocations: 108.4 MB / 3.285 GB, free: 37.12 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.894e-06/5.889, allocations: 4 kB / 3.285 GB, free: 37.12 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.394e-05/5.889, allocations: 4 kB / 3.285 GB, free: 37.11 MB / 442.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.005694/5.894, allocations: 1.146 MB / 3.286 GB, free: 35.91 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/5.894, allocations: 11.97 kB / 3.286 GB, free: 35.9 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000503/5.895, allocations: 55.77 kB / 3.286 GB, free: 35.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/5.895, allocations: 214.9 kB / 3.286 GB, free: 35.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/5.895, allocations: 16.28 kB / 3.286 GB, free: 35.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.114e-05/5.895, allocations: 16.28 kB / 3.286 GB, free: 35.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/5.896, allocations: 397.7 kB / 3.287 GB, free: 35.15 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/5.896, allocations: 11.92 kB / 3.287 GB, free: 35.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/5.896, allocations: 8 kB / 3.287 GB, free: 35.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/5.896, allocations: 4 kB / 3.287 GB, free: 35.13 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/5.898, allocations: 369.2 kB / 3.287 GB, free: 34.77 MB / 442.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.001125/5.899, allocations: 1.188 MB / 3.288 GB, free: 33.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000702/5.9, allocations: 288.2 kB / 3.289 GB, free: 33.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2757/6.175, allocations: 47.18 MB / 3.335 GB, free: 77.03 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/6.175, allocations: 39.09 kB / 3.335 GB, free: 76.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=23): time 2.445e-06/6.175, allocations: 3.469 kB / 3.335 GB, free: 76.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.006379/6.182, allocations: 1.62 MB / 3.336 GB, free: 76.71 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/6.182, allocations: 106.8 kB / 3.336 GB, free: 76.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.339e-05/6.182, allocations: 114.9 kB / 3.337 GB, free: 76.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/6.182, allocations: 34.11 kB / 3.337 GB, free: 76.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.179e-05/6.182, allocations: 105.4 kB / 3.337 GB, free: 76.37 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.646e-05/6.182, allocations: 119 kB / 3.337 GB, free: 76.31 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.242e-05/6.182, allocations: 8.781 kB / 3.337 GB, free: 76.31 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.971e-05/6.182, allocations: 328.9 kB / 3.337 GB, free: 76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003583/6.183, allocations: 134.8 kB / 3.337 GB, free: 76 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003762/6.183, allocations: 198.9 kB / 3.337 GB, free: 75.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003593/6.183, allocations: 157.8 kB / 3.338 GB, free: 75.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/6.183, allocations: 1 kB / 3.338 GB, free: 75.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001105/6.184, allocations: 439.9 kB / 3.338 GB, free: 75.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/6.185, allocations: 9.359 kB / 3.338 GB, free: 75.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/6.185, allocations: 1.875 kB / 3.338 GB, free: 75.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002191/6.185, allocations: 41.19 kB / 3.338 GB, free: 75.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004386/6.185, allocations: 93.02 kB / 3.338 GB, free: 75.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002881/6.185, allocations: 0.5442 MB / 3.339 GB, free: 75.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/6.186, allocations: 35.73 kB / 3.339 GB, free: 75.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.005e-05/6.186, allocations: 15.25 kB / 3.339 GB, free: 75.35 MB / 442.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.0001126/6.186, allocations: 135.9 kB / 3.339 GB, free: 75.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.835e-05/6.186, allocations: 19.56 kB / 3.339 GB, free: 75.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/6.188, allocations: 1.462 MB / 3.34 GB, free: 75.08 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/6.188, allocations: 20.02 kB / 3.34 GB, free: 75.08 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/6.188, allocations: 4.969 kB / 3.34 GB, free: 75.08 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/6.188, allocations: 3.75 kB / 3.34 GB, free: 75.08 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002378/6.19, allocations: 1.991 MB / 3.342 GB, free: 74.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/6.19, allocations: 1.312 kB / 3.342 GB, free: 74.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004902/6.191, allocations: 84.73 kB / 3.342 GB, free: 74.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003598/6.191, allocations: 72.78 kB / 3.342 GB, free: 74.69 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.156e-05/6.191, allocations: 23.64 kB / 3.342 GB, free: 74.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002809/6.191, allocations: 0.5889 MB / 3.343 GB, free: 74.17 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/6.191, allocations: 1.688 kB / 3.343 GB, free: 74.17 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/6.193, allocations: 1.782 MB / 3.345 GB, free: 73.69 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.47e-05/6.193, allocations: 131.3 kB / 3.345 GB, free: 73.57 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.156e-05/6.193, allocations: 15.06 kB / 3.345 GB, free: 73.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000363/6.194, allocations: 29.83 kB / 3.345 GB, free: 73.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.334e-05/6.194, allocations: 34.8 kB / 3.345 GB, free: 73.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-05/6.194, allocations: 14.09 kB / 3.345 GB, free: 73.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.713e-05/6.194, allocations: 95.12 kB / 3.345 GB, free: 73.49 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.3e-07/6.194, allocations: 0 / 3.345 GB, free: 73.49 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00409/6.198, allocations: 0.9633 MB / 3.346 GB, free: 73.49 MB / 442.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.004233/6.202, allocations: 1.251 MB / 3.347 GB, free: 73.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001169/6.204, allocations: 0.6029 MB / 3.348 GB, free: 73.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/6.204, allocations: 2.188 kB / 3.348 GB, free: 73.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007072/6.204, allocations: 0.513 MB / 3.348 GB, free: 73.38 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005622/6.205, allocations: 72.95 kB / 3.348 GB, free: 73.37 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/6.207, allocations: 1.561 MB / 3.35 GB, free: 72.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002247/6.207, allocations: 0.8258 MB / 3.351 GB, free: 72.12 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003469/6.207, allocations: 135.4 kB / 3.351 GB, free: 72.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/6.208, allocations: 33.89 kB / 3.351 GB, free: 72.11 MB / 442.7 MB Notification: Performance of SimCode: time 2.01e-07/6.208, allocations: 3.875 kB / 3.351 GB, free: 72.11 MB / 442.7 MB Notification: Performance of Templates: time 0.03103/6.239, allocations: 26.52 MB / 3.377 GB, free: 71.2 MB / 442.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/jenkins/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