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.002027/0.002027, allocations: 180.1 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.019/2.019, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001666/0.001665, allocations: 90.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.576e-05/3.588e-05, allocations: 0 / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09796/0.09803, allocations: 47.57 MB / 369.1 MB, free: 2.223 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.019/1.117, allocations: 320.9 MB / 0.6738 GB, free: 3.891 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/1.118, allocations: 77.72 kB / 0.6739 GB, free: 3.855 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7388/1.856, allocations: 131.6 MB / 0.8024 GB, free: 64.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.595e-06/1.857, allocations: 0 / 0.8024 GB, free: 64.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.503e-05/1.857, allocations: 19.94 kB / 0.8024 GB, free: 64.12 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.003333/1.86, allocations: 1.083 MB / 0.8034 GB, free: 62.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/1.86, allocations: 8.031 kB / 0.8034 GB, free: 62.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005153/1.861, allocations: 98.86 kB / 0.8035 GB, free: 62.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/1.862, allocations: 0.6597 MB / 0.8042 GB, free: 62.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/1.863, allocations: 108.7 kB / 0.8043 GB, free: 62.06 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/1.863, allocations: 51.97 kB / 0.8043 GB, free: 62.01 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002038/1.865, allocations: 0.8777 MB / 0.8052 GB, free: 61.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.078e-05/1.865, allocations: 4 kB / 0.8052 GB, free: 61.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/1.865, allocations: 27.98 kB / 0.8052 GB, free: 61.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001126/1.865, allocations: 45.28 kB / 0.8053 GB, free: 61.03 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001968/1.867, allocations: 0.8171 MB / 0.8061 GB, free: 60.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008387/1.876, allocations: 3.299 MB / 0.8093 GB, free: 56.76 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/1.877, allocations: 0.6454 MB / 0.8099 GB, free: 56.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007901/1.878, allocations: 362.4 kB / 0.8103 GB, free: 55.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004144/1.882, allocations: 2.051 MB / 0.8123 GB, free: 53.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/1.882, allocations: 39.12 kB / 0.8123 GB, free: 53.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 3.287e-06/1.882, allocations: 4 kB / 0.8123 GB, free: 53.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.007021/1.889, allocations: 2.214 MB / 0.8145 GB, free: 51.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/1.889, allocations: 85.67 kB / 0.8146 GB, free: 51.08 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/1.89, allocations: 0.5932 MB / 0.8151 GB, free: 50.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001842/1.891, allocations: 41.7 kB / 0.8152 GB, free: 50.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/1.891, allocations: 359 kB / 0.8155 GB, free: 50.08 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002519/1.891, allocations: 224.8 kB / 0.8157 GB, free: 49.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.288e-05/1.891, allocations: 12 kB / 0.8157 GB, free: 49.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.41e-05/1.891, allocations: 346.8 kB / 0.8161 GB, free: 49.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008671/1.892, allocations: 349.4 kB / 0.8164 GB, free: 49.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009227/1.893, allocations: 0.4928 MB / 0.8169 GB, free: 48.61 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009212/1.894, allocations: 405.8 kB / 0.8173 GB, free: 48.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/1.894, allocations: 4 kB / 0.8173 GB, free: 48.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002747/1.897, allocations: 1.082 MB / 0.8183 GB, free: 47.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003528/1.897, allocations: 1.575 MB / 0.8199 GB, free: 45.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/1.897, allocations: 4 kB / 0.8199 GB, free: 45.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001947/1.899, allocations: 432.5 kB / 0.8203 GB, free: 44.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/1.901, allocations: 163.7 kB / 0.8204 GB, free: 44.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/1.902, allocations: 1.024 MB / 0.8214 GB, free: 43.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/1.904, allocations: 47.95 kB / 0.8215 GB, free: 43.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/1.904, allocations: 35.98 kB / 0.8215 GB, free: 43.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/1.904, allocations: 4 kB / 0.8215 GB, free: 43.69 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002548/1.906, allocations: 0.9834 MB / 0.8225 GB, free: 42.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/1.906, allocations: 4 kB / 0.8225 GB, free: 42.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/1.907, allocations: 300.8 kB / 0.8228 GB, free: 42.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/1.909, allocations: 171.8 kB / 0.8229 GB, free: 42.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/1.91, allocations: 0.8956 MB / 0.8238 GB, free: 41.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009779/1.911, allocations: 43.94 kB / 0.8239 GB, free: 41.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/1.911, allocations: 31.98 kB / 0.8239 GB, free: 41.24 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.0003324/1.912, allocations: 152.8 kB / 0.824 GB, free: 41.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002842/1.912, allocations: 75.06 kB / 0.8241 GB, free: 41.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002999/1.915, allocations: 1.082 MB / 0.8252 GB, free: 39.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/1.915, allocations: 12 kB / 0.8252 GB, free: 39.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/1.915, allocations: 3.953 kB / 0.8252 GB, free: 39.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/1.915, allocations: 3.984 kB / 0.8252 GB, free: 39.89 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004698/1.92, allocations: 1.989 MB / 0.8271 GB, free: 37.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/1.92, allocations: 0 / 0.8271 GB, free: 37.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/1.921, allocations: 123.8 kB / 0.8272 GB, free: 37.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/1.923, allocations: 440.5 kB / 0.8277 GB, free: 37.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001483/1.923, allocations: 23.98 kB / 0.8277 GB, free: 37.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001605/1.925, allocations: 1.022 MB / 0.8287 GB, free: 36.22 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/1.925, allocations: 0 / 0.8287 GB, free: 36.22 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003732/1.928, allocations: 1.584 MB / 0.8302 GB, free: 34.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007534/1.929, allocations: 252 kB / 0.8305 GB, free: 34.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/1.929, allocations: 12 kB / 0.8305 GB, free: 34.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/1.93, allocations: 47.92 kB / 0.8305 GB, free: 34.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/1.931, allocations: 56.69 kB / 0.8306 GB, free: 34.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/1.931, allocations: 35.97 kB / 0.8306 GB, free: 34.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008338/1.932, allocations: 463.1 kB / 0.8311 GB, free: 33.76 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.1e-07/1.932, allocations: 0 / 0.8311 GB, free: 33.76 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002339/1.934, allocations: 0.6439 MB / 0.8317 GB, free: 33.11 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.00169/1.936, allocations: 0.5897 MB / 0.8323 GB, free: 32.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004213/1.94, allocations: 1.36 MB / 0.8336 GB, free: 31.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/1.94, allocations: 0 / 0.8336 GB, free: 31.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001496/1.941, allocations: 464.1 kB / 0.834 GB, free: 30.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002972/1.944, allocations: 355.5 kB / 0.8344 GB, free: 30.35 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004579/1.949, allocations: 1.391 MB / 0.8357 GB, free: 28.92 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005344/1.95, allocations: 1.003 MB / 0.8367 GB, free: 27.89 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000528/1.95, allocations: 91.33 kB / 0.8368 GB, free: 27.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.653e-06/1.95, allocations: 0 / 0.8368 GB, free: 27.8 MB / 426.7 MB Notification: Performance of Templates: time 0.03826/1.989, allocations: 19.21 MB / 0.8556 GB, free: 8.555 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