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.00151/0.00151, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001478/0.001478, allocations: 158.9 kB / 25.74 MB, free: 8.953 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.9436/0.9436, allocations: 158.6 MB / 187.6 MB, free: 2.938 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 9.22e-07/9.22e-07, allocations: 0 / 251.1 MB, free: 7.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.257e-05/1.35e-05, allocations: 2.312 kB / 251.1 MB, free: 7.812 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01156/0.01157, allocations: 16.27 MB / 267.4 MB, free: 7.469 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006507/0.01808, allocations: 6.831 MB / 274.2 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003737/0.01845, allocations: 31.69 kB / 274.2 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005981/0.01905, allocations: 329.8 kB / 274.5 MB, free: 272 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001571/0.02062, allocations: 1.138 MB / 275.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002883/0.02351, allocations: 1.901 MB / 277.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001564/0.02507, allocations: 2.167 MB / 279.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005212/0.02559, allocations: 0.5339 MB / 280.3 MB, free: 10.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009343/0.02653, allocations: 1.056 MB / 281.3 MB, free: 9.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007063/0.02723, allocations: 0.7869 MB / 282.1 MB, free: 8.641 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.42e-05/0.02733, allocations: 76 kB / 282.2 MB, free: 8.566 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.02858, allocations: 1.014 MB / 283.2 MB, free: 7.551 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002361/0.02881, allocations: 351 kB / 283.6 MB, free: 7.207 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002647/0.02908, allocations: 331.2 kB / 283.9 MB, free: 6.883 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001796/0.03087, allocations: 1.644 MB / 285.5 MB, free: 5.234 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.03088, allocations: 0 / 285.5 MB, free: 5.234 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.03088, allocations: 0 / 285.5 MB, free: 5.234 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.03088, allocations: 0 / 285.5 MB, free: 5.234 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.001566/0.03245, allocations: 1.323 MB / 286.9 MB, free: 3.871 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.03249, allocations: 11.98 kB / 286.9 MB, free: 3.859 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002801/0.03277, allocations: 156.2 kB / 287 MB, free: 3.707 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006251/0.03339, allocations: 0.5855 MB / 287.6 MB, free: 3.098 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.0335, allocations: 156.1 kB / 287.8 MB, free: 2.918 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.367e-05/0.03359, allocations: 59.98 kB / 287.8 MB, free: 2.859 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008198/0.03441, allocations: 0.8577 MB / 288.7 MB, free: 1.898 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.03443, allocations: 4 kB / 288.7 MB, free: 1.895 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.237e-05/0.03448, allocations: 23.98 kB / 288.7 MB, free: 1.871 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.958e-05/0.03454, allocations: 53.27 kB / 288.7 MB, free: 1.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.0351, allocations: 359.5 kB / 289.1 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002973/0.03808, allocations: 2.316 MB / 291.4 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005068/0.03858, allocations: 340.6 kB / 291.7 MB, free: 14.75 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.0388, allocations: 149.1 kB / 291.9 MB, free: 14.6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001164/0.03996, allocations: 0.9624 MB / 292.9 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.03999, allocations: 45.88 kB / 292.9 MB, free: 13.56 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 1.623e-06/0.03999, allocations: 4 kB / 292.9 MB, free: 13.56 MB / 282.7 MB Notification: Performance of matching and sorting (n=66): time 0.003065/0.04306, allocations: 1.651 MB / 294.6 MB, free: 11.87 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.0431, allocations: 81.77 kB / 294.6 MB, free: 11.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004079/0.0435, allocations: 0.5532 MB / 295.2 MB, free: 11.2 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.573e-05/0.04355, allocations: 37.7 kB / 295.2 MB, free: 11.16 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.04373, allocations: 407.4 kB / 295.6 MB, free: 10.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.04386, allocations: 238 kB / 295.9 MB, free: 10.52 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.04403, allocations: 160.2 kB / 296 MB, free: 10.36 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.04418, allocations: 0.5586 MB / 296.6 MB, free: 9.785 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/0.04443, allocations: 147.6 kB / 296.7 MB, free: 9.637 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003372/0.04477, allocations: 389.9 kB / 297.1 MB, free: 9.168 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000575/0.04534, allocations: 0.5184 MB / 297.6 MB, free: 8.566 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.04534, allocations: 0 / 297.6 MB, free: 8.566 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009458/0.04629, allocations: 0.672 MB / 298.3 MB, free: 7.883 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.04631, allocations: 8 kB / 298.3 MB, free: 7.875 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.04631, allocations: 4 kB / 298.3 MB, free: 7.871 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009018/0.04722, allocations: 303.9 kB / 298.6 MB, free: 7.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003439/0.04756, allocations: 163.7 kB / 298.8 MB, free: 7.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005933/0.04815, allocations: 0.9442 MB / 299.7 MB, free: 6.434 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002402/0.04839, allocations: 31.98 kB / 299.7 MB, free: 6.402 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.876e-05/0.04844, allocations: 39.92 kB / 299.8 MB, free: 6.363 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000341/0.04878, allocations: 276.8 kB / 300 MB, free: 6.086 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003476/0.04913, allocations: 401.7 kB / 300.4 MB, free: 5.602 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005542/0.04968, allocations: 0.5142 MB / 300.9 MB, free: 5.004 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.096e-06/0.04969, allocations: 4 kB / 301 MB, free: 5 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0008638/0.05055, allocations: 0.6562 MB / 301.6 MB, free: 4.332 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.05056, allocations: 11.98 kB / 301.6 MB, free: 4.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.05057, allocations: 4 kB / 301.6 MB, free: 4.316 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003133/0.05088, allocations: 192.1 kB / 301.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003293/0.05121, allocations: 167.8 kB / 302 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005132/0.05172, allocations: 0.9167 MB / 302.9 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002786/0.052, allocations: 35.92 kB / 302.9 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.05204, allocations: 31.98 kB / 303 MB, free: 2.949 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.0001629/0.05221, allocations: 311.9 kB / 303.3 MB, free: 2.637 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.05232, allocations: 91.58 kB / 303.4 MB, free: 2.547 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009004/0.05322, allocations: 0.621 MB / 304 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.05322, allocations: 8 kB / 304 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.05323, allocations: 0 / 304 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.05324, allocations: 11.92 kB / 304 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.05468, allocations: 1.237 MB / 305.2 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.05468, allocations: 3.938 kB / 305.2 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002959/0.05498, allocations: 119.8 kB / 305.3 MB, free: 500 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008081/0.05579, allocations: 295.3 kB / 305.6 MB, free: 200 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.897e-05/0.05582, allocations: 19.98 kB / 305.7 MB, free: 180 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005641/0.05639, allocations: 0.952 MB / 306.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.05639, allocations: 4 kB / 306.6 MB, free: 15.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.05746, allocations: 0.874 MB / 307.5 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001937/0.05766, allocations: 151.5 kB / 307.6 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.713e-05/0.05772, allocations: 8 kB / 307.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.05796, allocations: 39.95 kB / 307.7 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.25e-05/0.05805, allocations: 48.56 kB / 307.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.0581, allocations: 35.97 kB / 307.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002548/0.05835, allocations: 350.8 kB / 308.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05835, allocations: 0 / 308.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001035/0.05939, allocations: 0.5809 MB / 308.7 MB, free: 13.1 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 (58): * Single equations (assignments): 57 * 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.0007818/0.06017, allocations: 0.5133 MB / 309.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.06145, allocations: 0.8059 MB / 310 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.06146, allocations: 3.859 kB / 310 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000407/0.06186, allocations: 276.6 kB / 310.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008989/0.06276, allocations: 373.6 kB / 310.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.06492, allocations: 1.425 MB / 312.1 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003157/0.06808, allocations: 201.1 kB / 312.3 MB, free: 9.445 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.00116/0.06924, allocations: 269.8 kB / 312.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.06946, allocations: 68.48 kB / 312.6 MB, free: 9.113 MB / 298.7 MB Notification: Performance of SimCode: time 2.294e-06/0.06946, allocations: 0 / 312.6 MB, free: 9.113 MB / 298.7 MB Notification: Performance of Templates: time 0.02539/0.09486, allocations: 22.07 MB / 334.7 MB, free: 3.031 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.183771994896233]