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.001536/0.001536, allocations: 107.3 kB / 18.4 MB, free: 4.699 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.001781/0.001781, allocations: 187.3 kB / 19.34 MB, free: 3.777 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.25/1.25, 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.001139/0.001139, allocations: 51.92 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07084/0.07199, allocations: 46.61 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks): time 0.1593/0.2313, allocations: 27.73 MB / 403.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.242, allocations: 7.316 MB / 410.9 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009461/0.243, allocations: 51.44 kB / 410.9 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002083/0.2451, allocations: 1.016 MB / 411.9 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002777/0.2479, allocations: 1.535 MB / 413.5 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004461/0.2524, allocations: 2.208 MB / 415.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004634/0.257, allocations: 4.982 MB / 420.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002409/0.2595, allocations: 2.059 MB / 422.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002045/0.2615, allocations: 1.751 MB / 424.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001812/0.2633, allocations: 1.628 MB / 426.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000397/0.2638, allocations: 305.2 kB / 426.4 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001816/0.2656, allocations: 0.9259 MB / 427.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006914/0.2663, allocations: 0.8297 MB / 428.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.2674, allocations: 1.361 MB / 429.5 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003656/0.2711, allocations: 4.155 MB / 433.7 MB, free: 5.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2711, allocations: 3.938 kB / 433.7 MB, free: 5.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2711, allocations: 0 / 433.7 MB, free: 5.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.567e-05/0.2712, allocations: 0 / 433.7 MB, free: 5.582 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.005092/0.2763, allocations: 3.005 MB / 436.7 MB, free: 2.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.2763, allocations: 8.031 kB / 436.7 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000754/0.2771, allocations: 289.8 kB / 437 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002083/0.2792, allocations: 1.448 MB / 438.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002478/0.2794, allocations: 307.3 kB / 438.7 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003209/0.2798, allocations: 215.9 kB / 438.9 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004176/0.2839, allocations: 2.734 MB / 441.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.486e-05/0.284, allocations: 7.938 kB / 441.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002187/0.2842, allocations: 88 kB / 441.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001122/0.2844, allocations: 99.69 kB / 441.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003614/0.288, allocations: 2.192 MB / 444 MB, free: 10.84 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.01159/0.2996, allocations: 10.19 MB / 454.2 MB, free: 276 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002693/0.3023, allocations: 1.899 MB / 456.1 MB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/0.3039, allocations: 1.018 MB / 457.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006349/0.3102, allocations: 4.716 MB / 461.9 MB, free: 8.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002074/0.3123, allocations: 1.427 MB / 463.3 MB, free: 6.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=193): time 3.136e-06/0.3123, allocations: 0 / 463.3 MB, free: 6.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=203): time 0.01249/0.3248, allocations: 6.198 MB / 469.5 MB, free: 404 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002429/0.3251, allocations: 0.543 MB / 470 MB, free: 15.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001896/0.327, allocations: 1.646 MB / 471.7 MB, free: 14.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002037/0.3272, allocations: 109.7 kB / 471.8 MB, free: 13.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006625/0.3279, allocations: 0.8961 MB / 472.7 MB, free: 13.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004687/0.3283, allocations: 0.5782 MB / 473.3 MB, free: 12.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007404/0.3291, allocations: 0.5518 MB / 473.8 MB, free: 11.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.786e-05/0.3292, allocations: 305.1 kB / 474.1 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001609/0.3308, allocations: 0.9147 MB / 475 MB, free: 10.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.3329, allocations: 1.589 MB / 476.6 MB, free: 8.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003343/0.3362, allocations: 2.433 MB / 479 MB, free: 6.113 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/0.3363, allocations: 4 kB / 479 MB, free: 6.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=332) (initialization): time 0.00528/0.3415, allocations: 3.053 MB / 482.1 MB, free: 3.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.523e-05/0.3416, allocations: 97.09 kB / 482.2 MB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/0.3417, allocations: 20 kB / 482.2 MB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/0.3429, allocations: 0.5802 MB / 482.8 MB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.3443, allocations: 395.2 kB / 483.2 MB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00213/0.3464, allocations: 2.254 MB / 485.4 MB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.3478, allocations: 124 kB / 485.6 MB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002095/0.348, allocations: 119.9 kB / 485.7 MB, free: 15.34 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.001034/0.349, allocations: 0.7598 MB / 486.4 MB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000348/0.3494, allocations: 205.6 kB / 486.6 MB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005349/0.3547, allocations: 3.031 MB / 489.7 MB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.142e-05/0.3548, allocations: 11.95 kB / 489.7 MB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.3548, allocations: 4 kB / 489.7 MB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007874/0.3556, allocations: 0.5139 MB / 490.2 MB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003342/0.3559, allocations: 63.98 kB / 490.3 MB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.357, allocations: 99.91 kB / 490.4 MB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004978/0.3575, allocations: 245.7 kB / 490.6 MB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0055/0.3631, allocations: 2.858 MB / 493.5 MB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005906/0.369, allocations: 3.799 MB / 497.3 MB, free: 3.539 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001694/0.3707, allocations: 1.132 MB / 498.4 MB, free: 2.406 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001353/0.372, allocations: 1.043 MB / 499.4 MB, free: 1.367 MB / 414.1 MB Notification: Performance of Backend: time 3.7e-07/0.3721, allocations: 4 kB / 499.4 MB, free: 1.363 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005497/0.3776, allocations: 2.49 MB / 0.4902 GB, free: 14.84 MB / 430.1 MB Notification: Performance of SimCode: time 0.006875/0.3844, allocations: 4.726 MB / 0.4948 GB, free: 10.01 MB / 430.1 MB Notification: Performance of Templates: time 0.06635/0.4508, allocations: 45.22 MB / 0.5389 GB, free: 12.69 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)