Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") Notification: Performance of loadModel(Modelica): time 1.634/1.634, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003468, allocations: 12 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0778/0.07817, allocations: 38.78 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks): time 0.03648/0.1147, allocations: 23.14 MB / 295.8 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2331/0.3478, allocations: 6.278 MB / 302.1 MB, free: 9.688 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001839/0.3497, allocations: 60.69 kB / 302.1 MB, free: 9.688 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00224/0.352, allocations: 0.5128 MB / 302.6 MB, free: 9.688 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004496/0.3565, allocations: 1.061 MB / 303.7 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006703/0.3633, allocations: 1.514 MB / 305.2 MB, free: 9.641 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006645/0.3699, allocations: 2.693 MB / 307.9 MB, free: 9.621 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0035/0.3735, allocations: 1.5 MB / 309.4 MB, free: 9.43 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0035/0.3771, allocations: 1.174 MB / 310.6 MB, free: 9.426 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002804/0.3799, allocations: 1.027 MB / 311.6 MB, free: 9.426 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007825/0.3807, allocations: 109.9 kB / 311.7 MB, free: 9.426 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003316/0.3841, allocations: 0.6413 MB / 312.3 MB, free: 9.422 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001093/0.3852, allocations: 0.5278 MB / 312.9 MB, free: 9.422 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.3863, allocations: 424.3 kB / 313.3 MB, free: 9.379 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005126/0.3914, allocations: 2.721 MB / 316 MB, free: 8.203 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3915, allocations: 0 / 316 MB, free: 8.203 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3915, allocations: 0 / 316 MB, free: 8.203 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.932e-05/0.3916, allocations: 0 / 316 MB, free: 8.203 MB / 250.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.006962/0.3986, allocations: 2.279 MB / 318.3 MB, free: 6.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.3986, allocations: 8.875 kB / 318.3 MB, free: 6.59 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00122/0.3999, allocations: 257.1 kB / 318.5 MB, free: 6.473 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002737/0.4026, allocations: 1.172 MB / 319.7 MB, free: 5.867 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002764/0.4029, allocations: 294.8 kB / 320 MB, free: 5.734 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004653/0.4034, allocations: 210.8 kB / 320.2 MB, free: 5.73 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006235/0.4096, allocations: 2.608 MB / 322.8 MB, free: 4.828 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.016e-05/0.4097, allocations: 7.375 kB / 322.8 MB, free: 4.824 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003442/0.4101, allocations: 85.55 kB / 322.9 MB, free: 4.824 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001618/0.4103, allocations: 95.33 kB / 323 MB, free: 4.812 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005775/0.4161, allocations: 2.142 MB / 325.1 MB, free: 4.445 MB / 250.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.02089/0.437, allocations: 10.92 MB / 336.1 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004127/0.4411, allocations: 1.732 MB / 337.8 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01139/0.4525, allocations: 4.571 MB / 342.4 MB, free: 4.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003241/0.4558, allocations: 1.361 MB / 343.7 MB, free: 3.559 MB / 266.7 MB Notification: Performance of pre-optimization done (n=187): time 7.033e-06/0.4559, allocations: 4 kB / 343.7 MB, free: 3.555 MB / 266.7 MB Notification: Performance of matching and sorting (n=197): time 0.02236/0.4782, allocations: 6.799 MB / 350.5 MB, free: 12.44 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003322/0.4786, allocations: 0.5374 MB / 351.1 MB, free: 11.79 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002356/0.481, allocations: 1.181 MB / 352.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005116/0.4815, allocations: 113.7 kB / 352.4 MB, free: 10.48 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009745/0.4825, allocations: 0.8133 MB / 353.2 MB, free: 9.68 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009422/0.4835, allocations: 0.5563 MB / 353.7 MB, free: 9.133 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/0.4837, allocations: 50.52 kB / 353.8 MB, free: 9.086 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002662/0.484, allocations: 411.2 kB / 354.2 MB, free: 8.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002783/0.4868, allocations: 0.8678 MB / 355.1 MB, free: 7.809 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003417/0.4902, allocations: 1.518 MB / 356.6 MB, free: 6.012 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003155/0.4934, allocations: 1.207 MB / 357.8 MB, free: 4.758 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.77e-05/0.4934, allocations: 4 kB / 357.8 MB, free: 4.754 MB / 282.7 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.009007/0.5024, allocations: 3.144 MB / 360.9 MB, free: 1.543 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008083/0.5033, allocations: 0.9098 MB / 361.8 MB, free: 312 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.675e-05/0.5034, allocations: 16 kB / 361.9 MB, free: 296 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002147/0.5055, allocations: 0.5969 MB / 362.5 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002643/0.5082, allocations: 381.8 kB / 362.8 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003616/0.5118, allocations: 2.261 MB / 365.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002654/0.5145, allocations: 147.8 kB / 365.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003713/0.5149, allocations: 124 kB / 365.4 MB, free: 12.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.5149, allocations: 4 kB / 365.4 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00849/0.5234, allocations: 2.982 MB / 368.3 MB, free: 9.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.276e-05/0.5235, allocations: 20 kB / 368.4 MB, free: 9.645 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001581/0.5251, allocations: 467.1 kB / 368.8 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002521/0.5276, allocations: 371.2 kB / 369.2 MB, free: 8.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/0.5378, allocations: 5.961 MB / 375.1 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002432/0.5403, allocations: 139.9 kB / 375.3 MB, free: 2.336 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003604/0.5407, allocations: 124.4 kB / 375.4 MB, free: 2.215 MB / 298.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.001994/0.5427, allocations: 0.8978 MB / 376.3 MB, free: 1.258 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004969/0.5432, allocations: 170 kB / 376.5 MB, free: 1.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009547/0.5527, allocations: 3.116 MB / 379.6 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.391e-05/0.5528, allocations: 11.95 kB / 379.6 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.5528, allocations: 0 / 379.6 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001579/0.5544, allocations: 0.4908 MB / 380.1 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006156/0.5551, allocations: 59.98 kB / 380.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001965/0.557, allocations: 139.8 kB / 380.3 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008623/0.5579, allocations: 264.3 kB / 380.5 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01043/0.5684, allocations: 3.129 MB / 383.7 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0109/0.5793, allocations: 3.814 MB / 387.5 MB, free: 5.859 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003008/0.5824, allocations: 1.124 MB / 388.6 MB, free: 4.734 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001557/0.584, allocations: 0.7036 MB / 389.3 MB, free: 4.027 MB / 314.7 MB Notification: Performance of Backend: time 5.01e-07/0.584, allocations: 4 kB / 389.3 MB, free: 4.023 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.01332/0.5973, allocations: 4.685 MB / 394 MB, free: 15.12 MB / 330.7 MB Notification: Performance of SimCode: time 0.01141/0.6088, allocations: 4.997 MB / 399 MB, free: 10 MB / 330.7 MB Notification: Performance of Templates: time 0.3288/0.9377, allocations: 42.98 MB / 442 MB, free: 131.2 MB / 362.7 MB