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.001124/0.001124, allocations: 182.1 kB / 18.04 MB, free: 3.656 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.713/1.713, allocations: 205.4 MB / 224.2 MB, free: 9.02 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.0008435/0.0008436, allocations: 89.41 kB / 272.5 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003451, allocations: 12 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2842, allocations: 47.57 MB / 377 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.743/1.027, allocations: 321.1 MB / 0.6818 GB, free: 143.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/1.028, allocations: 81.66 kB / 0.6818 GB, free: 143.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2787/1.306, allocations: 131.2 MB / 0.81 GB, free: 11.74 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/1.306, allocations: 0 / 0.81 GB, free: 11.74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.076e-05/1.306, allocations: 20 kB / 0.81 GB, free: 11.72 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.003228/1.31, allocations: 1.169 MB / 0.8112 GB, free: 10.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/1.31, allocations: 15.97 kB / 0.8112 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004872/1.31, allocations: 95.91 kB / 0.8113 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/1.312, allocations: 0.6684 MB / 0.8119 GB, free: 9.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-05/1.312, allocations: 113.2 kB / 0.812 GB, free: 9.559 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/1.312, allocations: 60.67 kB / 0.8121 GB, free: 9.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/1.313, allocations: 0.8931 MB / 0.813 GB, free: 8.578 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/1.313, allocations: 3.938 kB / 0.813 GB, free: 8.574 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.794e-05/1.313, allocations: 23.98 kB / 0.813 GB, free: 8.551 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.129e-05/1.313, allocations: 53.28 kB / 0.813 GB, free: 8.496 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/1.315, allocations: 0.8288 MB / 0.8138 GB, free: 7.668 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005252/1.32, allocations: 3.276 MB / 0.817 GB, free: 4.238 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008948/1.321, allocations: 0.6608 MB / 0.8177 GB, free: 3.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004821/1.321, allocations: 370.3 kB / 0.818 GB, free: 3.207 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002433/1.324, allocations: 2.051 MB / 0.82 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/1.324, allocations: 43.06 kB / 0.8201 GB, free: 0.9102 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 2.294e-06/1.324, allocations: 0 / 0.8201 GB, free: 0.9102 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.2386/1.563, allocations: 2.849 MB / 0.8229 GB, free: 92.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/1.563, allocations: 89.3 kB / 0.823 GB, free: 92.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008471/1.563, allocations: 0.6793 MB / 0.8236 GB, free: 92.58 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.246e-05/1.564, allocations: 38.8 kB / 0.8237 GB, free: 92.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/1.564, allocations: 331.9 kB / 0.824 GB, free: 92.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/1.564, allocations: 225.7 kB / 0.8242 GB, free: 92.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.461e-05/1.564, allocations: 21 kB / 0.8242 GB, free: 92.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/1.564, allocations: 385.6 kB / 0.8246 GB, free: 91.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005157/1.565, allocations: 360 kB / 0.8249 GB, free: 91.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000575/1.565, allocations: 0.5043 MB / 0.8254 GB, free: 91.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/1.566, allocations: 0.8345 MB / 0.8262 GB, free: 91.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/1.566, allocations: 3.062 kB / 0.8262 GB, free: 91.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001722/1.568, allocations: 1.138 MB / 0.8273 GB, free: 91.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.796e-05/1.568, allocations: 216.7 kB / 0.8275 GB, free: 91.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/1.568, allocations: 3.844 kB / 0.8275 GB, free: 91.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/1.569, allocations: 443.5 kB / 0.828 GB, free: 91.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006051/1.57, allocations: 156.7 kB / 0.8281 GB, free: 91.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009881/1.571, allocations: 1.024 MB / 0.8291 GB, free: 90.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006881/1.572, allocations: 50.81 kB / 0.8292 GB, free: 90.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-05/1.572, allocations: 37.05 kB / 0.8292 GB, free: 90.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/1.572, allocations: 5.469 kB / 0.8292 GB, free: 90.82 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001519/1.573, allocations: 0.9948 MB / 0.8302 GB, free: 90.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/1.573, allocations: 7.031 kB / 0.8302 GB, free: 90.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006164/1.574, allocations: 313.7 kB / 0.8305 GB, free: 90.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005747/1.574, allocations: 167.7 kB / 0.8306 GB, free: 90.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007718/1.575, allocations: 0.9042 MB / 0.8315 GB, free: 90.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005737/1.576, allocations: 46 kB / 0.8316 GB, free: 90.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.321e-05/1.576, allocations: 36.55 kB / 0.8316 GB, free: 90.26 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.0004209/1.576, allocations: 327.1 kB / 0.8319 GB, free: 90.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/1.576, allocations: 75.28 kB / 0.832 GB, free: 90.04 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/1.578, allocations: 1.093 MB / 0.8331 GB, free: 89.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/1.578, allocations: 9.719 kB / 0.8331 GB, free: 89.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/1.578, allocations: 3.5 kB / 0.8331 GB, free: 89.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/1.578, allocations: 7.875 kB / 0.8331 GB, free: 89.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002774/1.581, allocations: 1.995 MB / 0.835 GB, free: 89.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/1.581, allocations: 2.125 kB / 0.835 GB, free: 89.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/1.581, allocations: 124.3 kB / 0.8351 GB, free: 89.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00113/1.583, allocations: 451 kB / 0.8356 GB, free: 89.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.18e-05/1.583, allocations: 17.84 kB / 0.8356 GB, free: 89.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009565/1.584, allocations: 1.033 MB / 0.8366 GB, free: 89.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.584, allocations: 0 / 0.8366 GB, free: 89.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/1.586, allocations: 1.587 MB / 0.8382 GB, free: 88.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003753/1.587, allocations: 248.2 kB / 0.8384 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/1.587, allocations: 18.67 kB / 0.8384 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005654/1.587, allocations: 50.91 kB / 0.8385 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/1.587, allocations: 54.64 kB / 0.8385 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.95e-05/1.587, allocations: 35.22 kB / 0.8385 GB, free: 88.76 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005189/1.588, allocations: 475.6 kB / 0.839 GB, free: 88.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.588, allocations: 7.375 kB / 0.839 GB, free: 88.67 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001779/1.59, allocations: 0.635 MB / 0.8396 GB, free: 88.67 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.001054/1.591, allocations: 0.5857 MB / 0.8402 GB, free: 88.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00271/1.594, allocations: 1.377 MB / 0.8415 GB, free: 88.56 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/1.594, allocations: 5.125 kB / 0.8415 GB, free: 88.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000935/1.594, allocations: 468.9 kB / 0.842 GB, free: 88.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001719/1.596, allocations: 360.5 kB / 0.8423 GB, free: 88.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/1.6, allocations: 2.027 MB / 0.8443 GB, free: 87.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/1.6, allocations: 0.9929 MB / 0.8453 GB, free: 87.12 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001116/1.601, allocations: 304 kB / 0.8456 GB, free: 87.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001964/1.602, allocations: 74.34 kB / 0.8456 GB, free: 87.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.302e-06/1.602, allocations: 0 / 0.8456 GB, free: 87.1 MB / 426.7 MB Notification: Performance of Templates: time 0.03852/1.64, allocations: 22.18 MB / 0.8673 GB, free: 86.11 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/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_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches