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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001437/0.001437, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.137/2.137, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001557/0.001557, allocations: 96.05 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.987e-05/1.998e-05, allocations: 0 / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3372, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9819/1.319, allocations: 320.2 MB / 0.6666 GB, free: 117.8 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/1.32, allocations: 77.45 kB / 0.6666 GB, free: 117.8 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4597/1.779, allocations: 130.7 MB / 0.7942 GB, free: 34.28 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.983e-06/1.779, allocations: 3.938 kB / 0.7942 GB, free: 34.28 MB / 427.1 MB Notification: Performance of Transformations before backend: time 9.062e-05/1.779, allocations: 20 kB / 0.7943 GB, free: 34.26 MB / 427.1 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.003775/1.783, allocations: 1.084 MB / 0.7953 GB, free: 33.12 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/1.783, allocations: 12.03 kB / 0.7953 GB, free: 33.11 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006209/1.784, allocations: 98.91 kB / 0.7954 GB, free: 33.02 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002039/1.786, allocations: 0.6559 MB / 0.7961 GB, free: 32.32 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/1.786, allocations: 88.7 kB / 0.7962 GB, free: 32.22 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/1.786, allocations: 35.94 kB / 0.7962 GB, free: 32.18 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001809/1.788, allocations: 0.7405 MB / 0.7969 GB, free: 31.44 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/1.79, allocations: 0.8048 MB / 0.7977 GB, free: 30.61 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/1.79, allocations: 4 kB / 0.7977 GB, free: 30.61 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/1.79, allocations: 0 / 0.7977 GB, free: 30.61 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001195/1.79, allocations: 49.28 kB / 0.7977 GB, free: 30.56 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008073/1.798, allocations: 3.141 MB / 0.8008 GB, free: 27.28 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/1.8, allocations: 0.6323 MB / 0.8014 GB, free: 26.64 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006723/1.8, allocations: 342.4 kB / 0.8018 GB, free: 26.3 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004058/1.804, allocations: 2.012 MB / 0.8037 GB, free: 24.09 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/1.805, allocations: 47.06 kB / 0.8038 GB, free: 24.04 MB / 427.1 MB Notification: Performance of pre-optimization done (n=56): time 3.566e-06/1.805, allocations: 0 / 0.8038 GB, free: 24.04 MB / 427.1 MB Notification: Performance of matching and sorting (n=66): time 0.01109/1.816, allocations: 2.464 MB / 0.8062 GB, free: 21.52 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/1.816, allocations: 93.61 kB / 0.8063 GB, free: 21.41 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007673/1.816, allocations: 454.1 kB / 0.8067 GB, free: 20.96 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001326/1.817, allocations: 25.7 kB / 0.8067 GB, free: 20.93 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/1.817, allocations: 378.5 kB / 0.8071 GB, free: 20.55 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002266/1.817, allocations: 220.7 kB / 0.8073 GB, free: 20.34 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-05/1.817, allocations: 0 / 0.8073 GB, free: 20.34 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 8.378e-05/1.817, allocations: 342.8 kB / 0.8076 GB, free: 19.99 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007447/1.818, allocations: 333.4 kB / 0.8079 GB, free: 19.67 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000824/1.819, allocations: 487.1 kB / 0.8084 GB, free: 19.13 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007199/1.826, allocations: 0.9957 MB / 0.8094 GB, free: 18.14 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/1.826, allocations: 0 / 0.8094 GB, free: 18.14 MB / 427.1 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.009211/1.835, allocations: 1.644 MB / 0.811 GB, free: 16.48 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003174/1.836, allocations: 1.57 MB / 0.8125 GB, free: 14.79 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/1.836, allocations: 4 kB / 0.8125 GB, free: 14.79 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/1.837, allocations: 368.5 kB / 0.8129 GB, free: 14.43 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/1.838, allocations: 151.8 kB / 0.813 GB, free: 14.28 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003005/1.841, allocations: 1.223 MB / 0.8142 GB, free: 13.03 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/1.842, allocations: 27.89 kB / 0.8142 GB, free: 13 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/1.843, allocations: 39.94 kB / 0.8143 GB, free: 12.96 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/1.843, allocations: 8 kB / 0.8143 GB, free: 12.95 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008388/1.851, allocations: 1.498 MB / 0.8157 GB, free: 11.45 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/1.851, allocations: 4 kB / 0.8157 GB, free: 11.45 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009837/1.852, allocations: 296.9 kB / 0.816 GB, free: 11.15 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/1.853, allocations: 167.7 kB / 0.8162 GB, free: 10.99 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002471/1.856, allocations: 1.052 MB / 0.8172 GB, free: 9.91 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009159/1.857, allocations: 35.86 kB / 0.8173 GB, free: 9.875 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/1.857, allocations: 35.94 kB / 0.8173 GB, free: 9.84 MB / 427.1 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.0002946/1.857, allocations: 120.8 kB / 0.8174 GB, free: 9.715 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002383/1.857, allocations: 67.25 kB / 0.8175 GB, free: 9.648 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004342/1.862, allocations: 1.195 MB / 0.8186 GB, free: 8.445 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/1.862, allocations: 4 kB / 0.8186 GB, free: 8.441 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/1.862, allocations: 4 kB / 0.8186 GB, free: 8.438 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/1.862, allocations: 4.078 kB / 0.8186 GB, free: 8.434 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005958/1.868, allocations: 2.037 MB / 0.8206 GB, free: 6.348 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/1.868, allocations: 7.938 kB / 0.8206 GB, free: 6.34 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/1.869, allocations: 123.8 kB / 0.8208 GB, free: 6.219 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/1.87, allocations: 360.6 kB / 0.8211 GB, free: 5.863 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-05/1.87, allocations: 11.98 kB / 0.8211 GB, free: 5.852 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002943/1.873, allocations: 1.212 MB / 0.8223 GB, free: 4.613 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/1.873, allocations: 0 / 0.8223 GB, free: 4.613 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004904/1.878, allocations: 1.689 MB / 0.8239 GB, free: 2.902 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005826/1.879, allocations: 236.2 kB / 0.8242 GB, free: 2.652 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/1.879, allocations: 0 / 0.8242 GB, free: 2.652 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/1.88, allocations: 35.91 kB / 0.8242 GB, free: 2.617 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/1.88, allocations: 60.69 kB / 0.8243 GB, free: 2.559 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/1.88, allocations: 27.97 kB / 0.8243 GB, free: 2.531 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0005291/1.881, allocations: 338.9 kB / 0.8246 GB, free: 2.203 MB / 427.1 MB Notification: Performance of sort global known variables: time 5.82e-07/1.881, allocations: 0 / 0.8246 GB, free: 2.203 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.002323/1.883, allocations: 0.5971 MB / 0.8252 GB, free: 1.605 MB / 427.1 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.001654/1.885, allocations: 0.5762 MB / 0.8258 GB, free: 1.02 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.2793/2.164, allocations: 1.298 MB / 0.827 GB, free: 95.86 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 9.308e-06/2.164, allocations: 6.844 kB / 0.827 GB, free: 95.86 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001446/2.166, allocations: 439.8 kB / 0.8275 GB, free: 95.86 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002815/2.169, allocations: 303.5 kB / 0.8277 GB, free: 95.86 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004305/2.173, allocations: 1.335 MB / 0.829 GB, free: 95.55 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/2.174, allocations: 1.012 MB / 0.83 GB, free: 94.85 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005104/2.174, allocations: 75.77 kB / 0.8301 GB, free: 94.84 MB / 427.1 MB Notification: Performance of SimCode: time 1.232e-06/2.174, allocations: 0 / 0.8301 GB, free: 94.84 MB / 427.1 MB Notification: Performance of Templates: time 0.03988/2.214, allocations: 18.63 MB / 0.8483 GB, free: 94.23 MB / 427.1 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