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.001459/0.001459, allocations: 185.5 kB / 16.41 MB, free: 5.727 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.899/1.899, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001139/0.001138, allocations: 100.3 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005853/0.0005854, allocations: 12 kB / 327 MB, free: 244 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3279, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.874/8.202, allocations: 2.782 GB / 3.148 GB, free: 16.26 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/8.202, allocations: 64.53 kB / 3.148 GB, free: 16.23 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7415/8.943, allocations: 107.4 MB / 3.253 GB, free: 83.87 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.464e-06/8.943, allocations: 4 kB / 3.253 GB, free: 83.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.364e-05/8.943, allocations: 7.938 kB / 3.253 GB, free: 83.86 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.008372/8.952, allocations: 1.148 MB / 3.254 GB, free: 82.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/8.952, allocations: 12.03 kB / 3.254 GB, free: 82.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007074/8.953, allocations: 58.77 kB / 3.254 GB, free: 82.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003017/8.953, allocations: 218.8 kB / 3.254 GB, free: 82.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/8.953, allocations: 16.28 kB / 3.254 GB, free: 82.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.518e-05/8.953, allocations: 12 kB / 3.254 GB, free: 82.49 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00188/8.955, allocations: 393.5 kB / 3.254 GB, free: 82.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/8.955, allocations: 0 / 3.254 GB, free: 82.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.136e-05/8.955, allocations: 8 kB / 3.254 GB, free: 82.17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/8.955, allocations: 4 kB / 3.254 GB, free: 82.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002272/8.957, allocations: 367.2 kB / 3.255 GB, free: 81.89 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.001663/8.959, allocations: 1.199 MB / 3.256 GB, free: 80.67 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/8.96, allocations: 285.8 kB / 3.256 GB, free: 80.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1461/9.106, allocations: 47.17 MB / 3.302 GB, free: 28.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/9.107, allocations: 46.69 kB / 3.302 GB, free: 28.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.524e-06/9.107, allocations: 0 / 3.302 GB, free: 28.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.01099/9.118, allocations: 1.618 MB / 3.304 GB, free: 27.01 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/9.118, allocations: 106.8 kB / 3.304 GB, free: 26.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/9.118, allocations: 116.8 kB / 3.304 GB, free: 26.76 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/9.118, allocations: 29.7 kB / 3.304 GB, free: 26.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.898e-05/9.118, allocations: 171 kB / 3.304 GB, free: 26.56 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/9.118, allocations: 123.8 kB / 3.304 GB, free: 26.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/9.118, allocations: 8 kB / 3.304 GB, free: 26.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.726e-05/9.118, allocations: 326.8 kB / 3.305 GB, free: 26.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006335/9.119, allocations: 143.7 kB / 3.305 GB, free: 25.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006604/9.119, allocations: 206.8 kB / 3.305 GB, free: 25.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000685/9.12, allocations: 156.4 kB / 3.305 GB, free: 25.58 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/9.12, allocations: 0 / 3.305 GB, free: 25.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001734/9.122, allocations: 429.9 kB / 3.306 GB, free: 25.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/9.122, allocations: 4.219 kB / 3.306 GB, free: 25.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/9.122, allocations: 8 kB / 3.306 GB, free: 25.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000366/9.122, allocations: 36.83 kB / 3.306 GB, free: 25.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008139/9.123, allocations: 95.83 kB / 3.306 GB, free: 25.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003734/9.124, allocations: 0.5484 MB / 3.306 GB, free: 24.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005317/9.124, allocations: 28.02 kB / 3.306 GB, free: 24.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.025e-05/9.124, allocations: 15.98 kB / 3.306 GB, free: 24.39 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.0001831/9.124, allocations: 137.7 kB / 3.306 GB, free: 24.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/9.124, allocations: 20.23 kB / 3.306 GB, free: 24.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003049/9.128, allocations: 1.471 MB / 3.308 GB, free: 22.74 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.051e-05/9.128, allocations: 23.97 kB / 3.308 GB, free: 22.72 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/9.128, allocations: 0 / 3.308 GB, free: 22.72 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/9.128, allocations: 0 / 3.308 GB, free: 22.72 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004039/9.132, allocations: 1.999 MB / 3.31 GB, free: 20.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/9.132, allocations: 4 kB / 3.31 GB, free: 20.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007854/9.133, allocations: 91.98 kB / 3.31 GB, free: 20.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005363/9.133, allocations: 72.78 kB / 3.31 GB, free: 20.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/9.133, allocations: 8 kB / 3.31 GB, free: 20.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003536/9.134, allocations: 0.5952 MB / 3.311 GB, free: 19.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/9.134, allocations: 3.938 kB / 3.311 GB, free: 19.85 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00313/9.137, allocations: 1.762 MB / 3.312 GB, free: 18.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/9.137, allocations: 136.3 kB / 3.313 GB, free: 17.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.842e-05/9.137, allocations: 8 kB / 3.313 GB, free: 17.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005828/9.138, allocations: 19.98 kB / 3.313 GB, free: 17.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.793e-05/9.138, allocations: 39.88 kB / 3.313 GB, free: 17.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.882e-05/9.138, allocations: 19.98 kB / 3.313 GB, free: 17.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.271e-05/9.138, allocations: 91.27 kB / 3.313 GB, free: 17.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/9.138, allocations: 0 / 3.313 GB, free: 17.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004968/9.143, allocations: 0.9601 MB / 3.314 GB, free: 16.73 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.009272/9.152, allocations: 1.252 MB / 3.315 GB, free: 15.47 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001936/9.154, allocations: 0.6014 MB / 3.315 GB, free: 14.87 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/9.154, allocations: 448 / 3.315 GB, free: 14.87 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/9.155, allocations: 0.5124 MB / 3.316 GB, free: 14.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009663/9.156, allocations: 78.11 kB / 3.316 GB, free: 14.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003469/9.16, allocations: 1.59 MB / 3.318 GB, free: 12.65 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/9.16, allocations: 0.8295 MB / 3.318 GB, free: 11.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/9.16, allocations: 39.41 kB / 3.318 GB, free: 11.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.372e-06/9.16, allocations: 3.938 kB / 3.318 GB, free: 11.75 MB / 426.7 MB Notification: Performance of Templates: time 0.3456/9.506, allocations: 23.89 MB / 3.342 GB, free: 83.42 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