Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008864/0.0008864, allocations: 80.8 kB / 21.5 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009389/0.0009389, allocations: 174 kB / 24.92 MB, free: 9.211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.931/0.931, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 273.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.254e-05/1.367e-05, allocations: 2.312 kB / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.006569/0.006583, allocations: 8.086 MB / 281.6 MB, free: 9.137 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006164/0.01275, allocations: 5.623 MB / 287.2 MB, free: 3.504 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003816/0.01313, allocations: 27.75 kB / 287.2 MB, free: 3.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004845/0.01361, allocations: 242.4 kB / 287.4 MB, free: 3.238 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001511/0.01512, allocations: 1.057 MB / 288.5 MB, free: 2.176 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002354/0.01748, allocations: 1.706 MB / 290.2 MB, free: 476 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1007/0.1182, allocations: 2.124 MB / 292.3 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000798/0.119, allocations: 0.5235 MB / 292.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001399/0.1204, allocations: 1.043 MB / 293.9 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.1214, allocations: 0.6957 MB / 294.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001803/0.1216, allocations: 79.88 kB / 294.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001616/0.1232, allocations: 1.005 MB / 295.7 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002873/0.1235, allocations: 345 kB / 296 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003688/0.1238, allocations: 334.6 kB / 296.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001853/0.1257, allocations: 1.548 MB / 297.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.1257, allocations: 1.188 kB / 297.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.1257, allocations: 0 / 297.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.863e-05/0.1257, allocations: 1.094 kB / 297.9 MB, free: 15.49 MB / 266.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.001626/0.1273, allocations: 1.146 MB / 299 MB, free: 14.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.1274, allocations: 10.19 kB / 299 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002813/0.1277, allocations: 125.8 kB / 299.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005685/0.1282, allocations: 498.5 kB / 299.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.752e-05/0.1283, allocations: 158.5 kB / 299.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.659e-05/0.1284, allocations: 62.19 kB / 299.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006141/0.129, allocations: 0.8 MB / 300.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.129, allocations: 5.516 kB / 300.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.495e-05/0.1291, allocations: 26.38 kB / 300.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.111e-05/0.1291, allocations: 48.19 kB / 300.8 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003829/0.1295, allocations: 266 kB / 301 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.1317, allocations: 1.648 MB / 302.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000339/0.132, allocations: 332.4 kB / 303 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.1321, allocations: 111.4 kB / 303.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009974/0.1331, allocations: 0.7902 MB / 303.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.1332, allocations: 42.22 kB / 303.9 MB, free: 13.03 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.453e-06/0.1332, allocations: 0 / 303.9 MB, free: 13.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002385/0.1355, allocations: 1.36 MB / 305.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/0.1356, allocations: 86.98 kB / 305.4 MB, free: 12.63 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/0.1359, allocations: 483.2 kB / 305.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.034e-05/0.1359, allocations: 36.7 kB / 305.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.411e-05/0.136, allocations: 295.6 kB / 306.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.773e-05/0.1361, allocations: 238.7 kB / 306.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.1362, allocations: 155.8 kB / 306.6 MB, free: 12.08 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.578e-05/0.1363, allocations: 377.3 kB / 306.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.1364, allocations: 107.1 kB / 307 MB, free: 11.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.1366, allocations: 280.8 kB / 307.3 MB, free: 11.56 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003346/0.1369, allocations: 417.5 kB / 307.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1369, allocations: 0 / 307.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.000556/0.1375, allocations: 491.4 kB / 308.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.1375, allocations: 6.406 kB / 308.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.1375, allocations: 5.547 kB / 308.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006297/0.1381, allocations: 311.7 kB / 308.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003694/0.1385, allocations: 176.8 kB / 308.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000355/0.1388, allocations: 0.6536 MB / 309.3 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.1391, allocations: 25.34 kB / 309.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.034e-05/0.1391, allocations: 26.05 kB / 309.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002024/0.1393, allocations: 198.4 kB / 309.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001635/0.1395, allocations: 292 kB / 309.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003259/0.1398, allocations: 407.5 kB / 310.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.993e-06/0.1398, allocations: 0 / 310.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.000521/0.1403, allocations: 478.9 kB / 310.7 MB, free: 10.03 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/0.1403, allocations: 15.39 kB / 310.7 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1403, allocations: 3.656 kB / 310.7 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003362/0.1407, allocations: 203.9 kB / 310.9 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003373/0.141, allocations: 187.1 kB / 311.1 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002777/0.1413, allocations: 0.6126 MB / 311.7 MB, free: 9.148 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.1415, allocations: 31.98 kB / 311.8 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.1415, allocations: 27.98 kB / 311.8 MB, free: 9.09 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.1416, allocations: 226.3 kB / 312 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.461e-05/0.1417, allocations: 63.94 kB / 312.1 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005393/0.1422, allocations: 470.5 kB / 312.5 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1423, allocations: 9.688 kB / 312.5 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.1423, allocations: 0 / 312.5 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1423, allocations: 7.922 kB / 312.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000898/0.1432, allocations: 0.8776 MB / 313.4 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1432, allocations: 3.938 kB / 313.4 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.1435, allocations: 130.8 kB / 313.6 MB, free: 7.359 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004867/0.1439, allocations: 308.6 kB / 313.9 MB, free: 7.059 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.843e-05/0.144, allocations: 19.98 kB / 313.9 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003189/0.1443, allocations: 0.6556 MB / 314.5 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1443, allocations: 1.797 kB / 314.5 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005848/0.1449, allocations: 0.661 MB / 315.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.145, allocations: 99.45 kB / 315.3 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.585e-05/0.1451, allocations: 16 kB / 315.3 MB, free: 5.598 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.1453, allocations: 23.98 kB / 315.3 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.376e-05/0.1453, allocations: 56.62 kB / 315.4 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.364e-05/0.1454, allocations: 19.98 kB / 315.4 MB, free: 5.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001169/0.1455, allocations: 198.7 kB / 315.6 MB, free: 5.328 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1455, allocations: 0 / 315.6 MB, free: 5.328 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008738/0.1464, allocations: 0.5615 MB / 316.2 MB, free: 4.766 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * 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 (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005761/0.1469, allocations: 432.6 kB / 316.6 MB, free: 4.359 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009943/0.1479, allocations: 0.6689 MB / 317.3 MB, free: 3.738 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/0.1479, allocations: 8 kB / 317.3 MB, free: 3.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002825/0.1482, allocations: 211.3 kB / 317.5 MB, free: 3.539 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007554/0.149, allocations: 389.9 kB / 317.9 MB, free: 3.188 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.1507, allocations: 1.338 MB / 319.2 MB, free: 1.844 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.634e-05/0.1508, allocations: 200.3 kB / 319.4 MB, free: 1.629 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004124/0.1512, allocations: 162.1 kB / 319.5 MB, free: 1.469 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004631/0.1516, allocations: 322.1 kB / 319.9 MB, free: 1.156 MB / 266.7 MB Notification: Performance of SimCode: time 9.91e-07/0.1516, allocations: 0 / 319.9 MB, free: 1.156 MB / 266.7 MB Notification: Performance of Templates: time 0.02259/0.1742, allocations: 22.96 MB / 342.8 MB, free: 10.62 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.094658140093088]