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.001051/0.001051, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.001165/0.001165, allocations: 165.8 kB / 25.7 MB, free: 8.438 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.9739/0.9739, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.304e-06/2.304e-06, allocations: 0 / 251.5 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.035e-05/2.265e-05, allocations: 6.25 kB / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.008132/0.008154, allocations: 8.01 MB / 259.6 MB, free: 15.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006537/0.01469, allocations: 5.549 MB / 265.1 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004644/0.01516, allocations: 31.69 kB / 265.1 MB, free: 9.586 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005389/0.01569, allocations: 246.4 kB / 265.4 MB, free: 9.344 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001613/0.01731, allocations: 1.041 MB / 266.4 MB, free: 8.297 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002519/0.01983, allocations: 1.729 MB / 268.2 MB, free: 6.562 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001649/0.02148, allocations: 2.128 MB / 270.3 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005109/0.02199, allocations: 0.53 MB / 270.8 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009322/0.02292, allocations: 1.04 MB / 271.9 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006431/0.02356, allocations: 0.6895 MB / 272.5 MB, free: 2.145 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.519e-05/0.02366, allocations: 80 kB / 272.6 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.02496, allocations: 1.003 MB / 273.6 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000246/0.02521, allocations: 339 kB / 274 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002735/0.02548, allocations: 335.2 kB / 274.3 MB, free: 412 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00161/0.02709, allocations: 1.531 MB / 275.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.02709, allocations: 4 kB / 275.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.02709, allocations: 7.938 kB / 275.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.0271, allocations: 0 / 275.8 MB, free: 14.86 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.001405/0.02851, allocations: 1.144 MB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.02854, allocations: 11.98 kB / 277 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002441/0.02879, allocations: 128.6 kB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00057/0.02936, allocations: 499.8 kB / 277.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.02946, allocations: 160.1 kB / 277.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.612e-05/0.02954, allocations: 59.98 kB / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006282/0.03016, allocations: 0.8008 MB / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.03018, allocations: 0 / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.47e-05/0.03023, allocations: 23.98 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.798e-05/0.03028, allocations: 53.27 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003573/0.03064, allocations: 261 kB / 278.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.03274, allocations: 1.663 MB / 280.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000342/0.03309, allocations: 333.9 kB / 280.9 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.03321, allocations: 106.3 kB / 281 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00105/0.03426, allocations: 0.7854 MB / 281.8 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.03429, allocations: 47 kB / 281.9 MB, free: 8.566 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.363e-06/0.03429, allocations: 0 / 281.9 MB, free: 8.566 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.00234/0.03663, allocations: 1.355 MB / 283.2 MB, free: 7.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.03667, allocations: 89.75 kB / 283.3 MB, free: 7.074 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002939/0.03696, allocations: 476.7 kB / 283.8 MB, free: 6.594 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.13e-05/0.037, allocations: 41.7 kB / 283.8 MB, free: 6.547 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.03712, allocations: 289.9 kB / 284.1 MB, free: 6.258 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.03724, allocations: 241.9 kB / 284.3 MB, free: 6.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.03739, allocations: 146.5 kB / 284.5 MB, free: 5.867 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.0375, allocations: 386.6 kB / 284.9 MB, free: 5.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.03764, allocations: 111.6 kB / 285 MB, free: 5.367 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.03784, allocations: 277.3 kB / 285.2 MB, free: 5.031 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003719/0.03822, allocations: 418.6 kB / 285.6 MB, free: 4.562 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.03822, allocations: 0 / 285.6 MB, free: 4.562 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0005668/0.03878, allocations: 483.6 kB / 286.1 MB, free: 4.078 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.0388, allocations: 4 kB / 286.1 MB, free: 4.074 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.03881, allocations: 4 kB / 286.1 MB, free: 4.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006877/0.0395, allocations: 323.4 kB / 286.4 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/0.03989, allocations: 175.8 kB / 286.6 MB, free: 3.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004765/0.04037, allocations: 0.6514 MB / 287.3 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.04057, allocations: 28.03 kB / 287.3 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-05/0.04062, allocations: 27.98 kB / 287.3 MB, free: 2.848 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002167/0.04083, allocations: 195.8 kB / 287.5 MB, free: 2.652 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002052/0.04104, allocations: 286.2 kB / 287.8 MB, free: 2.305 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003644/0.0414, allocations: 420.7 kB / 288.2 MB, free: 1.832 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.476e-06/0.04141, allocations: 3.984 kB / 288.2 MB, free: 1.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0006153/0.04202, allocations: 483.4 kB / 288.7 MB, free: 1.344 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.947e-06/0.04203, allocations: 8 kB / 288.7 MB, free: 1.336 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.04203, allocations: 7.984 kB / 288.7 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003676/0.0424, allocations: 207.8 kB / 288.9 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000357/0.04276, allocations: 187.7 kB / 289.1 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003677/0.04313, allocations: 0.6124 MB / 289.7 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.04333, allocations: 31.98 kB / 289.7 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/0.04337, allocations: 27.98 kB / 289.7 MB, free: 244 kB / 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.000135/0.0435, allocations: 224 kB / 290 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.963e-05/0.0436, allocations: 64.02 kB / 290 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000628/0.04423, allocations: 467.5 kB / 290.5 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.04424, allocations: 11.94 kB / 290.5 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.04424, allocations: 0 / 290.5 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.04424, allocations: 3.984 kB / 290.5 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.04529, allocations: 0.8794 MB / 291.4 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.0453, allocations: 7.938 kB / 291.4 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003196/0.04562, allocations: 127.8 kB / 291.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005583/0.04617, allocations: 299.4 kB / 291.8 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/0.04621, allocations: 19.98 kB / 291.8 MB, free: 14.1 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000443/0.04665, allocations: 0.662 MB / 292.5 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.04665, allocations: 0 / 292.5 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007033/0.04736, allocations: 0.653 MB / 293.1 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.04751, allocations: 99.48 kB / 293.2 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.679e-05/0.04756, allocations: 12 kB / 293.2 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.04777, allocations: 39.97 kB / 293.3 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.273e-05/0.04786, allocations: 48.44 kB / 293.3 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.04789, allocations: 23.98 kB / 293.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001494/0.04804, allocations: 204.4 kB / 293.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04804, allocations: 0 / 293.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000814/0.04886, allocations: 0.5537 MB / 294.1 MB, free: 11.76 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.0005944/0.04945, allocations: 433 kB / 294.5 MB, free: 11.33 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.05047, allocations: 0.6628 MB / 295.2 MB, free: 10.67 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.05048, allocations: 8 kB / 295.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002937/0.05078, allocations: 213.7 kB / 295.4 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007611/0.05154, allocations: 377.2 kB / 295.8 MB, free: 10.08 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001931/0.05347, allocations: 1.363 MB / 297.1 MB, free: 8.68 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.05358, allocations: 196.7 kB / 297.3 MB, free: 8.469 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003695/0.05395, allocations: 166.1 kB / 297.5 MB, free: 8.305 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005107/0.05446, allocations: 317 kB / 297.8 MB, free: 7.996 MB / 282.7 MB Notification: Performance of SimCode: time 1.152e-06/0.05447, allocations: 0 / 297.8 MB, free: 7.996 MB / 282.7 MB Notification: Performance of Templates: time 0.02291/0.07737, allocations: 22.92 MB / 320.7 MB, free: 1.07 MB / 298.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 -s gbode -gbm=radauIIA3 -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.1880267462693155]