Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001205/0.001205, allocations: 181.6 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 205.4 MB / 223.6 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007991/0.0007994, allocations: 93.97 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003587, allocations: 19.98 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2612, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.037/5.298, allocations: 2.782 GB / 3.149 GB, free: 101.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/5.298, allocations: 74.2 kB / 3.149 GB, free: 101.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4498/5.748, allocations: 107.4 MB / 3.254 GB, free: 75.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.533e-06/5.748, allocations: 7.75 kB / 3.254 GB, free: 75.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.246e-05/5.748, allocations: 0 / 3.254 GB, free: 75.66 MB / 426.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.005802/5.754, allocations: 1.142 MB / 3.255 GB, free: 75.14 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/5.754, allocations: 11.75 kB / 3.255 GB, free: 75.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004668/5.754, allocations: 63.94 kB / 3.255 GB, free: 75.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/5.755, allocations: 219.5 kB / 3.255 GB, free: 74.94 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.299e-05/5.755, allocations: 12.81 kB / 3.255 GB, free: 74.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.736e-05/5.755, allocations: 20.62 kB / 3.255 GB, free: 74.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/5.756, allocations: 391.6 kB / 3.256 GB, free: 74.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/5.756, allocations: 1.5 kB / 3.256 GB, free: 74.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.895e-05/5.756, allocations: 13.62 kB / 3.256 GB, free: 74.83 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/5.756, allocations: 3.25 kB / 3.256 GB, free: 74.83 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/5.757, allocations: 367 kB / 3.256 GB, free: 74.83 MB / 426.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.001183/5.758, allocations: 1.2 MB / 3.257 GB, free: 73.85 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007582/5.759, allocations: 281.7 kB / 3.258 GB, free: 73.78 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00025/5.76, allocations: 117 kB / 3.258 GB, free: 73.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07987/5.839, allocations: 47.17 MB / 3.304 GB, free: 44.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.614e-05/5.839, allocations: 45.42 kB / 3.304 GB, free: 44.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 3.216e-06/5.84, allocations: 0 / 3.304 GB, free: 44.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.006234/5.846, allocations: 1.625 MB / 3.305 GB, free: 44.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/5.846, allocations: 114.6 kB / 3.306 GB, free: 44.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.699e-05/5.846, allocations: 121.9 kB / 3.306 GB, free: 44.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.399e-05/5.846, allocations: 33.48 kB / 3.306 GB, free: 44.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.144e-05/5.846, allocations: 102.5 kB / 3.306 GB, free: 44.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.63e-05/5.846, allocations: 120.7 kB / 3.306 GB, free: 44.08 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/5.846, allocations: 3 kB / 3.306 GB, free: 44.08 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.769e-05/5.846, allocations: 329.3 kB / 3.306 GB, free: 43.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003526/5.847, allocations: 141.6 kB / 3.306 GB, free: 43.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003641/5.847, allocations: 210.8 kB / 3.307 GB, free: 43.69 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007046/5.848, allocations: 349.1 kB / 3.307 GB, free: 43.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/5.848, allocations: 4 kB / 3.307 GB, free: 43.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009913/5.849, allocations: 438.6 kB / 3.307 GB, free: 43.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/5.849, allocations: 9.594 kB / 3.307 GB, free: 43.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/5.849, allocations: 0 / 3.307 GB, free: 43.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002885/5.849, allocations: 39.52 kB / 3.307 GB, free: 43.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004441/5.849, allocations: 93.97 kB / 3.307 GB, free: 43.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003487/5.85, allocations: 0.5504 MB / 3.308 GB, free: 43.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/5.85, allocations: 33.86 kB / 3.308 GB, free: 43.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.295e-05/5.85, allocations: 14.5 kB / 3.308 GB, free: 43.01 MB / 426.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.0001841/5.85, allocations: 144.4 kB / 3.308 GB, free: 42.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.933e-05/5.851, allocations: 14.73 kB / 3.308 GB, free: 42.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002398/5.853, allocations: 1.463 MB / 3.31 GB, free: 42.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.802e-05/5.853, allocations: 26.45 kB / 3.31 GB, free: 42.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/5.853, allocations: 3.938 kB / 3.31 GB, free: 42.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/5.853, allocations: 3.891 kB / 3.31 GB, free: 42.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002708/5.856, allocations: 2.004 MB / 3.312 GB, free: 42.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/5.856, allocations: 3.594 kB / 3.312 GB, free: 42.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003932/5.856, allocations: 82.38 kB / 3.312 GB, free: 42.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003349/5.857, allocations: 80.84 kB / 3.312 GB, free: 42.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-05/5.857, allocations: 7.5 kB / 3.312 GB, free: 42.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002621/5.857, allocations: 0.5901 MB / 3.312 GB, free: 41.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/5.857, allocations: 3.906 kB / 3.312 GB, free: 41.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001815/5.859, allocations: 1.702 MB / 3.314 GB, free: 41.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.713e-05/5.859, allocations: 128.2 kB / 3.314 GB, free: 41.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.547e-05/5.859, allocations: 7.469 kB / 3.314 GB, free: 41.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003512/5.859, allocations: 21.73 kB / 3.314 GB, free: 41.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/5.859, allocations: 36.83 kB / 3.314 GB, free: 41.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/5.859, allocations: 22.97 kB / 3.314 GB, free: 41.28 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.629e-05/5.859, allocations: 89.75 kB / 3.314 GB, free: 41.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.01e-07/5.859, allocations: 0 / 3.314 GB, free: 41.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004338/5.864, allocations: 0.9629 MB / 3.315 GB, free: 41.05 MB / 426.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.007419/5.871, allocations: 1.24 MB / 3.316 GB, free: 40.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001391/5.873, allocations: 0.5993 MB / 3.317 GB, free: 40.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/5.873, allocations: 2.656 kB / 3.317 GB, free: 40.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007361/5.873, allocations: 0.5141 MB / 3.318 GB, free: 40.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008064/5.874, allocations: 79.97 kB / 3.318 GB, free: 40.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/5.876, allocations: 1.598 MB / 3.319 GB, free: 40.01 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000207/5.877, allocations: 0.8181 MB / 3.32 GB, free: 39.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/5.877, allocations: 39.72 kB / 3.32 GB, free: 39.29 MB / 426.7 MB Notification: Performance of SimCode: time 4.41e-07/5.877, allocations: 3.906 kB / 3.32 GB, free: 39.29 MB / 426.7 MB Notification: Performance of Templates: time 0.02965/5.906, allocations: 21.18 MB / 3.341 GB, free: 37.7 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches