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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009848/0.0009849, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.404/1.404, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.000921/0.000921, allocations: 94.62 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.456e-05/2.471e-05, allocations: 3.938 kB / 322.4 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08535/0.08539, allocations: 47.57 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.761/0.8464, allocations: 320.9 MB / 0.6747 GB, free: 3.738 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003522/0.8469, allocations: 79.73 kB / 0.6748 GB, free: 3.699 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.489/1.336, allocations: 131.6 MB / 0.8033 GB, free: 63.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.343e-06/1.336, allocations: 0 / 0.8033 GB, free: 63.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.101e-05/1.336, allocations: 15.98 kB / 0.8033 GB, free: 63.75 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.002349/1.338, allocations: 1.079 MB / 0.8043 GB, free: 62.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/1.338, allocations: 12.03 kB / 0.8044 GB, free: 62.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002951/1.339, allocations: 102.9 kB / 0.8044 GB, free: 62.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/1.34, allocations: 0.6597 MB / 0.8051 GB, free: 61.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.929e-05/1.34, allocations: 108.7 kB / 0.8052 GB, free: 61.69 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/1.34, allocations: 47.98 kB / 0.8052 GB, free: 61.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/1.341, allocations: 0.8816 MB / 0.8061 GB, free: 60.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/1.341, allocations: 0 / 0.8061 GB, free: 60.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.04e-05/1.341, allocations: 27.98 kB / 0.8061 GB, free: 60.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.393e-05/1.341, allocations: 45.28 kB / 0.8062 GB, free: 60.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/1.342, allocations: 0.8171 MB / 0.807 GB, free: 59.85 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004511/1.347, allocations: 3.303 MB / 0.8102 GB, free: 56.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007731/1.348, allocations: 0.6386 MB / 0.8108 GB, free: 55.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004216/1.348, allocations: 362.4 kB / 0.8112 GB, free: 55.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002226/1.35, allocations: 2.059 MB / 0.8132 GB, free: 53.13 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/1.351, allocations: 47.11 kB / 0.8132 GB, free: 53.08 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 1.754e-06/1.351, allocations: 0 / 0.8132 GB, free: 53.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.003889/1.354, allocations: 2.21 MB / 0.8154 GB, free: 50.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.16e-05/1.354, allocations: 85.67 kB / 0.8155 GB, free: 50.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006826/1.355, allocations: 0.601 MB / 0.816 GB, free: 50.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.447e-05/1.355, allocations: 37.7 kB / 0.8161 GB, free: 50.06 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/1.355, allocations: 336.6 kB / 0.8164 GB, free: 49.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/1.356, allocations: 228.7 kB / 0.8166 GB, free: 49.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.043e-05/1.356, allocations: 12 kB / 0.8166 GB, free: 49.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/1.356, allocations: 386.8 kB / 0.817 GB, free: 49.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004588/1.356, allocations: 349.4 kB / 0.8173 GB, free: 48.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005274/1.357, allocations: 0.4967 MB / 0.8178 GB, free: 48.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005432/1.357, allocations: 405.9 kB / 0.8182 GB, free: 47.81 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/1.357, allocations: 0 / 0.8182 GB, free: 47.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001702/1.359, allocations: 1.125 MB / 0.8193 GB, free: 46.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004852/1.36, allocations: 1.571 MB / 0.8208 GB, free: 44.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/1.36, allocations: 8 kB / 0.8209 GB, free: 44.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/1.361, allocations: 432.5 kB / 0.8213 GB, free: 44.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005821/1.361, allocations: 159.7 kB / 0.8214 GB, free: 44.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009715/1.362, allocations: 1.028 MB / 0.8224 GB, free: 43.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006151/1.363, allocations: 43.89 kB / 0.8225 GB, free: 43.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-05/1.363, allocations: 31.98 kB / 0.8225 GB, free: 43.26 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/1.363, allocations: 4 kB / 0.8225 GB, free: 43.25 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001386/1.364, allocations: 0.9833 MB / 0.8235 GB, free: 42.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/1.364, allocations: 4 kB / 0.8235 GB, free: 42.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005844/1.365, allocations: 309 kB / 0.8238 GB, free: 41.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005557/1.366, allocations: 159.8 kB / 0.8239 GB, free: 41.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007507/1.366, allocations: 0.9112 MB / 0.8248 GB, free: 40.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005404/1.367, allocations: 47.88 kB / 0.8248 GB, free: 40.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.832e-05/1.367, allocations: 35.98 kB / 0.8249 GB, free: 40.78 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.0002184/1.367, allocations: 148.8 kB / 0.825 GB, free: 40.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/1.367, allocations: 79.06 kB / 0.8251 GB, free: 40.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001651/1.369, allocations: 1.079 MB / 0.8261 GB, free: 39.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/1.369, allocations: 8 kB / 0.8262 GB, free: 39.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/1.369, allocations: 3.953 kB / 0.8262 GB, free: 39.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/1.369, allocations: 3.984 kB / 0.8262 GB, free: 39.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/1.372, allocations: 1.997 MB / 0.8281 GB, free: 37.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/1.372, allocations: 0 / 0.8281 GB, free: 37.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005078/1.372, allocations: 123.8 kB / 0.8282 GB, free: 37.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001034/1.373, allocations: 432.5 kB / 0.8286 GB, free: 36.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.432e-05/1.373, allocations: 23.98 kB / 0.8287 GB, free: 36.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009157/1.374, allocations: 1.03 MB / 0.8297 GB, free: 35.76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.374, allocations: 4.031 kB / 0.8297 GB, free: 35.76 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/1.376, allocations: 1.572 MB / 0.8312 GB, free: 34.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003612/1.376, allocations: 248.1 kB / 0.8314 GB, free: 33.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/1.376, allocations: 12 kB / 0.8315 GB, free: 33.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005581/1.377, allocations: 63.75 kB / 0.8315 GB, free: 33.83 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/1.377, allocations: 48.7 kB / 0.8316 GB, free: 33.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.052e-05/1.377, allocations: 35.97 kB / 0.8316 GB, free: 33.75 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005269/1.378, allocations: 467.1 kB / 0.832 GB, free: 33.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.378, allocations: 4 kB / 0.8321 GB, free: 33.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002113/1.38, allocations: 0.6362 MB / 0.8327 GB, free: 32.66 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.001044/1.381, allocations: 0.5885 MB / 0.8332 GB, free: 32.06 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002354/1.383, allocations: 1.388 MB / 0.8346 GB, free: 30.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/1.383, allocations: 4 kB / 0.8346 GB, free: 30.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007684/1.384, allocations: 460.6 kB / 0.835 GB, free: 30.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/1.386, allocations: 366.4 kB / 0.8354 GB, free: 29.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/1.388, allocations: 1.346 MB / 0.8367 GB, free: 28.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/1.389, allocations: 1.008 MB / 0.8377 GB, free: 27.45 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001123/1.39, allocations: 362.4 kB / 0.838 GB, free: 27.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/1.39, allocations: 71.41 kB / 0.8381 GB, free: 27.02 MB / 426.7 MB Notification: Performance of SimCode: time 1.814e-06/1.39, allocations: 0 / 0.8381 GB, free: 27.02 MB / 426.7 MB Notification: Performance of Templates: time 0.03049/1.42, allocations: 22.87 MB / 0.8604 GB, free: 4.105 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