Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") 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.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001063, allocations: 106.2 kB / 18.4 MB, free: 4.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009919/0.0009919, allocations: 185.5 kB / 19.34 MB, free: 3.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.259/1.259, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 55.92 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0716/0.07282, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks): time 0.1693/0.2422, allocations: 27.72 MB / 403.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01106/0.2533, allocations: 7.315 MB / 410.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001554/0.2549, allocations: 51.81 kB / 410.9 MB, free: 6.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002523/0.2574, allocations: 1.014 MB / 411.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003785/0.2612, allocations: 1.576 MB / 413.5 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005216/0.2664, allocations: 2.215 MB / 415.7 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005759/0.2722, allocations: 4.961 MB / 420.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003035/0.2753, allocations: 2.042 MB / 422.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003146/0.2784, allocations: 1.757 MB / 424.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002701/0.2811, allocations: 1.633 MB / 426.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007817/0.2819, allocations: 304.2 kB / 426.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002543/0.2845, allocations: 0.9246 MB / 427.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00111/0.2856, allocations: 0.8336 MB / 428.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001981/0.2876, allocations: 1.357 MB / 429.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004957/0.2926, allocations: 4.169 MB / 433.7 MB, free: 5.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2926, allocations: 0 / 433.7 MB, free: 5.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2926, allocations: 0 / 433.7 MB, free: 5.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.879e-05/0.2927, allocations: 0 / 433.7 MB, free: 5.527 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 521 * Number of variables: 521 Notification: Performance of Generate backend data structure: time 0.005456/0.2982, allocations: 3.075 MB / 436.8 MB, free: 2.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2982, allocations: 8.031 kB / 436.8 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007655/0.299, allocations: 307.2 kB / 437.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002105/0.3011, allocations: 1.457 MB / 438.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002429/0.3014, allocations: 311.3 kB / 438.8 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003194/0.3017, allocations: 212 kB / 439.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004289/0.306, allocations: 2.737 MB / 441.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.014e-05/0.306, allocations: 4 kB / 441.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002047/0.3063, allocations: 91.92 kB / 441.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.916e-05/0.3064, allocations: 99.69 kB / 442 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003765/0.3101, allocations: 2.185 MB / 444.2 MB, free: 10.69 MB / 366.1 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.01141/0.3216, allocations: 10.22 MB / 454.4 MB, free: 96 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002674/0.3242, allocations: 1.887 MB / 456.3 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/0.3258, allocations: 1.021 MB / 457.3 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006334/0.3322, allocations: 4.712 MB / 462 MB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002086/0.3343, allocations: 1.431 MB / 463.4 MB, free: 6.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=193): time 3.276e-06/0.3343, allocations: 0 / 463.4 MB, free: 6.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=203): time 0.01255/0.3468, allocations: 6.237 MB / 469.7 MB, free: 196 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002414/0.3471, allocations: 0.5546 MB / 470.2 MB, free: 15.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/0.3491, allocations: 1.647 MB / 471.9 MB, free: 13.86 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002006/0.3493, allocations: 113.7 kB / 472 MB, free: 13.74 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006574/0.35, allocations: 0.9179 MB / 472.9 MB, free: 12.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004821/0.3505, allocations: 0.5929 MB / 473.5 MB, free: 12.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007561/0.3512, allocations: 0.5558 MB / 474.1 MB, free: 11.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.478e-05/0.3513, allocations: 305.1 kB / 474.4 MB, free: 11.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001638/0.353, allocations: 0.9186 MB / 475.3 MB, free: 10.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002107/0.3551, allocations: 1.593 MB / 476.9 MB, free: 8.555 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003388/0.3585, allocations: 2.422 MB / 479.3 MB, free: 5.863 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.3585, allocations: 8 kB / 479.3 MB, free: 5.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=332) (initialization): time 0.005291/0.3638, allocations: 3.061 MB / 482.4 MB, free: 2.758 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.759e-05/0.3639, allocations: 101.1 kB / 482.5 MB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/0.3639, allocations: 16 kB / 482.5 MB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00123/0.3652, allocations: 0.5764 MB / 483 MB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.3666, allocations: 399.2 kB / 483.4 MB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.3688, allocations: 2.254 MB / 485.7 MB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.3702, allocations: 124 kB / 485.8 MB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002208/0.3704, allocations: 128 kB / 485.9 MB, free: 15.07 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * 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,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition12,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition11,$PRE.shut.table.combiTimeTable.nextTimeEvent,$whenCondition10,shut.table.combiTimeTable.nextTimeEventScaled,$PRE.shut.table.combiTimeTable.nextTimeEventScaled,shut.table.combiTimeTable.nextTimeEvent,shut.table.y,$PRE.shut.table.y,$PRE.shut.reset[2],$PRE.shut.reset[1],$whenCondition9,$whenCondition7,$whenCondition8,stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[2],$PRE.stop.reset[1],$whenCondition6,$whenCondition4,$whenCondition5,start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[2],$PRE.start.reset[1],$whenCondition3,$whenCondition1,$whenCondition2,tankController.stateGraphRoot.resume,tankController.stateGraphRoot.suspend,tankController.normal.T4.condition,tankController.normal.T2.condition,tank2.inFlow[2],tank2.inFlow[1],tank2.regularFlow[2],tank2.regularFlow[1],tank1.inFlow[2],tank1.inFlow[1],tank1.regularFlow[2],tank1.regularFlow[1],shut.on,$PRE.shut.on,shut.reset[2],shut.reset[1],stop.on,$PRE.stop.on,stop.reset[2],stop.reset[1],start.on,$PRE.start.on,start.reset[2],start.reset[1],tankController.stateGraphRoot.activeSteps,tankController.valve3,tankController.valve2,tankController.T6.enableFire,tankController.T6.localCondition,tankController.emptyTanks.oldActive,$PRE.tankController.emptyTanks.oldActive,tankController.emptyTanks.newActive,$PRE.tankController.emptyTanks.newActive,tankController.emptyTanks.localActive,$PRE.tankController.emptyTanks.localActive,tankController.emptyTanks.active,tankController.T5.enableFire,tankController.T4.enableFire,tankController.s2.oldActive,$PRE.tankController.s2.oldActive,tankController.s2.newActive,$PRE.tankController.s2.newActive,tankController.s2.outPort[2].available,tankController.s2.localActive,$PRE.tankController.s2.localActive,tankController.s2.active,tankController.T3.enableFire,tankController.T2.enableFire,tankController.T2.localCondition,tankController.T1.enableFire,tankController.normal.T4.t_start,$PRE.tankController.normal.T4.t_start,tankController.normal.T4.fire,tankController.normal.T4.enableFire,tankController.normal.wait2.oldActive,$PRE.tankController.normal.wait2.oldActive,tankController.normal.wait2.newActive,$PRE.tankController.normal.wait2.newActive,tankController.normal.wait2.localActive,$PRE.tankController.normal.wait2.localActive,tankController.normal.wait2.active,tankController.normal.T2.t_start,$PRE.tankController.normal.T2.t_start,tankController.normal.T2.fire,tankController.normal.T2.enableFire,tankController.normal.wait1.oldActive,$PRE.tankController.normal.wait1.oldActive,tankController.normal.wait1.newActive,$PRE.tankController.normal.wait1.newActive,tankController.normal.wait1.localActive,$PRE.tankController.normal.wait1.localActive,tankController.normal.wait1.active,tankController.normal.emptyTank2.oldActive,$PRE.tankController.normal.emptyTank2.oldActive,tankController.normal.emptyTank2.newActive,$PRE.tankController.normal.emptyTank2.newActive,tankController.normal.emptyTank2.localActive,$PRE.tankController.normal.emptyTank2.localActive,tankController.normal.emptyTank2.active,tankController.normal.T3.enableFire,tankController.normal.T3.localCondition,tankController.normal.fillTank2.oldActive,$PRE.tankController.normal.fillTank2.oldActive,tankController.normal.fillTank2.newActive,$PRE.tankController.normal.fillTank2.newActive,tankController.normal.fillTank2.localActive,$PRE.tankController.normal.fillTank2.localActive,tankController.normal.fillTank2.active,tankController.normal.T1.enableFire,tankController.normal.T1.localCondition,tankController.normal.fillTank1.oldActive,$PRE.tankController.normal.fillTank1.oldActive,tankController.normal.fillTank1.newActive,$PRE.tankController.normal.fillTank1.newActive,tankController.normal.fillTank1.localActive,$PRE.tankController.normal.fillTank1.localActive,tankController.normal.fillTank1.active,tankController.normal.activeSteps,tankController.normal.newActive,$PRE.tankController.normal.newActive,tankController.normal.active,tankController.normal.stateGraphRoot.resume,tankController.normal.stateGraphRoot.suspend,tankController.s1.oldActive,$PRE.tankController.s1.oldActive,tankController.s1.newActive,$PRE.tankController.s1.newActive,tankController.s1.inPort[2].occupied,tankController.s1.localActive,$PRE.tankController.s1.localActive,tankController.s1.active,$whenCondition13,$whenCondition14,$whenCondition15) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (311): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,3), (4,4), (2,3)} Notification: Performance of prepare postOptimizeDAE: time 0.00113/0.3715, allocations: 0.7637 MB / 486.7 MB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000381/0.3719, allocations: 210.7 kB / 486.9 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005638/0.3776, allocations: 3.023 MB / 489.9 MB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-05/0.3776, allocations: 7.969 kB / 489.9 MB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.3776, allocations: 7.984 kB / 489.9 MB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008893/0.3785, allocations: 0.5344 MB / 490.5 MB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004046/0.3789, allocations: 59.98 kB / 490.5 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.38, allocations: 95.92 kB / 490.6 MB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005336/0.3806, allocations: 249.6 kB / 490.9 MB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005266/0.3859, allocations: 2.862 MB / 493.7 MB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006132/0.392, allocations: 3.804 MB / 497.5 MB, free: 3.246 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001704/0.3937, allocations: 1.132 MB / 498.7 MB, free: 2.113 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001408/0.3951, allocations: 1.039 MB / 499.7 MB, free: 1.078 MB / 414.1 MB Notification: Performance of Backend: time 4.91e-07/0.3952, allocations: 8 kB / 499.7 MB, free: 1.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00563/0.4008, allocations: 2.491 MB / 0.4904 GB, free: 14.55 MB / 430.1 MB Notification: Performance of SimCode: time 0.00692/0.4077, allocations: 4.807 MB / 0.4951 GB, free: 9.629 MB / 430.1 MB Notification: Performance of Templates: time 0.06716/0.4749, allocations: 44.1 MB / 0.5382 GB, free: 13.43 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.pipe 2>&1)