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.00113/0.00113, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001262/0.001262, allocations: 174.4 kB / 25.61 MB, free: 8.91 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.9537/0.9537, allocations: 177.1 MB / 206.1 MB, free: 4.504 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 2.054e-06/2.054e-06, allocations: 0 / 274.2 MB, free: 4.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.506e-05/1.711e-05, allocations: 2.312 kB / 274.2 MB, free: 4.535 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01028/0.0103, allocations: 8.007 MB / 282.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008928/0.01923, allocations: 5.505 MB / 287.7 MB, free: 6.996 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007817/0.02001, allocations: 27.75 kB / 287.7 MB, free: 6.969 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000766/0.02077, allocations: 246.4 kB / 288 MB, free: 6.727 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002897/0.02367, allocations: 1.064 MB / 289 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004078/0.02775, allocations: 1.851 MB / 290.9 MB, free: 3.801 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00266/0.03041, allocations: 2.158 MB / 293 MB, free: 1.637 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00091/0.03132, allocations: 0.5379 MB / 293.6 MB, free: 1.082 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00165/0.03297, allocations: 1.076 MB / 294.6 MB, free: 4 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00118/0.03415, allocations: 0.748 MB / 295.4 MB, free: 15.25 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001694/0.03432, allocations: 80 kB / 295.5 MB, free: 15.18 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002042/0.03636, allocations: 0.9009 MB / 296.4 MB, free: 14.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003397/0.0367, allocations: 343 kB / 296.7 MB, free: 13.94 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003839/0.03708, allocations: 331.2 kB / 297 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002141/0.03922, allocations: 1.554 MB / 298.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.03923, allocations: 0 / 298.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.03923, allocations: 0 / 298.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.03924, allocations: 0 / 298.6 MB, free: 12.05 MB / 282.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.002293/0.04153, allocations: 1.3 MB / 299.9 MB, free: 10.71 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.04158, allocations: 8.031 kB / 299.9 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004064/0.04198, allocations: 160.2 kB / 300 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008775/0.04286, allocations: 0.5532 MB / 300.6 MB, free: 9.969 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.04299, allocations: 168 kB / 300.8 MB, free: 9.777 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.04311, allocations: 55.98 kB / 300.8 MB, free: 9.723 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009756/0.04408, allocations: 0.803 MB / 301.6 MB, free: 8.816 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.0441, allocations: 3.984 kB / 301.6 MB, free: 8.812 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.201e-05/0.04418, allocations: 23.98 kB / 301.6 MB, free: 8.789 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.112e-05/0.04426, allocations: 53.28 kB / 301.7 MB, free: 8.738 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005847/0.04484, allocations: 290.1 kB / 302 MB, free: 8.453 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003798/0.04864, allocations: 2.144 MB / 304.1 MB, free: 6.254 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.04918, allocations: 313.7 kB / 304.4 MB, free: 5.938 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.0494, allocations: 129 kB / 304.6 MB, free: 5.809 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001617/0.05102, allocations: 0.9311 MB / 305.5 MB, free: 4.855 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.05105, allocations: 45.89 kB / 305.5 MB, free: 4.801 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.084e-06/0.05106, allocations: 0 / 305.5 MB, free: 4.801 MB / 282.7 MB Notification: Performance of matching and sorting (n=66): time 0.003899/0.05496, allocations: 1.413 MB / 306.9 MB, free: 3.352 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.055, allocations: 85.77 kB / 307 MB, free: 3.25 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005103/0.05551, allocations: 0.5333 MB / 307.6 MB, free: 2.699 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.909e-05/0.05557, allocations: 41.7 kB / 307.6 MB, free: 2.652 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/0.05583, allocations: 403.3 kB / 308 MB, free: 2.25 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/0.05602, allocations: 234 kB / 308.2 MB, free: 2.02 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002499/0.05627, allocations: 168.2 kB / 308.4 MB, free: 1.848 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.05648, allocations: 0.5585 MB / 308.9 MB, free: 1.277 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/0.05673, allocations: 111.6 kB / 309.1 MB, free: 1.164 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003953/0.05713, allocations: 365.8 kB / 309.4 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.05779, allocations: 470.8 kB / 309.9 MB, free: 184 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.05779, allocations: 7.938 kB / 309.9 MB, free: 176 kB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001439/0.05923, allocations: 0.6096 MB / 310.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.05925, allocations: 6.188 kB / 310.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.05926, allocations: 8 kB / 310.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008431/0.0601, allocations: 295.7 kB / 310.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005295/0.06063, allocations: 159.7 kB / 310.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007837/0.06141, allocations: 0.9402 MB / 311.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/0.06181, allocations: 27.98 kB / 311.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.25e-05/0.06188, allocations: 20 kB / 311.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000366/0.06224, allocations: 244.8 kB / 312.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004118/0.06265, allocations: 369.6 kB / 312.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006878/0.06334, allocations: 470.5 kB / 313 MB, free: 12.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.406e-06/0.06334, allocations: 0 / 313 MB, free: 12.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001128/0.06447, allocations: 0.5939 MB / 313.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.06449, allocations: 8 kB / 313.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.0645, allocations: 4 kB / 313.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004689/0.06496, allocations: 191.9 kB / 313.8 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000542/0.06551, allocations: 163.8 kB / 313.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006816/0.06619, allocations: 0.8935 MB / 314.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003897/0.06658, allocations: 28 kB / 314.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.376e-05/0.06664, allocations: 31.98 kB / 314.9 MB, free: 10.88 MB / 298.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.0002308/0.06687, allocations: 315.9 kB / 315.2 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/0.06705, allocations: 95.53 kB / 315.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/0.06818, allocations: 0.5424 MB / 315.8 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.06819, allocations: 8 kB / 315.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.06819, allocations: 0 / 315.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.0682, allocations: 3.984 kB / 315.9 MB, free: 9.902 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001912/0.07011, allocations: 1.081 MB / 316.9 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.07011, allocations: 0 / 316.9 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004519/0.07056, allocations: 111.9 kB / 317 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009791/0.07154, allocations: 295.3 kB / 317.3 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.0716, allocations: 20 kB / 317.4 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003991/0.07559, allocations: 0.9356 MB / 318.3 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.07559, allocations: 11.98 kB / 318.3 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001522/0.07712, allocations: 0.7647 MB / 319.1 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003585/0.07747, allocations: 143.3 kB / 319.2 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.07761, allocations: 11.98 kB / 319.2 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004392/0.07805, allocations: 24 kB / 319.2 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.0782, allocations: 52.55 kB / 319.3 MB, free: 6.367 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.341e-05/0.07826, allocations: 23.98 kB / 319.3 MB, free: 6.344 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003497/0.07861, allocations: 326.7 kB / 319.6 MB, free: 6.027 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.07861, allocations: 4 kB / 319.6 MB, free: 6.023 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00157/0.08018, allocations: 0.5576 MB / 320.2 MB, free: 5.465 MB / 298.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.00106/0.08124, allocations: 441.9 kB / 320.6 MB, free: 5.023 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.08299, allocations: 0.7012 MB / 321.3 MB, free: 4.316 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.08299, allocations: 192 / 321.3 MB, free: 4.316 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005565/0.08355, allocations: 256.4 kB / 321.6 MB, free: 4.062 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.08496, allocations: 380.7 kB / 322 MB, free: 3.699 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.08773, allocations: 1.407 MB / 323.4 MB, free: 2.262 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001317/0.08786, allocations: 200.6 kB / 323.6 MB, free: 2.047 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000524/0.08839, allocations: 170 kB / 323.7 MB, free: 1.879 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005716/0.08896, allocations: 377.9 kB / 324.1 MB, free: 1.508 MB / 298.7 MB Notification: Performance of SimCode: time 1.463e-06/0.08896, allocations: 0 / 324.1 MB, free: 1.508 MB / 298.7 MB Notification: Performance of Templates: time 0.1556/0.2445, allocations: 23.13 MB / 347.2 MB, free: 64.77 MB / 314.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 -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.689211269840598]