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.0009537/0.0009537, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.0009223/0.0009223, allocations: 163.9 kB / 25.7 MB, free: 8.43 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.8605/0.8605, allocations: 158.6 MB / 187.6 MB, free: 2.773 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 1.773e-06/1.773e-06, allocations: 0 / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/2.15e-05, allocations: 6.25 kB / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.009854/0.009876, allocations: 7.955 MB / 259.5 MB, free: 15.27 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007477/0.01735, allocations: 5.549 MB / 265 MB, free: 9.711 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003888/0.01774, allocations: 27.75 kB / 265 MB, free: 9.684 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000496/0.01824, allocations: 246.3 kB / 265.3 MB, free: 9.441 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001507/0.01974, allocations: 1.053 MB / 266.3 MB, free: 8.383 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002429/0.02217, allocations: 1.855 MB / 268.2 MB, free: 6.523 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00159/0.02376, allocations: 2.126 MB / 270.3 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005457/0.02431, allocations: 0.5612 MB / 270.9 MB, free: 3.812 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009859/0.02529, allocations: 1.056 MB / 271.9 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006726/0.02597, allocations: 0.6934 MB / 272.6 MB, free: 2.059 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.02607, allocations: 76 kB / 272.7 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001103/0.02717, allocations: 0.897 MB / 273.6 MB, free: 1.086 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002348/0.02741, allocations: 343 kB / 273.9 MB, free: 0.75 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000253/0.02766, allocations: 331.2 kB / 274.3 MB, free: 436 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001392/0.02905, allocations: 1.535 MB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.02906, allocations: 0 / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.02906, allocations: 0 / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.774e-06/0.02906, allocations: 0 / 275.8 MB, free: 14.89 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.001369/0.03043, allocations: 1.144 MB / 276.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.03046, allocations: 11.98 kB / 277 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002242/0.03069, allocations: 132.6 kB / 277.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.03124, allocations: 0.4958 MB / 277.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.537e-05/0.03134, allocations: 160.1 kB / 277.7 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.073e-05/0.03142, allocations: 59.98 kB / 277.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006203/0.03204, allocations: 0.8047 MB / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.03205, allocations: 0 / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.898e-05/0.0321, allocations: 27.98 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.459e-05/0.03215, allocations: 49.28 kB / 278.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000354/0.03251, allocations: 269 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.03465, allocations: 1.651 MB / 280.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000377/0.03503, allocations: 333.8 kB / 280.9 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.03517, allocations: 106.3 kB / 281 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001012/0.03618, allocations: 0.7776 MB / 281.8 MB, free: 8.648 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.0362, allocations: 43.06 kB / 281.8 MB, free: 8.598 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.563e-06/0.03621, allocations: 4 kB / 281.8 MB, free: 8.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002556/0.03876, allocations: 1.422 MB / 283.3 MB, free: 7.141 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.0388, allocations: 81.77 kB / 283.3 MB, free: 7.043 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003377/0.03913, allocations: 488.6 kB / 283.8 MB, free: 6.551 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.793e-05/0.03919, allocations: 37.7 kB / 283.9 MB, free: 6.508 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/0.03937, allocations: 301.9 kB / 284.1 MB, free: 6.207 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.03949, allocations: 230 kB / 284.4 MB, free: 5.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.03964, allocations: 146.5 kB / 284.5 MB, free: 5.828 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.03975, allocations: 382.6 kB / 284.9 MB, free: 5.445 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.0399, allocations: 107.6 kB / 285 MB, free: 5.336 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/0.04012, allocations: 289.3 kB / 285.3 MB, free: 4.988 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003773/0.04049, allocations: 414.5 kB / 285.7 MB, free: 4.523 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.0405, allocations: 4 kB / 285.7 MB, free: 4.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006005/0.0411, allocations: 479.5 kB / 286.2 MB, free: 4.039 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.04112, allocations: 8 kB / 286.2 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.04113, allocations: 7.984 kB / 286.2 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005465/0.04167, allocations: 287.5 kB / 286.5 MB, free: 3.742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003145/0.04199, allocations: 159.7 kB / 286.6 MB, free: 3.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004431/0.04243, allocations: 0.6475 MB / 287.3 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.04264, allocations: 27.98 kB / 287.3 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/0.04268, allocations: 23.98 kB / 287.3 MB, free: 2.859 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002183/0.0429, allocations: 195.8 kB / 287.5 MB, free: 2.664 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002068/0.0431, allocations: 282.3 kB / 287.8 MB, free: 2.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003627/0.04347, allocations: 424.6 kB / 288.2 MB, free: 1.844 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.953e-06/0.04347, allocations: 0 / 288.2 MB, free: 1.844 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0005532/0.04402, allocations: 479.3 kB / 288.7 MB, free: 1.363 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-06/0.04403, allocations: 8 kB / 288.7 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.04404, allocations: 8 kB / 288.7 MB, free: 1.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002876/0.04432, allocations: 191.9 kB / 288.9 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003071/0.04463, allocations: 155.8 kB / 289 MB, free: 1.004 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003557/0.04499, allocations: 0.6203 MB / 289.6 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.04519, allocations: 24 kB / 289.7 MB, free: 340 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/0.04523, allocations: 31.92 kB / 289.7 MB, free: 308 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.0001366/0.04537, allocations: 228 kB / 289.9 MB, free: 72 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.448e-05/0.04545, allocations: 67.92 kB / 290 MB, free: 4 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006231/0.04608, allocations: 463.6 kB / 290.4 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.04608, allocations: 8 kB / 290.4 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-06/0.04608, allocations: 0 / 290.4 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.04609, allocations: 15.95 kB / 290.5 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.04712, allocations: 0.8794 MB / 291.3 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.04713, allocations: 0 / 291.3 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/0.04739, allocations: 107.9 kB / 291.4 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004598/0.04785, allocations: 267.4 kB / 291.7 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/0.04788, allocations: 23.92 kB / 291.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004107/0.04829, allocations: 0.6697 MB / 292.4 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.04829, allocations: 0 / 292.4 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006813/0.04898, allocations: 0.6568 MB / 293 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.04913, allocations: 99.48 kB / 293.1 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.588e-05/0.0492, allocations: 15.98 kB / 293.2 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.04941, allocations: 27.98 kB / 293.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.433e-05/0.04948, allocations: 48.56 kB / 293.2 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.693e-05/0.04952, allocations: 19.97 kB / 293.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001479/0.04967, allocations: 208.4 kB / 293.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04967, allocations: 0 / 293.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008036/0.05047, allocations: 0.5537 MB / 294 MB, free: 11.86 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.000619/0.05109, allocations: 429.1 kB / 294.4 MB, free: 11.44 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008785/0.05197, allocations: 0.6316 MB / 295.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.375e-06/0.05198, allocations: 7.938 kB / 295.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002918/0.05227, allocations: 221.7 kB / 295.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007617/0.05303, allocations: 380.8 kB / 295.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/0.0549, allocations: 1.347 MB / 297 MB, free: 8.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.05502, allocations: 192.6 kB / 297.2 MB, free: 8.613 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003771/0.0554, allocations: 162 kB / 297.4 MB, free: 8.453 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005621/0.05596, allocations: 313 kB / 297.7 MB, free: 8.148 MB / 282.7 MB Notification: Performance of SimCode: time 1.012e-06/0.05596, allocations: 0 / 297.7 MB, free: 8.148 MB / 282.7 MB Notification: Performance of Templates: time 0.02185/0.07781, allocations: 22.78 MB / 320.4 MB, free: 1.363 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 -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: 2.9671881068497896]