Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 171.8 kB / 17.4 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008679/0.000868, allocations: 90.27 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002987/0.0002987, allocations: 11.94 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2504, allocations: 50.4 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8301/1.081, allocations: 321.7 MB / 0.7074 GB, free: 132.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/1.081, allocations: 82.27 kB / 0.7075 GB, free: 132.4 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5008/1.582, allocations: 134 MB / 0.8384 GB, free: 97.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.582, allocations: 0 / 0.8384 GB, free: 97.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.854e-05/1.582, allocations: 22.39 kB / 0.8384 GB, free: 97.18 MB / 442.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.002589/1.584, allocations: 1.177 MB / 0.8396 GB, free: 96.64 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/1.584, allocations: 10.5 kB / 0.8396 GB, free: 96.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002892/1.585, allocations: 96.7 kB / 0.8397 GB, free: 96.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/1.586, allocations: 0.6776 MB / 0.8403 GB, free: 96.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.814e-05/1.586, allocations: 108.2 kB / 0.8404 GB, free: 96.28 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.525e-05/1.586, allocations: 58.42 kB / 0.8405 GB, free: 96.28 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/1.587, allocations: 0.8922 MB / 0.8414 GB, free: 96.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/1.587, allocations: 4.688 kB / 0.8414 GB, free: 96.17 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.668e-05/1.587, allocations: 25.97 kB / 0.8414 GB, free: 96.17 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.11e-05/1.588, allocations: 46.92 kB / 0.8414 GB, free: 96.17 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/1.589, allocations: 0.8327 MB / 0.8423 GB, free: 96.16 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004687/1.593, allocations: 3.286 MB / 0.8455 GB, free: 95.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009602/1.594, allocations: 0.6514 MB / 0.8461 GB, free: 95.01 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000563/1.595, allocations: 371.9 kB / 0.8464 GB, free: 95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002675/1.598, allocations: 2.043 MB / 0.8484 GB, free: 93.85 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.949e-05/1.598, allocations: 41.72 kB / 0.8485 GB, free: 93.81 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 2.284e-06/1.598, allocations: 0 / 0.8485 GB, free: 93.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=66): time 0.006096/1.604, allocations: 2.868 MB / 0.8513 GB, free: 93.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/1.604, allocations: 87.7 kB / 0.8514 GB, free: 93.21 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009/1.605, allocations: 0.6715 MB / 0.852 GB, free: 93.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.408e-05/1.605, allocations: 39.36 kB / 0.8521 GB, free: 93.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002328/1.605, allocations: 336.8 kB / 0.8524 GB, free: 92.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/1.605, allocations: 232.6 kB / 0.8526 GB, free: 92.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.962e-05/1.605, allocations: 11.62 kB / 0.8526 GB, free: 92.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/1.605, allocations: 388.8 kB / 0.853 GB, free: 92.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005089/1.606, allocations: 355.7 kB / 0.8533 GB, free: 92.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005692/1.606, allocations: 0.502 MB / 0.8538 GB, free: 92.33 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/1.608, allocations: 0.843 MB / 0.8546 GB, free: 92.18 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/1.608, allocations: 0 / 0.8546 GB, free: 92.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001867/1.61, allocations: 1.142 MB / 0.8558 GB, free: 92.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001301/1.61, allocations: 206.1 kB / 0.856 GB, free: 91.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/1.61, allocations: 6.469 kB / 0.856 GB, free: 91.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/1.611, allocations: 444.8 kB / 0.8564 GB, free: 91.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005996/1.612, allocations: 161.2 kB / 0.8565 GB, free: 91.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/1.613, allocations: 1.017 MB / 0.8575 GB, free: 91.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000673/1.613, allocations: 52.02 kB / 0.8576 GB, free: 91.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.558e-05/1.613, allocations: 37.42 kB / 0.8576 GB, free: 91.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/1.613, allocations: 3.969 kB / 0.8576 GB, free: 91.32 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0015/1.615, allocations: 0.9908 MB / 0.8586 GB, free: 91.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/1.615, allocations: 3.844 kB / 0.8586 GB, free: 91.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005838/1.616, allocations: 316.9 kB / 0.8589 GB, free: 91.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000564/1.616, allocations: 161.8 kB / 0.859 GB, free: 91.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007533/1.617, allocations: 0.913 MB / 0.8599 GB, free: 90.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005775/1.617, allocations: 47.58 kB / 0.86 GB, free: 90.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.929e-05/1.618, allocations: 32.78 kB / 0.86 GB, free: 90.75 MB / 442.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.0004169/1.618, allocations: 328.1 kB / 0.8603 GB, free: 90.56 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/1.618, allocations: 81.88 kB / 0.8604 GB, free: 90.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/1.62, allocations: 1.085 MB / 0.8615 GB, free: 90.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/1.62, allocations: 11.09 kB / 0.8615 GB, free: 90.45 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/1.62, allocations: 0 / 0.8615 GB, free: 90.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/1.62, allocations: 3.891 kB / 0.8615 GB, free: 90.45 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002557/1.622, allocations: 1.996 MB / 0.8634 GB, free: 90.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/1.622, allocations: 0 / 0.8634 GB, free: 90.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005283/1.623, allocations: 123.6 kB / 0.8635 GB, free: 90.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/1.624, allocations: 450.3 kB / 0.864 GB, free: 90.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.878e-05/1.624, allocations: 17.95 kB / 0.864 GB, free: 90.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008978/1.625, allocations: 1.027 MB / 0.865 GB, free: 89.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/1.625, allocations: 0 / 0.865 GB, free: 89.56 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/1.627, allocations: 1.597 MB / 0.8666 GB, free: 89.36 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003806/1.627, allocations: 253.3 kB / 0.8668 GB, free: 89.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/1.627, allocations: 13.97 kB / 0.8668 GB, free: 89.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005511/1.628, allocations: 68.72 kB / 0.8669 GB, free: 89.22 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/1.628, allocations: 54.25 kB / 0.8669 GB, free: 89.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.098e-05/1.628, allocations: 23.39 kB / 0.8669 GB, free: 89.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005301/1.629, allocations: 476 kB / 0.8674 GB, free: 89.13 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.629, allocations: 0 / 0.8674 GB, free: 89.13 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001755/1.631, allocations: 0.6414 MB / 0.868 GB, free: 89.03 MB / 442.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.001104/1.632, allocations: 0.5865 MB / 0.8686 GB, free: 88.83 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00249/1.634, allocations: 1.379 MB / 0.8699 GB, free: 88.81 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/1.634, allocations: 0 / 0.8699 GB, free: 88.81 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008371/1.635, allocations: 467.2 kB / 0.8704 GB, free: 88.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/1.637, allocations: 359.8 kB / 0.8707 GB, free: 88.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003033/1.64, allocations: 2.036 MB / 0.8727 GB, free: 88.07 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/1.64, allocations: 0.9971 MB / 0.8737 GB, free: 87.37 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001004/1.641, allocations: 302.3 kB / 0.874 GB, free: 87.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/1.641, allocations: 75.48 kB / 0.8741 GB, free: 87.35 MB / 442.7 MB Notification: Performance of SimCode: time 5.91e-07/1.641, allocations: 0 / 0.8741 GB, free: 87.35 MB / 442.7 MB Notification: Performance of Templates: time 0.03247/1.674, allocations: 22.16 MB / 0.8957 GB, free: 86.43 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches