Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_Modelica.Media.Examples.WaterIF97") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 173.8 kB / 8.475 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.335/1.335, allocations: 205.2 MB / 214.1 MB, free: 5.238 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009231/0.0009232, allocations: 94.31 kB / 262.1 MB, free: 5.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.603e-06/6.633e-06, allocations: 0 / 315 MB, free: 41.53 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08828/0.08831, allocations: 47.57 MB / 362.5 MB, free: 10 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.979/6.067, allocations: 2.781 GB / 3.135 GB, free: 86.32 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/6.068, allocations: 59.73 kB / 3.135 GB, free: 86.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.5399/6.608, allocations: 104.1 MB / 3.237 GB, free: 88.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.828e-05/6.608, allocations: 3.969 kB / 3.237 GB, free: 88.02 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.00768/6.615, allocations: 1.17 MB / 3.238 GB, free: 87.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/6.615, allocations: 11.88 kB / 3.238 GB, free: 87.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005403/6.616, allocations: 55.17 kB / 3.238 GB, free: 87.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/6.616, allocations: 218.8 kB / 3.238 GB, free: 87.28 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/6.616, allocations: 6.906 kB / 3.238 GB, free: 87.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.159e-05/6.616, allocations: 18.58 kB / 3.238 GB, free: 87.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004034/6.617, allocations: 205.6 kB / 3.239 GB, free: 87.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000291/6.617, allocations: 208.7 kB / 3.239 GB, free: 87.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/6.617, allocations: 0 / 3.239 GB, free: 87.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.868e-05/6.617, allocations: 3.969 kB / 3.239 GB, free: 87.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/6.617, allocations: 3.969 kB / 3.239 GB, free: 87.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/6.619, allocations: 1.187 MB / 3.24 GB, free: 86.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/6.619, allocations: 126.2 kB / 3.24 GB, free: 86.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/6.619, allocations: 82.42 kB / 3.24 GB, free: 86.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09754/6.716, allocations: 47.21 MB / 3.286 GB, free: 56.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.407e-05/6.717, allocations: 41 kB / 3.286 GB, free: 56.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 4.318e-06/6.717, allocations: 4 kB / 3.286 GB, free: 56.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.004423/6.721, allocations: 1.072 MB / 3.287 GB, free: 56.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/6.721, allocations: 108.9 kB / 3.287 GB, free: 56.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/6.721, allocations: 110.8 kB / 3.288 GB, free: 55.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/6.721, allocations: 25.7 kB / 3.288 GB, free: 55.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.818e-05/6.721, allocations: 111.9 kB / 3.288 GB, free: 55.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.415e-05/6.721, allocations: 116 kB / 3.288 GB, free: 55.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.282e-05/6.721, allocations: 0 / 3.288 GB, free: 55.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.557e-05/6.722, allocations: 325.8 kB / 3.288 GB, free: 55.44 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/6.722, allocations: 106 kB / 3.288 GB, free: 55.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/6.722, allocations: 168.7 kB / 3.288 GB, free: 55.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000352/6.722, allocations: 127.6 kB / 3.288 GB, free: 55.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/6.722, allocations: 0 / 3.288 GB, free: 55.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001125/6.723, allocations: 434.2 kB / 3.289 GB, free: 55.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/6.723, allocations: 6.531 kB / 3.289 GB, free: 55.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/6.723, allocations: 224 / 3.289 GB, free: 55.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002105/6.724, allocations: 38.91 kB / 3.289 GB, free: 55.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005253/6.724, allocations: 93.02 kB / 3.289 GB, free: 55.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004233/6.725, allocations: 0.5597 MB / 3.29 GB, free: 54.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/6.725, allocations: 20.27 kB / 3.29 GB, free: 54.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.99e-05/6.725, allocations: 19.08 kB / 3.29 GB, free: 54.77 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.0001495/6.725, allocations: 112 kB / 3.29 GB, free: 54.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003526/6.726, allocations: 97.22 kB / 3.29 GB, free: 54.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/6.728, allocations: 1.373 MB / 3.291 GB, free: 54.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.197e-05/6.728, allocations: 17.17 kB / 3.291 GB, free: 54.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/6.728, allocations: 0 / 3.291 GB, free: 54.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.108e-06/6.728, allocations: 3.969 kB / 3.291 GB, free: 54.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002346/6.73, allocations: 1.7 MB / 3.293 GB, free: 54.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/6.73, allocations: 3.75 kB / 3.293 GB, free: 54.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004629/6.73, allocations: 84.83 kB / 3.293 GB, free: 54.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002445/6.731, allocations: 70.44 kB / 3.293 GB, free: 54.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/6.731, allocations: 7.766 kB / 3.293 GB, free: 54.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003655/6.731, allocations: 0.6203 MB / 3.294 GB, free: 53.63 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/6.731, allocations: 3.938 kB / 3.294 GB, free: 53.63 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001974/6.733, allocations: 1.791 MB / 3.295 GB, free: 53.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.697e-05/6.733, allocations: 108.3 kB / 3.295 GB, free: 53.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.929e-05/6.733, allocations: 3.938 kB / 3.295 GB, free: 53.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004038/6.734, allocations: 23.47 kB / 3.295 GB, free: 53.03 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.685e-05/6.734, allocations: 26.91 kB / 3.295 GB, free: 53.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.966e-05/6.734, allocations: 20.66 kB / 3.295 GB, free: 53.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.849e-05/6.734, allocations: 89.41 kB / 3.296 GB, free: 52.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006214/6.74, allocations: 0.9776 MB / 3.297 GB, free: 52.79 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: 9 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.01233/6.752, allocations: 1.353 MB / 3.298 GB, free: 52.47 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001831/6.754, allocations: 0.6669 MB / 3.299 GB, free: 52.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.361e-05/6.754, allocations: 288 / 3.299 GB, free: 52.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000984/6.755, allocations: 0.6174 MB / 3.299 GB, free: 52.45 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007709/6.756, allocations: 62.59 kB / 3.299 GB, free: 52.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/6.759, allocations: 1.008 MB / 3.3 GB, free: 52.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006163/6.759, allocations: 0.8454 MB / 3.301 GB, free: 51.42 MB / 426.7 MB Notification: Performance of SimCode: time 2.225e-06/6.759, allocations: 0 / 3.301 GB, free: 51.42 MB / 426.7 MB Notification: Performance of Templates: time 0.05138/6.811, allocations: 29.47 MB / 3.33 GB, free: 45.12 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.3_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/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_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches