Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009812/0.0009812, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.0009099/0.0009099, allocations: 170 kB / 25.33 MB, free: 9.008 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8741/0.8741, allocations: 158.6 MB / 187.2 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 179] 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 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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 251 MB, free: 7.52 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.655e-05/3.857e-05, allocations: 2.312 kB / 251 MB, free: 7.516 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01018/0.01022, allocations: 8.01 MB / 259 MB, free: 15.46 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007242/0.01746, allocations: 5.531 MB / 264.6 MB, free: 9.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005789/0.01804, allocations: 31.69 kB / 264.6 MB, free: 9.883 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006452/0.01869, allocations: 246.4 kB / 264.8 MB, free: 9.641 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001964/0.02065, allocations: 1.049 MB / 265.9 MB, free: 8.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003102/0.02375, allocations: 1.808 MB / 267.7 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002122/0.02588, allocations: 2.186 MB / 269.9 MB, free: 4.582 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.02695, allocations: 0.5495 MB / 270.4 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001229/0.02818, allocations: 1.029 MB / 271.5 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008181/0.029, allocations: 0.7909 MB / 272.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.02911, allocations: 80 kB / 272.3 MB, free: 2.113 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.03051, allocations: 0.897 MB / 273.2 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002422/0.03075, allocations: 347 kB / 273.6 MB, free: 0.875 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002908/0.03104, allocations: 335.2 kB / 273.9 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.03288, allocations: 1.538 MB / 275.4 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.03289, allocations: 0 / 275.4 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.03289, allocations: 0 / 275.4 MB, free: 15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.0329, allocations: 0 / 275.4 MB, free: 15 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.00172/0.03462, allocations: 1.304 MB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.03466, allocations: 11.98 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002993/0.03496, allocations: 156.2 kB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006735/0.03563, allocations: 0.5739 MB / 277.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.03577, allocations: 156.1 kB / 277.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.693e-05/0.03586, allocations: 59.98 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008259/0.03668, allocations: 0.8539 MB / 278.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.0367, allocations: 7.891 kB / 278.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.107e-05/0.03675, allocations: 27.98 kB / 278.6 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.084e-05/0.03681, allocations: 53.27 kB / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005558/0.03737, allocations: 371.5 kB / 279 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002729/0.0401, allocations: 2.296 MB / 281.3 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004841/0.04058, allocations: 344.6 kB / 281.6 MB, free: 8.551 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.04078, allocations: 149.1 kB / 281.8 MB, free: 8.402 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00117/0.04196, allocations: 0.9624 MB / 282.7 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.04198, allocations: 45.83 kB / 282.8 MB, free: 7.363 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.383e-06/0.04198, allocations: 0 / 282.8 MB, free: 7.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.003093/0.04508, allocations: 1.635 MB / 284.4 MB, free: 5.691 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.04512, allocations: 85.77 kB / 284.5 MB, free: 5.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004115/0.04553, allocations: 0.5453 MB / 285 MB, free: 5.027 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.394e-05/0.04557, allocations: 41.7 kB / 285.1 MB, free: 4.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.04576, allocations: 407.4 kB / 285.5 MB, free: 4.574 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.0459, allocations: 238 kB / 285.7 MB, free: 4.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.04607, allocations: 152.3 kB / 285.9 MB, free: 4.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.04622, allocations: 0.5586 MB / 286.4 MB, free: 3.609 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002422/0.04647, allocations: 147.6 kB / 286.6 MB, free: 3.461 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003443/0.04681, allocations: 390 kB / 286.9 MB, free: 2.992 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005608/0.04737, allocations: 0.5145 MB / 287.5 MB, free: 2.395 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.04737, allocations: 0 / 287.5 MB, free: 2.395 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009052/0.04828, allocations: 0.6719 MB / 288.1 MB, free: 1.711 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.0483, allocations: 8 kB / 288.1 MB, free: 1.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.0483, allocations: 4.562 kB / 288.1 MB, free: 1.699 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006494/0.04895, allocations: 299.4 kB / 288.4 MB, free: 1.402 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.0493, allocations: 151.8 kB / 288.6 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000648/0.04995, allocations: 0.956 MB / 289.5 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/0.05019, allocations: 27.98 kB / 289.6 MB, free: 244 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.78e-05/0.05024, allocations: 35.92 kB / 289.6 MB, free: 208 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003384/0.05058, allocations: 276.8 kB / 289.9 MB, free: 15.93 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003644/0.05094, allocations: 405.6 kB / 290.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005626/0.0515, allocations: 0.5104 MB / 290.8 MB, free: 14.85 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.028e-06/0.05151, allocations: 4 kB / 290.8 MB, free: 14.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0008927/0.0524, allocations: 0.66 MB / 291.4 MB, free: 14.17 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.05241, allocations: 8.562 kB / 291.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.05242, allocations: 4 kB / 291.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003311/0.05275, allocations: 187.6 kB / 291.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003309/0.05308, allocations: 171.7 kB / 291.8 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005024/0.05358, allocations: 0.9014 MB / 292.7 MB, free: 12.87 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.05382, allocations: 35.92 kB / 292.7 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.771e-05/0.05387, allocations: 35.98 kB / 292.8 MB, free: 12.8 MB / 282.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.0001753/0.05404, allocations: 311.8 kB / 293.1 MB, free: 12.49 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.05416, allocations: 99.58 kB / 293.2 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000857/0.05501, allocations: 0.6012 MB / 293.8 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.05502, allocations: 15.98 kB / 293.8 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.05502, allocations: 0 / 293.8 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.05503, allocations: 3.938 kB / 293.8 MB, free: 11.76 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.05655, allocations: 1.218 MB / 295 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.05655, allocations: 3.938 kB / 295 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003046/0.05685, allocations: 115.9 kB / 295.1 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005267/0.05738, allocations: 295.3 kB / 295.4 MB, free: 10.08 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.113e-05/0.05742, allocations: 23.98 kB / 295.4 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005591/0.05798, allocations: 0.9511 MB / 296.4 MB, free: 9.078 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.05798, allocations: 0 / 296.4 MB, free: 9.078 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.05902, allocations: 0.8623 MB / 297.3 MB, free: 8.195 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.05924, allocations: 147.4 kB / 297.4 MB, free: 8.051 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.195e-05/0.0593, allocations: 12 kB / 297.4 MB, free: 8.039 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.05954, allocations: 31.98 kB / 297.4 MB, free: 8.008 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.05965, allocations: 52.55 kB / 297.5 MB, free: 7.957 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.235e-05/0.05969, allocations: 27.98 kB / 297.5 MB, free: 7.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002674/0.05996, allocations: 350.8 kB / 297.9 MB, free: 7.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05996, allocations: 0 / 297.9 MB, free: 7.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001005/0.06096, allocations: 0.5576 MB / 298.4 MB, free: 7.031 MB / 282.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.0006735/0.06163, allocations: 445.9 kB / 298.9 MB, free: 6.582 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.06291, allocations: 0.8008 MB / 299.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.06291, allocations: 3.859 kB / 299.7 MB, free: 5.773 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004096/0.06332, allocations: 276.4 kB / 299.9 MB, free: 5.496 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009283/0.06425, allocations: 373.7 kB / 300.3 MB, free: 5.137 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00228/0.06653, allocations: 1.405 MB / 301.7 MB, free: 3.699 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001459/0.06668, allocations: 200.6 kB / 301.9 MB, free: 3.484 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005639/0.06724, allocations: 269.9 kB / 302.2 MB, free: 3.219 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.06737, allocations: 68.48 kB / 302.2 MB, free: 3.152 MB / 282.7 MB Notification: Performance of SimCode: time 1.142e-06/0.06738, allocations: 0 / 302.2 MB, free: 3.152 MB / 282.7 MB Notification: Performance of Templates: time 0.02143/0.0888, allocations: 20.67 MB / 322.9 MB, free: 14.47 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.333815248683095]