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.001624/0.001624, allocations: 181.4 kB / 17.01 MB, free: 5.121 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.695/1.695, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.001034/0.001034, allocations: 96.08 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003447, allocations: 15.98 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3353, allocations: 47.56 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9466/1.282, allocations: 321 MB / 0.6805 GB, free: 144.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003391/1.282, allocations: 77.44 kB / 0.6805 GB, free: 144.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2774/1.56, allocations: 132 MB / 0.8094 GB, free: 11.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.913e-06/1.56, allocations: 8 kB / 0.8094 GB, free: 11.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.11e-05/1.56, allocations: 16.22 kB / 0.8095 GB, free: 11.41 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.00293/1.563, allocations: 1.184 MB / 0.8106 GB, free: 10.18 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/1.563, allocations: 8.031 kB / 0.8106 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002969/1.563, allocations: 102.9 kB / 0.8107 GB, free: 10.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/1.564, allocations: 0.6519 MB / 0.8114 GB, free: 9.375 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-05/1.565, allocations: 104.7 kB / 0.8115 GB, free: 9.258 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/1.565, allocations: 59.97 kB / 0.8115 GB, free: 9.199 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/1.566, allocations: 0.8893 MB / 0.8124 GB, free: 8.281 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/1.566, allocations: 0 / 0.8124 GB, free: 8.281 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.713e-05/1.566, allocations: 19.98 kB / 0.8124 GB, free: 8.262 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.195e-05/1.566, allocations: 57.27 kB / 0.8125 GB, free: 8.207 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/1.567, allocations: 0.8365 MB / 0.8133 GB, free: 7.371 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004711/1.572, allocations: 3.276 MB / 0.8165 GB, free: 3.938 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008703/1.573, allocations: 0.6686 MB / 0.8171 GB, free: 3.262 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002527/1.575, allocations: 2.043 MB / 0.8191 GB, free: 1.023 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/1.575, allocations: 47.06 kB / 0.8192 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 2.104e-06/1.576, allocations: 0 / 0.8192 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.312/1.888, allocations: 2.824 MB / 0.8219 GB, free: 92.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/1.888, allocations: 89.2 kB / 0.822 GB, free: 92.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007301/1.888, allocations: 0.6069 MB / 0.8226 GB, free: 92.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.362e-05/1.888, allocations: 42.08 kB / 0.8226 GB, free: 92.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/1.889, allocations: 332.9 kB / 0.823 GB, free: 92.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/1.889, allocations: 227.5 kB / 0.8232 GB, free: 92.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.585e-05/1.889, allocations: 17.38 kB / 0.8232 GB, free: 92.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/1.889, allocations: 388.4 kB / 0.8236 GB, free: 92.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/1.89, allocations: 354.3 kB / 0.8239 GB, free: 92.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005499/1.89, allocations: 0.5011 MB / 0.8244 GB, free: 91.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005818/1.891, allocations: 406.6 kB / 0.8248 GB, free: 91.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/1.891, allocations: 3.219 kB / 0.8248 GB, free: 91.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001722/1.892, allocations: 1.141 MB / 0.8259 GB, free: 91.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003574/1.893, allocations: 1.569 MB / 0.8274 GB, free: 90.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/1.893, allocations: 3.688 kB / 0.8274 GB, free: 90.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/1.894, allocations: 442 kB / 0.8278 GB, free: 90.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006327/1.895, allocations: 161.5 kB / 0.828 GB, free: 90.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/1.896, allocations: 1.017 MB / 0.829 GB, free: 89.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006886/1.896, allocations: 51.92 kB / 0.829 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.346e-05/1.897, allocations: 34.19 kB / 0.8291 GB, free: 89.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/1.897, allocations: 4.938 kB / 0.8291 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00153/1.898, allocations: 0.9973 MB / 0.8301 GB, free: 89.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/1.898, allocations: 3.719 kB / 0.8301 GB, free: 89.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006208/1.899, allocations: 312.8 kB / 0.8304 GB, free: 89.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005824/1.899, allocations: 171.2 kB / 0.8305 GB, free: 89.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007825/1.9, allocations: 0.9006 MB / 0.8314 GB, free: 89.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006284/1.901, allocations: 47.41 kB / 0.8314 GB, free: 89.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.908e-05/1.901, allocations: 35.27 kB / 0.8315 GB, free: 89.16 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.0005106/1.901, allocations: 322.8 kB / 0.8318 GB, free: 88.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/1.901, allocations: 86.5 kB / 0.8319 GB, free: 88.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001787/1.903, allocations: 1.093 MB / 0.8329 GB, free: 88.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/1.903, allocations: 7.531 kB / 0.8329 GB, free: 88.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/1.903, allocations: 2.625 kB / 0.8329 GB, free: 88.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/1.903, allocations: 10.73 kB / 0.833 GB, free: 88.85 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002871/1.906, allocations: 1.99 MB / 0.8349 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/1.906, allocations: 0 / 0.8349 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005542/1.907, allocations: 122.5 kB / 0.835 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/1.908, allocations: 445.1 kB / 0.8354 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/1.908, allocations: 17.83 kB / 0.8355 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009882/1.909, allocations: 1.036 MB / 0.8365 GB, free: 87.99 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.909, allocations: 7.703 kB / 0.8365 GB, free: 87.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/1.911, allocations: 1.598 MB / 0.838 GB, free: 87.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004525/1.912, allocations: 245.2 kB / 0.8383 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/1.912, allocations: 14.03 kB / 0.8383 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005861/1.912, allocations: 51.22 kB / 0.8383 GB, free: 87.65 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/1.912, allocations: 58.95 kB / 0.8384 GB, free: 87.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.351e-05/1.912, allocations: 30.73 kB / 0.8384 GB, free: 87.65 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008992/1.913, allocations: 474.9 kB / 0.8389 GB, free: 87.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.913, allocations: 0 / 0.8389 GB, free: 87.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002278/1.916, allocations: 0.6402 MB / 0.8395 GB, free: 87.55 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.001209/1.917, allocations: 0.5953 MB / 0.8401 GB, free: 87.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002777/1.92, allocations: 1.378 MB / 0.8414 GB, free: 87.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.92, allocations: 1.875 kB / 0.8414 GB, free: 87.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008501/1.921, allocations: 456.7 kB / 0.8419 GB, free: 87.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001729/1.922, allocations: 360.1 kB / 0.8422 GB, free: 87.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/1.926, allocations: 2.028 MB / 0.8442 GB, free: 86.72 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005835/1.927, allocations: 1.009 MB / 0.8452 GB, free: 86.02 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001221/1.928, allocations: 297 kB / 0.8455 GB, free: 86 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/1.928, allocations: 79.52 kB / 0.8455 GB, free: 86 MB / 426.7 MB Notification: Performance of SimCode: time 1.653e-06/1.928, allocations: 0 / 0.8455 GB, free: 86 MB / 426.7 MB Notification: Performance of Templates: time 0.03622/1.965, allocations: 21.63 MB / 0.8667 GB, free: 85.01 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