Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|shut.on|shut.reset.1.|shut.reset.2.|start.on|start.reset.1.|start.reset.2.|stop.on|stop.reset.1.|stop.reset.2.|tankController.T1.enableFire|tankController.T2.enableFire|tankController.T3.enableFire|tankController.T4.enableFire|tankController.T5.enableFire|tankController.T6.enableFire|tankController.normal.T1.enableFire|tankController.normal.T2.enableFire|tankController.normal.T3.enableFire|tankController.normal.T4.enableFire",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") Notification: Performance of loadModel(Modelica): time 2.11/2.11, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.000354, allocations: 15.94 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08994/0.09032, allocations: 44.52 MB / 309.1 MB, free: 356 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks): time 0.03889/0.1293, allocations: 23.15 MB / 332.2 MB, free: 9.121 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01497/0.1443, allocations: 6.294 MB / 338.5 MB, free: 2.82 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002074/0.1464, allocations: 67.5 kB / 338.6 MB, free: 2.754 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002507/0.149, allocations: 0.5009 MB / 339.1 MB, free: 2.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004763/0.1538, allocations: 1.055 MB / 340.1 MB, free: 1.191 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006954/0.1608, allocations: 1.517 MB / 341.6 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006154/0.167, allocations: 2.677 MB / 344.3 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003396/0.1704, allocations: 1.495 MB / 345.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003266/0.1737, allocations: 1.176 MB / 347 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002495/0.1763, allocations: 1.035 MB / 348 MB, free: 9.238 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007032/0.177, allocations: 112 kB / 348.1 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00289/0.1799, allocations: 0.6438 MB / 348.8 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001198/0.1812, allocations: 0.5257 MB / 349.3 MB, free: 7.957 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008704/0.1821, allocations: 420.6 kB / 349.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005236/0.1873, allocations: 2.716 MB / 352.4 MB, free: 4.816 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1874, allocations: 0 / 352.4 MB, free: 4.816 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1874, allocations: 0 / 352.4 MB, free: 4.816 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001047/0.1875, allocations: 0 / 352.4 MB, free: 4.816 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 500 * Number of variables: 500 Notification: Performance of Generate backend data structure: time 0.007558/0.1951, allocations: 2.291 MB / 354.7 MB, free: 2.402 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.1952, allocations: 12.03 kB / 354.7 MB, free: 2.391 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001385/0.1965, allocations: 253.4 kB / 355 MB, free: 2.141 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003327/0.1999, allocations: 1.149 MB / 356.1 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000419/0.2004, allocations: 295 kB / 356.4 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005996/0.201, allocations: 215.9 kB / 356.6 MB, free: 436 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007489/0.2085, allocations: 2.604 MB / 359.2 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.785e-05/0.2086, allocations: 11.88 kB / 359.2 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003523/0.209, allocations: 84 kB / 359.3 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001738/0.2092, allocations: 95.48 kB / 359.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006977/0.2161, allocations: 2.149 MB / 361.6 MB, free: 11.35 MB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02563/0.2418, allocations: 10.91 MB / 372.5 MB, free: 40 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2425/0.4844, allocations: 1.728 MB / 374.2 MB, free: 62.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01209/0.4965, allocations: 4.579 MB / 378.8 MB, free: 59.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003463/0.5, allocations: 1.363 MB / 380.2 MB, free: 59.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=187): time 7.685e-06/0.5001, allocations: 1.406 kB / 380.2 MB, free: 59.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=197): time 0.02214/0.5222, allocations: 6.818 MB / 387 MB, free: 55.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002368/0.5225, allocations: 0.5324 MB / 387.5 MB, free: 54.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.5247, allocations: 1.179 MB / 388.7 MB, free: 54.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005506/0.5253, allocations: 116.4 kB / 388.8 MB, free: 54.35 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007856/0.5261, allocations: 0.8156 MB / 389.6 MB, free: 53.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008665/0.527, allocations: 0.5555 MB / 390.2 MB, free: 53.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002118/0.5272, allocations: 51.91 kB / 390.2 MB, free: 53.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.5274, allocations: 412.1 kB / 390.6 MB, free: 52.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002377/0.5298, allocations: 0.8626 MB / 391.5 MB, free: 52.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002791/0.5326, allocations: 1.519 MB / 393 MB, free: 51.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002764/0.5354, allocations: 1.203 MB / 394.2 MB, free: 50.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.952e-05/0.5355, allocations: 11.44 kB / 394.2 MB, free: 50.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.007944/0.5434, allocations: 3.138 MB / 397.4 MB, free: 48.6 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000434/0.5439, allocations: 0.9176 MB / 398.3 MB, free: 47.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.019e-05/0.5439, allocations: 18.47 kB / 398.3 MB, free: 47.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001818/0.5458, allocations: 0.5882 MB / 398.9 MB, free: 46.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002487/0.5483, allocations: 375.2 kB / 399.2 MB, free: 46.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002953/0.5512, allocations: 2.262 MB / 401.5 MB, free: 44.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002564/0.5538, allocations: 153.6 kB / 401.7 MB, free: 44.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004115/0.5543, allocations: 131 kB / 401.8 MB, free: 43.92 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.5543, allocations: 4 kB / 401.8 MB, free: 43.91 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007631/0.562, allocations: 2.971 MB / 404.8 MB, free: 40.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.59e-05/0.562, allocations: 20.22 kB / 404.8 MB, free: 40.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001412/0.5635, allocations: 463.1 kB / 405.2 MB, free: 40.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002444/0.5659, allocations: 379.2 kB / 405.6 MB, free: 40.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008167/0.5741, allocations: 5.958 MB / 411.6 MB, free: 33.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/0.5765, allocations: 139.9 kB / 411.7 MB, free: 33.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003218/0.5769, allocations: 120 kB / 411.8 MB, free: 33.44 MB / 314.7 MB Warning: Assuming fixed start value for the following 3 variables: shut.on:DISCRETE(flow=false fixed = true ) type: Boolean stop.on:DISCRETE(flow=false fixed = true ) type: Boolean start.on:DISCRETE(flow=false fixed = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 88 * Number of states: 0 () * Number of discrete variables: 160 ($PRE.tankController.normal.T1.enableFire,$PRE.tankController.normal.T3.enableFire,$PRE.tankController.normal.T2.enableFire,$PRE.tankController.normal.T4.enableFire,$PRE.tankController.T1.enableFire,$PRE.tankController.T2.enableFire,$PRE.tankController.T3.enableFire,$PRE.tankController.T4.enableFire,$PRE.tankController.T5.enableFire,$PRE.tankController.T6.enableFire,$whenCondition13,$whenCondition12,$whenCondition14,$whenCondition15,$PRE.start.reset[1],$PRE.start.reset[2],$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,$whenCondition9,$whenCondition8,$whenCondition10,$whenCondition11,$PRE.stop.reset[1],$PRE.stop.reset[2],$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition7,$PRE.shut.reset[1],$PRE.shut.reset[2],$PRE.shut.table.y,shut.table.y,$PRE.shut.table.nextTime,shut.table.nextTime,$PRE.shut.table.index,shut.table.index,tankController.stateGraphRoot.resume,tankController.stateGraphRoot.suspend,tankController.normal.T4.condition,tankController.normal.T2.condition,$whenCondition3,$whenCondition2,$whenCondition1,tankController.s1.active,$PRE.tankController.s1.localActive,tankController.s1.localActive,tankController.s1.inPort[2].occupied,$PRE.tankController.s1.newActive,tankController.s1.newActive,$PRE.tankController.s1.oldActive,tankController.s1.oldActive,tankController.normal.stateGraphRoot.suspend,tankController.normal.stateGraphRoot.resume,tankController.normal.active,$PRE.tankController.normal.newActive,tankController.normal.newActive,tankController.normal.activeSteps,tankController.normal.fillTank1.active,$PRE.tankController.normal.fillTank1.localActive,tankController.normal.fillTank1.localActive,$PRE.tankController.normal.fillTank1.newActive,tankController.normal.fillTank1.newActive,$PRE.tankController.normal.fillTank1.oldActive,tankController.normal.fillTank1.oldActive,tankController.normal.T1.condition,tankController.normal.T1.enableFire,tankController.normal.fillTank2.active,$PRE.tankController.normal.fillTank2.localActive,tankController.normal.fillTank2.localActive,$PRE.tankController.normal.fillTank2.newActive,tankController.normal.fillTank2.newActive,$PRE.tankController.normal.fillTank2.oldActive,tankController.normal.fillTank2.oldActive,tankController.normal.T3.condition,tankController.normal.T3.enableFire,tankController.normal.emptyTank2.active,$PRE.tankController.normal.emptyTank2.localActive,tankController.normal.emptyTank2.localActive,$PRE.tankController.normal.emptyTank2.newActive,tankController.normal.emptyTank2.newActive,$PRE.tankController.normal.emptyTank2.oldActive,tankController.normal.emptyTank2.oldActive,tankController.normal.wait1.active,$PRE.tankController.normal.wait1.localActive,tankController.normal.wait1.localActive,$PRE.tankController.normal.wait1.newActive,tankController.normal.wait1.newActive,$PRE.tankController.normal.wait1.oldActive,tankController.normal.wait1.oldActive,tankController.normal.T2.enableFire,tankController.normal.T2.fire,$PRE.tankController.normal.T2.t_start,tankController.normal.T2.t_start,tankController.normal.wait2.active,$PRE.tankController.normal.wait2.localActive,tankController.normal.wait2.localActive,$PRE.tankController.normal.wait2.newActive,tankController.normal.wait2.newActive,$PRE.tankController.normal.wait2.oldActive,tankController.normal.wait2.oldActive,tankController.normal.T4.enableFire,tankController.normal.T4.fire,$PRE.tankController.normal.T4.t_start,tankController.normal.T4.t_start,tankController.T1.enableFire,tankController.T2.condition,tankController.T2.enableFire,tankController.T3.enableFire,tankController.s2.active,$PRE.tankController.s2.localActive,tankController.s2.localActive,tankController.s2.outPort[2].available,$PRE.tankController.s2.newActive,tankController.s2.newActive,$PRE.tankController.s2.oldActive,tankController.s2.oldActive,tankController.T4.enableFire,tankController.T5.enableFire,tankController.emptyTanks.active,$PRE.tankController.emptyTanks.localActive,tankController.emptyTanks.localActive,$PRE.tankController.emptyTanks.newActive,tankController.emptyTanks.newActive,$PRE.tankController.emptyTanks.oldActive,tankController.emptyTanks.oldActive,tankController.T6.condition,tankController.T6.enableFire,tankController.valve2,tankController.valve3,tankController.stateGraphRoot.activeSteps,start.reset[1],start.reset[2],$PRE.start.on,start.on,stop.reset[1],stop.reset[2],$PRE.stop.on,stop.on,shut.reset[1],shut.reset[2],$PRE.shut.on,shut.on,tank1.regularFlow[1],tank1.regularFlow[2],tank1.inFlow[1],tank1.inFlow[2],tank2.regularFlow[1],tank2.regularFlow[2],tank2.inFlow[1],tank2.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (307): * Single equations (assignments): 295 * Array equations: 0 * Algorithm blocks: 9 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 3,4 4,2 3} Notification: Performance of prepare postOptimizeDAE: time 0.001721/0.5786, allocations: 0.8895 MB / 412.7 MB, free: 32.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004645/0.5791, allocations: 170 kB / 412.9 MB, free: 32.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008218/0.5873, allocations: 3.12 MB / 416 MB, free: 29.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-05/0.5874, allocations: 11.95 kB / 416 MB, free: 29.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.5874, allocations: 4 kB / 416 MB, free: 29.13 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001334/0.5887, allocations: 498.6 kB / 416.5 MB, free: 28.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005923/0.5894, allocations: 67.98 kB / 416.6 MB, free: 28.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001967/0.5913, allocations: 127.8 kB / 416.7 MB, free: 28.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007646/0.5921, allocations: 270.6 kB / 416.9 MB, free: 28.16 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008352/0.6005, allocations: 3.127 MB / 420.1 MB, free: 24.95 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.009304/0.6099, allocations: 3.824 MB / 423.9 MB, free: 21.07 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002665/0.6126, allocations: 1.12 MB / 425 MB, free: 19.96 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001239/0.6138, allocations: 0.7054 MB / 425.7 MB, free: 19.25 MB / 314.7 MB Notification: Performance of Backend: time 6.11e-07/0.6139, allocations: 0 / 425.7 MB, free: 19.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.01129/0.6252, allocations: 4.681 MB / 430.4 MB, free: 14.37 MB / 314.7 MB Notification: Performance of SimCode: time 0.009343/0.6345, allocations: 5.008 MB / 435.4 MB, free: 9.23 MB / 314.7 MB Notification: Performance of Templates: time 0.1153/0.7499, allocations: 42.98 MB / 478.4 MB, free: 14.24 MB / 362.7 MB