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.002485/0.002485, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.022/2.022, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001198/0.001197, allocations: 92.42 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003782/0.0003784, allocations: 12 kB / 327 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3421, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.012/1.355, allocations: 321 MB / 0.6792 GB, free: 107.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/1.355, allocations: 81.69 kB / 0.6793 GB, free: 107.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4495/1.805, allocations: 132 MB / 0.8082 GB, free: 1.434 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.983e-06/1.805, allocations: 0 / 0.8082 GB, free: 1.434 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.234e-05/1.805, allocations: 24.16 kB / 0.8082 GB, free: 1.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.003707/1.808, allocations: 1.18 MB / 0.8094 GB, free: 184 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/1.808, allocations: 8.031 kB / 0.8094 GB, free: 176 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004993/1.809, allocations: 106.9 kB / 0.8095 GB, free: 68 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2918/2.101, allocations: 0.644 MB / 0.8101 GB, free: 96.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/2.101, allocations: 104.8 kB / 0.8102 GB, free: 96.92 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/2.101, allocations: 56.02 kB / 0.8103 GB, free: 96.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002165/2.103, allocations: 0.8898 MB / 0.8111 GB, free: 96.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.358e-05/2.103, allocations: 7.125 kB / 0.8111 GB, free: 96.82 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/2.103, allocations: 24.84 kB / 0.8112 GB, free: 96.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000116/2.104, allocations: 52.58 kB / 0.8112 GB, free: 96.82 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002394/2.106, allocations: 0.8297 MB / 0.812 GB, free: 96.81 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008641/2.115, allocations: 3.292 MB / 0.8152 GB, free: 95.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/2.116, allocations: 0.6569 MB / 0.8159 GB, free: 95.67 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004468/2.121, allocations: 2.044 MB / 0.8179 GB, free: 94.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.218e-05/2.121, allocations: 49.73 kB / 0.8179 GB, free: 94.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 3.978e-06/2.121, allocations: 0 / 0.8179 GB, free: 94.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.01163/2.133, allocations: 2.825 MB / 0.8207 GB, free: 93.97 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/2.133, allocations: 87.55 kB / 0.8208 GB, free: 93.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/2.134, allocations: 0.597 MB / 0.8213 GB, free: 93.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001433/2.134, allocations: 37.17 kB / 0.8214 GB, free: 93.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002383/2.134, allocations: 360.7 kB / 0.8217 GB, free: 93.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002647/2.135, allocations: 226.1 kB / 0.8219 GB, free: 93.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.085e-05/2.135, allocations: 19.53 kB / 0.822 GB, free: 93.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.146e-05/2.135, allocations: 345 kB / 0.8223 GB, free: 93.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/2.136, allocations: 356.3 kB / 0.8226 GB, free: 93.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/2.137, allocations: 0.5062 MB / 0.8231 GB, free: 92.94 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/2.138, allocations: 401.2 kB / 0.8235 GB, free: 92.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/2.138, allocations: 1.281 kB / 0.8235 GB, free: 92.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003121/2.141, allocations: 1.091 MB / 0.8246 GB, free: 92.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000357/2.142, allocations: 1.572 MB / 0.8261 GB, free: 91.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/2.142, allocations: 3.969 kB / 0.8261 GB, free: 91.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002062/2.144, allocations: 453.4 kB / 0.8265 GB, free: 91.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/2.145, allocations: 159.9 kB / 0.8267 GB, free: 91.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/2.147, allocations: 1.024 MB / 0.8277 GB, free: 90.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/2.148, allocations: 51.03 kB / 0.8277 GB, free: 90.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/2.148, allocations: 33.56 kB / 0.8278 GB, free: 90.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/2.148, allocations: 3.875 kB / 0.8278 GB, free: 90.7 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002619/2.151, allocations: 0.9942 MB / 0.8287 GB, free: 90.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/2.151, allocations: 3.781 kB / 0.8287 GB, free: 90.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/2.152, allocations: 314.4 kB / 0.829 GB, free: 90.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/2.153, allocations: 167.7 kB / 0.8292 GB, free: 90.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/2.154, allocations: 0.8856 MB / 0.8301 GB, free: 90.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008181/2.155, allocations: 42.92 kB / 0.8301 GB, free: 90.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.957e-05/2.155, allocations: 35.98 kB / 0.8301 GB, free: 90.14 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.0006751/2.156, allocations: 339.2 kB / 0.8305 GB, free: 89.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002709/2.156, allocations: 77.66 kB / 0.8305 GB, free: 89.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002913/2.159, allocations: 1.091 MB / 0.8316 GB, free: 89.84 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/2.159, allocations: 7.344 kB / 0.8316 GB, free: 89.84 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/2.159, allocations: 2.438 kB / 0.8316 GB, free: 89.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/2.159, allocations: 7.531 kB / 0.8316 GB, free: 89.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004529/2.164, allocations: 2 MB / 0.8336 GB, free: 89.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/2.164, allocations: 0 / 0.8336 GB, free: 89.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/2.165, allocations: 115.3 kB / 0.8337 GB, free: 89.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001878/2.167, allocations: 448.8 kB / 0.8341 GB, free: 89.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.126e-05/2.167, allocations: 23.47 kB / 0.8341 GB, free: 89.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/2.169, allocations: 1.03 MB / 0.8351 GB, free: 88.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/2.169, allocations: 0 / 0.8351 GB, free: 88.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003692/2.172, allocations: 1.59 MB / 0.8367 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006015/2.173, allocations: 255 kB / 0.8369 GB, free: 88.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001848/2.173, allocations: 15.28 kB / 0.837 GB, free: 88.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/2.174, allocations: 49.8 kB / 0.837 GB, free: 88.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/2.174, allocations: 58.91 kB / 0.8371 GB, free: 88.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.826e-05/2.174, allocations: 29.89 kB / 0.8371 GB, free: 88.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007993/2.175, allocations: 477.9 kB / 0.8375 GB, free: 88.53 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.61e-07/2.175, allocations: 3.188 kB / 0.8375 GB, free: 88.53 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002495/2.178, allocations: 0.6413 MB / 0.8382 GB, free: 88.53 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.001621/2.179, allocations: 0.5895 MB / 0.8387 GB, free: 88.44 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004405/2.184, allocations: 1.38 MB / 0.8401 GB, free: 88.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/2.184, allocations: 3.625 kB / 0.8401 GB, free: 88.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001514/2.185, allocations: 471.8 kB / 0.8405 GB, free: 88.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002675/2.188, allocations: 351 kB / 0.8409 GB, free: 88.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004853/2.193, allocations: 2.074 MB / 0.8429 GB, free: 87.64 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005142/2.194, allocations: 1.005 MB / 0.8439 GB, free: 86.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004773/2.194, allocations: 86.94 kB / 0.844 GB, free: 86.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/2.194, allocations: 0 / 0.844 GB, free: 86.93 MB / 426.7 MB Notification: Performance of Templates: time 0.03573/2.23, allocations: 19.26 MB / 0.8628 GB, free: 85.97 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