Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001095/0.001094, allocations: 91.34 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.67e-05/2.702e-05, allocations: 0 / 350.5 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1151, allocations: 51.48 MB / 402 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8718/0.9869, allocations: 322.3 MB / 0.7073 GB, free: 26.86 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.9873, allocations: 80.92 kB / 0.7074 GB, free: 26.82 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6304/1.618, allocations: 134.2 MB / 0.8385 GB, free: 98.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.618, allocations: 4 kB / 0.8385 GB, free: 98.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001083/1.618, allocations: 19.94 kB / 0.8385 GB, free: 98.12 MB / 458.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.003532/1.621, allocations: 1.088 MB / 0.8396 GB, free: 97 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/1.621, allocations: 8.25 kB / 0.8396 GB, free: 96.99 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006558/1.622, allocations: 102.6 kB / 0.8397 GB, free: 96.89 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001645/1.624, allocations: 0.6545 MB / 0.8403 GB, free: 96.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/1.624, allocations: 105.3 kB / 0.8404 GB, free: 96.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002656/1.624, allocations: 54.97 kB / 0.8405 GB, free: 96.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001769/1.626, allocations: 0.8816 MB / 0.8413 GB, free: 95.15 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/1.626, allocations: 4 kB / 0.8413 GB, free: 95.14 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/1.626, allocations: 19.52 kB / 0.8413 GB, free: 95.13 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.038e-05/1.626, allocations: 57.27 kB / 0.8414 GB, free: 95.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/1.628, allocations: 0.8177 MB / 0.8422 GB, free: 94.25 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006777/1.634, allocations: 3.28 MB / 0.8454 GB, free: 90.86 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009646/1.635, allocations: 0.6571 MB / 0.846 GB, free: 90.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005654/1.636, allocations: 358.4 kB / 0.8464 GB, free: 89.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003162/1.639, allocations: 2.058 MB / 0.8484 GB, free: 87.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.002e-05/1.639, allocations: 39.12 kB / 0.8484 GB, free: 87.57 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 2.595e-06/1.639, allocations: 0 / 0.8484 GB, free: 87.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.004701/1.644, allocations: 2.207 MB / 0.8506 GB, free: 85.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/1.644, allocations: 93.61 kB / 0.8507 GB, free: 85.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008566/1.645, allocations: 0.5971 MB / 0.8513 GB, free: 84.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.757e-05/1.645, allocations: 41.7 kB / 0.8513 GB, free: 84.54 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/1.645, allocations: 336.3 kB / 0.8516 GB, free: 84.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/1.646, allocations: 224.6 kB / 0.8518 GB, free: 84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.264e-05/1.646, allocations: 16 kB / 0.8519 GB, free: 83.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/1.646, allocations: 386.8 kB / 0.8522 GB, free: 83.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005102/1.646, allocations: 345.4 kB / 0.8526 GB, free: 83.26 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005859/1.647, allocations: 0.489 MB / 0.853 GB, free: 82.71 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005956/1.647, allocations: 405.9 kB / 0.8534 GB, free: 82.32 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/1.647, allocations: 4 kB / 0.8534 GB, free: 82.31 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001745/1.649, allocations: 1.132 MB / 0.8545 GB, free: 81.17 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004974/1.65, allocations: 1.573 MB / 0.8561 GB, free: 79.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/1.65, allocations: 4 kB / 0.8561 GB, free: 79.47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/1.651, allocations: 428.5 kB / 0.8565 GB, free: 79.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006242/1.652, allocations: 159.7 kB / 0.8566 GB, free: 78.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/1.653, allocations: 1.028 MB / 0.8576 GB, free: 77.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008123/1.654, allocations: 43.92 kB / 0.8577 GB, free: 77.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.755e-05/1.654, allocations: 31.98 kB / 0.8577 GB, free: 77.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/1.654, allocations: 4 kB / 0.8577 GB, free: 77.76 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001562/1.655, allocations: 0.9753 MB / 0.8587 GB, free: 76.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/1.655, allocations: 4.531 kB / 0.8587 GB, free: 76.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006296/1.656, allocations: 316.6 kB / 0.859 GB, free: 76.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005983/1.657, allocations: 171.8 kB / 0.8591 GB, free: 76.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007956/1.657, allocations: 0.906 MB / 0.86 GB, free: 75.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000771/1.658, allocations: 47.86 kB / 0.8601 GB, free: 75.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.12e-05/1.658, allocations: 35.98 kB / 0.8601 GB, free: 75.28 MB / 458.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.0002443/1.658, allocations: 148 kB / 0.8602 GB, free: 75.13 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001777/1.659, allocations: 79.06 kB / 0.8603 GB, free: 75.05 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/1.66, allocations: 1.078 MB / 0.8614 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/1.66, allocations: 4 kB / 0.8614 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/1.66, allocations: 0 / 0.8614 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/1.661, allocations: 15.94 kB / 0.8614 GB, free: 73.95 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002982/1.663, allocations: 1.993 MB / 0.8633 GB, free: 71.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/1.664, allocations: 0 / 0.8633 GB, free: 71.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005387/1.664, allocations: 115.9 kB / 0.8634 GB, free: 71.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/1.665, allocations: 450 kB / 0.8639 GB, free: 71.36 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-05/1.665, allocations: 16 kB / 0.8639 GB, free: 71.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009657/1.666, allocations: 1.029 MB / 0.8649 GB, free: 70.29 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.666, allocations: 3.953 kB / 0.8649 GB, free: 70.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001972/1.668, allocations: 1.576 MB / 0.8664 GB, free: 68.69 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005554/1.669, allocations: 244.1 kB / 0.8667 GB, free: 68.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001793/1.669, allocations: 19.98 kB / 0.8667 GB, free: 68.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007175/1.67, allocations: 43.88 kB / 0.8667 GB, free: 68.37 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/1.67, allocations: 64.64 kB / 0.8668 GB, free: 68.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-05/1.67, allocations: 27.98 kB / 0.8668 GB, free: 68.28 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006696/1.671, allocations: 467.1 kB / 0.8673 GB, free: 67.82 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.671, allocations: 0 / 0.8673 GB, free: 67.82 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002426/1.673, allocations: 0.6517 MB / 0.8679 GB, free: 67.17 MB / 458.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.002013/1.675, allocations: 0.6084 MB / 0.8685 GB, free: 66.59 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002712/1.678, allocations: 1.392 MB / 0.8698 GB, free: 65.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/1.678, allocations: 0 / 0.8698 GB, free: 65.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008321/1.679, allocations: 460.3 kB / 0.8703 GB, free: 64.76 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/1.681, allocations: 352 kB / 0.8706 GB, free: 64.42 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/1.684, allocations: 1.342 MB / 0.8719 GB, free: 63.05 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004449/1.684, allocations: 1.008 MB / 0.8729 GB, free: 62.01 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001336/1.685, allocations: 373.7 kB / 0.8733 GB, free: 61.64 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001886/1.686, allocations: 67.41 kB / 0.8733 GB, free: 61.58 MB / 458.7 MB Notification: Performance of SimCode: time 1.172e-06/1.686, allocations: 0 / 0.8733 GB, free: 61.58 MB / 458.7 MB Notification: Performance of Templates: time 0.03465/1.72, allocations: 22.92 MB / 0.8957 GB, free: 38.81 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches