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.001489/0.001488, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.969/1.969, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001065/0.001065, allocations: 90.69 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.053e-05/4.093e-05, allocations: 0 / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1214, allocations: 47.57 MB / 369.1 MB, free: 2.219 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.448/8.57, allocations: 2.782 GB / 3.142 GB, free: 87.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/8.57, allocations: 64.66 kB / 3.142 GB, free: 87.38 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4628/9.033, allocations: 107.2 MB / 3.247 GB, free: 36.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.754e-06/9.033, allocations: 0 / 3.247 GB, free: 36.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.622e-05/9.033, allocations: 4 kB / 3.247 GB, free: 36.67 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.008433/9.041, allocations: 1.149 MB / 3.248 GB, free: 35.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/9.041, allocations: 8.031 kB / 3.248 GB, free: 35.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006836/9.042, allocations: 47.86 kB / 3.248 GB, free: 35.42 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003065/9.042, allocations: 231.1 kB / 3.248 GB, free: 35.15 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.565e-05/9.043, allocations: 12.28 kB / 3.248 GB, free: 35.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.888e-05/9.043, allocations: 19.98 kB / 3.248 GB, free: 35.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/9.044, allocations: 365 kB / 3.249 GB, free: 34.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/9.044, allocations: 0 / 3.249 GB, free: 34.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.238e-05/9.044, allocations: 8 kB / 3.249 GB, free: 34.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/9.044, allocations: 7.984 kB / 3.249 GB, free: 34.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/9.046, allocations: 311.6 kB / 3.249 GB, free: 34.42 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.001704/9.047, allocations: 1.195 MB / 3.25 GB, free: 33.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008632/9.048, allocations: 264.3 kB / 3.25 GB, free: 32.83 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002021/9.048, allocations: 94.95 kB / 3.251 GB, free: 32.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4397/9.488, allocations: 47.33 MB / 3.297 GB, free: 69.27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/9.488, allocations: 36.5 kB / 3.297 GB, free: 69.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.524e-06/9.488, allocations: 3.844 kB / 3.297 GB, free: 69.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.009108/9.497, allocations: 1.426 MB / 3.298 GB, free: 68.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/9.497, allocations: 112.8 kB / 3.298 GB, free: 68.81 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/9.498, allocations: 110.4 kB / 3.298 GB, free: 68.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.399e-05/9.498, allocations: 33.83 kB / 3.298 GB, free: 68.69 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.227e-05/9.498, allocations: 177.2 kB / 3.299 GB, free: 68.53 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/9.498, allocations: 121.2 kB / 3.299 GB, free: 68.47 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.541e-05/9.498, allocations: 7.406 kB / 3.299 GB, free: 68.47 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.191e-05/9.498, allocations: 322.9 kB / 3.299 GB, free: 68.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003161/9.498, allocations: 116 kB / 3.299 GB, free: 68.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/9.499, allocations: 164.9 kB / 3.299 GB, free: 68.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/9.499, allocations: 123.8 kB / 3.299 GB, free: 68.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/9.499, allocations: 1.156 kB / 3.299 GB, free: 68.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001126/9.5, allocations: 370.2 kB / 3.3 GB, free: 68.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/9.5, allocations: 5.25 kB / 3.3 GB, free: 68.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/9.5, allocations: 6.031 kB / 3.3 GB, free: 68.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003428/9.501, allocations: 37.78 kB / 3.3 GB, free: 68.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008399/9.501, allocations: 88.61 kB / 3.3 GB, free: 68.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003851/9.502, allocations: 0.5478 MB / 3.3 GB, free: 67.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005126/9.502, allocations: 35.02 kB / 3.301 GB, free: 67.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.784e-05/9.502, allocations: 19.48 kB / 3.301 GB, free: 67.51 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 () * 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.0001461/9.503, allocations: 117 kB / 3.301 GB, free: 67.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/9.503, allocations: 16.56 kB / 3.301 GB, free: 67.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002637/9.505, allocations: 1.44 MB / 3.302 GB, free: 67.24 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.435e-05/9.505, allocations: 18.88 kB / 3.302 GB, free: 67.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.819e-06/9.505, allocations: 0.9688 kB / 3.302 GB, free: 67.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/9.505, allocations: 7.922 kB / 3.302 GB, free: 67.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003805/9.509, allocations: 1.966 MB / 3.304 GB, free: 66.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/9.509, allocations: 3.906 kB / 3.304 GB, free: 66.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008106/9.51, allocations: 82 kB / 3.304 GB, free: 66.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004393/9.511, allocations: 78.88 kB / 3.304 GB, free: 66.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.285e-05/9.511, allocations: 15.5 kB / 3.304 GB, free: 66.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003642/9.511, allocations: 0.5812 MB / 3.305 GB, free: 66.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/9.511, allocations: 3.047 kB / 3.305 GB, free: 66.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/9.513, allocations: 1.681 MB / 3.306 GB, free: 65.85 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/9.513, allocations: 124.4 kB / 3.307 GB, free: 65.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.049e-05/9.514, allocations: 17 kB / 3.307 GB, free: 65.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006153/9.514, allocations: 29.44 kB / 3.307 GB, free: 65.73 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.837e-05/9.514, allocations: 36.34 kB / 3.307 GB, free: 65.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.073e-05/9.514, allocations: 11.59 kB / 3.307 GB, free: 65.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.207e-05/9.514, allocations: 93.72 kB / 3.307 GB, free: 65.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.61e-07/9.514, allocations: 0 / 3.307 GB, free: 65.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005031/9.519, allocations: 0.9662 MB / 3.308 GB, free: 65.66 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 () * 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.009291/9.529, allocations: 1.243 MB / 3.309 GB, free: 65.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001473/9.53, allocations: 0.549 MB / 3.309 GB, free: 65.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/9.53, allocations: 0 / 3.309 GB, free: 65.55 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008307/9.531, allocations: 494.6 kB / 3.31 GB, free: 65.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009256/9.532, allocations: 79.58 kB / 3.31 GB, free: 65.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00279/9.535, allocations: 1.073 MB / 3.311 GB, free: 65.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/9.535, allocations: 0.8259 MB / 3.312 GB, free: 64.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002674/9.536, allocations: 41.84 kB / 3.312 GB, free: 64.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.913e-06/9.536, allocations: 3.906 kB / 3.312 GB, free: 64.59 MB / 426.7 MB Notification: Performance of Templates: time 0.04943/9.585, allocations: 23.66 MB / 3.335 GB, free: 62.5 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