Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") [: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.002853/0.002853, allocations: 178.3 kB / 8.152 MB, free: 2.203 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.734/1.734, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001254/0.001253, allocations: 91.12 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.014e-05/1.029e-05, allocations: 0 / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.248, allocations: 47.55 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7568/1.005, allocations: 320.2 MB / 0.666 GB, free: 117.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/1.005, allocations: 79.34 kB / 0.6661 GB, free: 117.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.4522/1.457, allocations: 131.2 MB / 0.7942 GB, free: 33.17 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.867e-05/1.458, allocations: 16.44 kB / 0.7942 GB, free: 33.15 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003402/1.461, allocations: 1.105 MB / 0.7953 GB, free: 32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/1.461, allocations: 8.031 kB / 0.7953 GB, free: 31.99 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005032/1.462, allocations: 98.95 kB / 0.7954 GB, free: 31.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001845/1.463, allocations: 0.6597 MB / 0.796 GB, free: 31.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/1.464, allocations: 84.7 kB / 0.7961 GB, free: 31.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/1.464, allocations: 32 kB / 0.7962 GB, free: 31.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001952/1.466, allocations: 0.7639 MB / 0.7969 GB, free: 30.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001862/1.468, allocations: 0.832 MB / 0.7977 GB, free: 29.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/1.468, allocations: 0 / 0.7977 GB, free: 29.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001169/1.468, allocations: 7.984 kB / 0.7977 GB, free: 29.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.124e-05/1.468, allocations: 49.28 kB / 0.7978 GB, free: 29.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008134/1.476, allocations: 3.171 MB / 0.8009 GB, free: 26.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/1.477, allocations: 0.5067 MB / 0.8014 GB, free: 25.56 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007621/1.478, allocations: 358.2 kB / 0.8017 GB, free: 25.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004199/1.482, allocations: 2.023 MB / 0.8037 GB, free: 22.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/1.482, allocations: 39.06 kB / 0.8037 GB, free: 22.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 3.026e-06/1.482, allocations: 0 / 0.8037 GB, free: 22.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.0117/1.494, allocations: 2.556 MB / 0.8062 GB, free: 20.33 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/1.494, allocations: 85.77 kB / 0.8063 GB, free: 20.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00078/1.495, allocations: 450.2 kB / 0.8067 GB, free: 19.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.905e-05/1.495, allocations: 25.7 kB / 0.8067 GB, free: 19.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/1.495, allocations: 302.4 kB / 0.807 GB, free: 19.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/1.495, allocations: 224.8 kB / 0.8072 GB, free: 19.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.826e-05/1.495, allocations: 0 / 0.8072 GB, free: 19.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.769e-05/1.495, allocations: 346.7 kB / 0.8076 GB, free: 18.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000838/1.496, allocations: 349.4 kB / 0.8079 GB, free: 18.54 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009209/1.497, allocations: 495 kB / 0.8084 GB, free: 18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00779/1.505, allocations: 1.057 MB / 0.8094 GB, free: 16.95 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/1.505, allocations: 0 / 0.8094 GB, free: 16.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.01001/1.515, allocations: 1.714 MB / 0.8111 GB, free: 15.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003572/1.516, allocations: 1.571 MB / 0.8126 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/1.516, allocations: 4 kB / 0.8126 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/1.517, allocations: 360.6 kB / 0.813 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/1.518, allocations: 163.7 kB / 0.8131 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003408/1.522, allocations: 1.247 MB / 0.8143 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/1.523, allocations: 27.89 kB / 0.8144 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/1.523, allocations: 35.92 kB / 0.8144 GB, free: 11.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/1.523, allocations: 11.94 kB / 0.8144 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009421/1.532, allocations: 1.572 MB / 0.8159 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/1.532, allocations: 4 kB / 0.816 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/1.534, allocations: 304.8 kB / 0.8162 GB, free: 9.773 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/1.535, allocations: 167.7 kB / 0.8164 GB, free: 9.609 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002826/1.538, allocations: 1.091 MB / 0.8175 GB, free: 8.492 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009495/1.539, allocations: 39.81 kB / 0.8175 GB, free: 8.453 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/1.539, allocations: 31.98 kB / 0.8175 GB, free: 8.422 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003228/1.539, allocations: 45.61 kB / 0.8176 GB, free: 8.371 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002724/1.539, allocations: 71.16 kB / 0.8176 GB, free: 8.301 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005051/1.544, allocations: 1.253 MB / 0.8189 GB, free: 7.043 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/1.545, allocations: 8.094 kB / 0.8189 GB, free: 7.035 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/1.545, allocations: 3.938 kB / 0.8189 GB, free: 7.031 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/1.545, allocations: 7.969 kB / 0.8189 GB, free: 7.023 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006653/1.551, allocations: 2.087 MB / 0.8209 GB, free: 4.887 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/1.551, allocations: 0 / 0.8209 GB, free: 4.887 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/1.552, allocations: 119.8 kB / 0.821 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/1.554, allocations: 368.1 kB / 0.8214 GB, free: 4.41 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.841e-05/1.554, allocations: 7.984 kB / 0.8214 GB, free: 4.402 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003359/1.557, allocations: 1.259 MB / 0.8226 GB, free: 3.117 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/1.557, allocations: 0 / 0.8226 GB, free: 3.117 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00558/1.563, allocations: 1.759 MB / 0.8243 GB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006197/1.564, allocations: 240.1 kB / 0.8246 GB, free: 1.082 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/1.564, allocations: 0 / 0.8246 GB, free: 1.082 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/1.565, allocations: 36.11 kB / 0.8246 GB, free: 1.047 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/1.565, allocations: 56.47 kB / 0.8247 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/1.565, allocations: 27.98 kB / 0.8247 GB, free: 0.9648 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.000584/1.566, allocations: 338.9 kB / 0.825 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002373/1.568, allocations: 0.6011 MB / 0.8256 GB, free: 36 kB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.1559/1.724, allocations: 0.5837 MB / 0.8262 GB, free: 135.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004489/1.729, allocations: 1.332 MB / 0.8275 GB, free: 135.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/1.729, allocations: 2.438 kB / 0.8275 GB, free: 135.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001465/1.73, allocations: 452.8 kB / 0.8279 GB, free: 135.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002677/1.733, allocations: 304.1 kB / 0.8282 GB, free: 135.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004869/1.738, allocations: 1.384 MB / 0.8295 GB, free: 135.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009607/1.739, allocations: 1.093 MB / 0.8306 GB, free: 134.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.153e-06/1.739, allocations: 0 / 0.8306 GB, free: 134.9 MB / 426.7 MB Notification: Performance of Templates: time 0.03452/1.773, allocations: 18.66 MB / 0.8488 GB, free: 134.6 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches