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.001262/0.001262, allocations: 180.5 kB / 17.41 MB, free: 4.406 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.596/1.596, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.000845/0.0008449, allocations: 84.31 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003385, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2874, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8852/1.173, allocations: 321.1 MB / 0.6805 GB, free: 143.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/1.173, allocations: 90.19 kB / 0.6806 GB, free: 143.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2863/1.459, allocations: 131.2 MB / 0.8087 GB, free: 11.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.437e-06/1.46, allocations: 0 / 0.8087 GB, free: 11.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001205/1.46, allocations: 20 kB / 0.8087 GB, free: 11.79 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.004362/1.464, allocations: 1.173 MB / 0.8099 GB, free: 10.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/1.464, allocations: 8.031 kB / 0.8099 GB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007893/1.465, allocations: 99.89 kB / 0.81 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002008/1.467, allocations: 0.6761 MB / 0.8106 GB, free: 9.734 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/1.467, allocations: 109.2 kB / 0.8108 GB, free: 9.617 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002509/1.467, allocations: 56.73 kB / 0.8108 GB, free: 9.562 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002242/1.47, allocations: 0.9048 MB / 0.8117 GB, free: 8.629 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.703e-05/1.47, allocations: 3.938 kB / 0.8117 GB, free: 8.625 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001374/1.47, allocations: 19.98 kB / 0.8117 GB, free: 8.605 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.463e-05/1.47, allocations: 53.28 kB / 0.8118 GB, free: 8.551 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/1.472, allocations: 0.8288 MB / 0.8126 GB, free: 7.723 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00568/1.477, allocations: 3.276 MB / 0.8158 GB, free: 4.293 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008765/1.478, allocations: 0.6608 MB / 0.8164 GB, free: 3.625 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/1.479, allocations: 370.3 kB / 0.8168 GB, free: 3.262 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002602/1.481, allocations: 2.051 MB / 0.8188 GB, free: 1.016 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/1.481, allocations: 39.12 kB / 0.8188 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 2.735e-06/1.481, allocations: 0 / 0.8188 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.2744/1.756, allocations: 2.854 MB / 0.8216 GB, free: 92.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.768e-05/1.756, allocations: 84.27 kB / 0.8217 GB, free: 92.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/1.757, allocations: 0.6775 MB / 0.8223 GB, free: 92.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.425e-05/1.757, allocations: 39.92 kB / 0.8224 GB, free: 92.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/1.757, allocations: 337.6 kB / 0.8227 GB, free: 92.28 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/1.757, allocations: 229.5 kB / 0.8229 GB, free: 92.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.066e-05/1.758, allocations: 10.44 kB / 0.8229 GB, free: 92.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/1.758, allocations: 392.4 kB / 0.8233 GB, free: 91.85 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005257/1.758, allocations: 360.2 kB / 0.8236 GB, free: 91.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006092/1.759, allocations: 0.4983 MB / 0.8241 GB, free: 91.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/1.76, allocations: 0.8469 MB / 0.825 GB, free: 91.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/1.76, allocations: 0 / 0.825 GB, free: 91.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001803/1.762, allocations: 1.134 MB / 0.8261 GB, free: 91.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001124/1.762, allocations: 216.8 kB / 0.8263 GB, free: 91.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/1.762, allocations: 6.781 kB / 0.8263 GB, free: 91.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/1.763, allocations: 435.3 kB / 0.8267 GB, free: 91.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006054/1.764, allocations: 162.5 kB / 0.8269 GB, free: 91.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/1.765, allocations: 1.022 MB / 0.8278 GB, free: 90.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006869/1.765, allocations: 50.58 kB / 0.8279 GB, free: 90.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-05/1.766, allocations: 34.55 kB / 0.8279 GB, free: 90.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/1.766, allocations: 3.75 kB / 0.8279 GB, free: 90.69 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001549/1.767, allocations: 0.9986 MB / 0.8289 GB, free: 90.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/1.767, allocations: 6.938 kB / 0.8289 GB, free: 90.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006198/1.768, allocations: 306.2 kB / 0.8292 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005666/1.768, allocations: 168.6 kB / 0.8294 GB, free: 90.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008466/1.769, allocations: 0.8996 MB / 0.8302 GB, free: 90.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006562/1.77, allocations: 46.8 kB / 0.8303 GB, free: 90.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.01e-05/1.77, allocations: 34.34 kB / 0.8303 GB, free: 90.12 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 () * Number of clocked 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.0005479/1.77, allocations: 330.3 kB / 0.8306 GB, free: 89.94 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/1.771, allocations: 76.88 kB / 0.8307 GB, free: 89.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001904/1.773, allocations: 1.089 MB / 0.8318 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/1.773, allocations: 5.969 kB / 0.8318 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/1.773, allocations: 6.359 kB / 0.8318 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/1.773, allocations: 11.3 kB / 0.8318 GB, free: 89.82 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003184/1.776, allocations: 2.003 MB / 0.8338 GB, free: 89.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/1.776, allocations: 6.594 kB / 0.8338 GB, free: 89.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000559/1.776, allocations: 124.4 kB / 0.8339 GB, free: 89.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/1.777, allocations: 444.3 kB / 0.8343 GB, free: 89.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.802e-05/1.778, allocations: 22.59 kB / 0.8343 GB, free: 89.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009604/1.779, allocations: 1.025 MB / 0.8353 GB, free: 88.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.779, allocations: 0 / 0.8353 GB, free: 88.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/1.781, allocations: 1.593 MB / 0.8369 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004797/1.781, allocations: 251.7 kB / 0.8371 GB, free: 88.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/1.781, allocations: 13.75 kB / 0.8371 GB, free: 88.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005591/1.782, allocations: 57.09 kB / 0.8372 GB, free: 88.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/1.782, allocations: 57.03 kB / 0.8372 GB, free: 88.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.13e-05/1.782, allocations: 30.98 kB / 0.8373 GB, free: 88.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009137/1.783, allocations: 473.8 kB / 0.8377 GB, free: 88.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.31e-07/1.783, allocations: 0.5 kB / 0.8377 GB, free: 88.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002717/1.786, allocations: 0.6378 MB / 0.8383 GB, free: 88.54 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 () * Number of clocked 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.00136/1.787, allocations: 0.5834 MB / 0.8389 GB, free: 88.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002891/1.79, allocations: 1.379 MB / 0.8403 GB, free: 88.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.79, allocations: 0 / 0.8403 GB, free: 88.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/1.791, allocations: 461.6 kB / 0.8407 GB, free: 88.42 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001965/1.793, allocations: 368.3 kB / 0.8411 GB, free: 88.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004019/1.797, allocations: 2.074 MB / 0.8431 GB, free: 87.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005167/1.798, allocations: 0.9882 MB / 0.844 GB, free: 86.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003178/1.798, allocations: 85.44 kB / 0.8441 GB, free: 86.95 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/1.798, allocations: 3.812 kB / 0.8441 GB, free: 86.95 MB / 426.7 MB Notification: Performance of Templates: time 0.03274/1.831, allocations: 19.25 MB / 0.8629 GB, free: 85.93 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