Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009852/0.0009852, allocations: 178.9 kB / 8.477 MB, free: 1.879 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.247/1.247, allocations: 205.2 MB / 214.1 MB, free: 5.078 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.0009593/0.0009593, allocations: 90.31 kB / 262.1 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.929e-06/9.979e-06, allocations: 4 kB / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1007, allocations: 47.58 MB / 362.5 MB, free: 9.945 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.634/0.7347, allocations: 320.1 MB / 0.6667 GB, free: 70.22 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.735, allocations: 75.77 kB / 0.6668 GB, free: 70.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.5539/1.289, allocations: 131.2 MB / 0.7949 GB, free: 112.1 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.434e-05/1.289, allocations: 17.44 kB / 0.7949 GB, free: 112.1 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.00377/1.293, allocations: 1.089 MB / 0.796 GB, free: 111.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/1.293, allocations: 8.062 kB / 0.796 GB, free: 111.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006141/1.294, allocations: 104.5 kB / 0.7961 GB, free: 111.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002177/1.296, allocations: 0.6528 MB / 0.7967 GB, free: 110.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001466/1.296, allocations: 92.73 kB / 0.7968 GB, free: 110.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/1.296, allocations: 31.91 kB / 0.7968 GB, free: 110.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002255/1.298, allocations: 0.7686 MB / 0.7976 GB, free: 110.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002528/1.301, allocations: 0.8238 MB / 0.7984 GB, free: 110.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.403e-05/1.301, allocations: 0.75 kB / 0.7984 GB, free: 110.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/1.301, allocations: 5.812 kB / 0.7984 GB, free: 110.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001479/1.301, allocations: 53 kB / 0.7984 GB, free: 110.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00951/1.311, allocations: 3.173 MB / 0.8015 GB, free: 107.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/1.312, allocations: 0.5117 MB / 0.802 GB, free: 107.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007597/1.313, allocations: 356.1 kB / 0.8024 GB, free: 107.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004223/1.317, allocations: 2.019 MB / 0.8043 GB, free: 105.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/1.317, allocations: 39.5 kB / 0.8044 GB, free: 105.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 3.206e-06/1.317, allocations: 3.938 kB / 0.8044 GB, free: 105.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.01215/1.329, allocations: 2.562 MB / 0.8069 GB, free: 103.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/1.329, allocations: 89.77 kB / 0.807 GB, free: 103.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008082/1.33, allocations: 450.1 kB / 0.8074 GB, free: 103.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.357e-05/1.33, allocations: 25.7 kB / 0.8074 GB, free: 103.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/1.33, allocations: 272 kB / 0.8077 GB, free: 102.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000213/1.331, allocations: 220.7 kB / 0.8079 GB, free: 102.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.847e-05/1.331, allocations: 0 / 0.8079 GB, free: 102.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/1.331, allocations: 382.7 kB / 0.8083 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007441/1.332, allocations: 341.4 kB / 0.8086 GB, free: 101.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008151/1.332, allocations: 0.499 MB / 0.8091 GB, free: 101.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007174/1.34, allocations: 1.049 MB / 0.8101 GB, free: 100.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/1.34, allocations: 0 / 0.8101 GB, free: 100.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00972/1.349, allocations: 1.745 MB / 0.8118 GB, free: 98.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003364/1.35, allocations: 1.575 MB / 0.8133 GB, free: 96.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/1.35, allocations: 4 kB / 0.8133 GB, free: 96.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/1.351, allocations: 364.6 kB / 0.8137 GB, free: 96.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/1.352, allocations: 151.8 kB / 0.8138 GB, free: 96.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/1.356, allocations: 1.262 MB / 0.8151 GB, free: 95.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/1.357, allocations: 27.97 kB / 0.8151 GB, free: 95.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/1.357, allocations: 35.98 kB / 0.8151 GB, free: 95.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.938e-06/1.357, allocations: 8 kB / 0.8151 GB, free: 95.01 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009215/1.366, allocations: 1.584 MB / 0.8167 GB, free: 93.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/1.367, allocations: 8 kB / 0.8167 GB, free: 93.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/1.368, allocations: 300.8 kB / 0.817 GB, free: 93.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/1.369, allocations: 163.8 kB / 0.8171 GB, free: 92.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002916/1.372, allocations: 1.106 MB / 0.8182 GB, free: 91.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/1.373, allocations: 39.91 kB / 0.8183 GB, free: 91.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/1.373, allocations: 31.98 kB / 0.8183 GB, free: 91.75 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.0003942/1.374, allocations: 124.8 kB / 0.8184 GB, free: 91.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/1.374, allocations: 71.16 kB / 0.8185 GB, free: 91.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00507/1.379, allocations: 1.245 MB / 0.8197 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/1.379, allocations: 4 kB / 0.8197 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/1.379, allocations: 0 / 0.8197 GB, free: 90.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/1.379, allocations: 7.984 kB / 0.8197 GB, free: 90.28 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006554/1.386, allocations: 2.086 MB / 0.8217 GB, free: 88.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/1.386, allocations: 0 / 0.8217 GB, free: 88.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/1.387, allocations: 119.9 kB / 0.8219 GB, free: 88.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/1.388, allocations: 364.5 kB / 0.8222 GB, free: 87.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.394e-05/1.388, allocations: 11.98 kB / 0.8222 GB, free: 87.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003279/1.392, allocations: 1.259 MB / 0.8234 GB, free: 86.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.392, allocations: 0 / 0.8234 GB, free: 86.39 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004142/1.396, allocations: 1.755 MB / 0.8252 GB, free: 84.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003651/1.396, allocations: 244.1 kB / 0.8254 GB, free: 84.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/1.396, allocations: 4 kB / 0.8254 GB, free: 84.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006037/1.397, allocations: 39.88 kB / 0.8254 GB, free: 84.31 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/1.397, allocations: 52.56 kB / 0.8255 GB, free: 84.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-05/1.397, allocations: 27.98 kB / 0.8255 GB, free: 84.23 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003292/1.397, allocations: 338.9 kB / 0.8258 GB, free: 83.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001757/1.399, allocations: 0.6011 MB / 0.8264 GB, free: 83.3 MB / 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.001001/1.4, allocations: 0.5944 MB / 0.827 GB, free: 82.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002214/1.402, allocations: 1.353 MB / 0.8283 GB, free: 81.38 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.402, allocations: 0 / 0.8283 GB, free: 81.38 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007498/1.403, allocations: 454.1 kB / 0.8288 GB, free: 80.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/1.404, allocations: 300.2 kB / 0.829 GB, free: 80.65 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/1.407, allocations: 1.346 MB / 0.8304 GB, free: 79.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005735/1.408, allocations: 1.104 MB / 0.8314 GB, free: 78.14 MB / 426.7 MB Notification: Performance of SimCode: time 2.6e-07/1.408, allocations: 0 / 0.8314 GB, free: 78.14 MB / 426.7 MB Notification: Performance of Templates: time 0.02922/1.437, allocations: 23.74 MB / 0.8546 GB, free: 54.43 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/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_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches