Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009726/0.0009725, allocations: 111.4 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000864/0.0008641, allocations: 43.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.223, allocations: 49.43 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks): time 0.03091/0.254, allocations: 28.75 MB / 428.2 MB, free: 4.488 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.2697, allocations: 7.771 MB / 436 MB, free: 12.7 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003546/0.2733, allocations: 63.56 kB / 436.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004389/0.2778, allocations: 0.8849 MB / 436.9 MB, free: 11.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007108/0.2849, allocations: 1.419 MB / 438.4 MB, free: 10.32 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009077/0.294, allocations: 2.061 MB / 440.4 MB, free: 8.281 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0111/0.3051, allocations: 6.017 MB / 446.4 MB, free: 2.25 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005274/0.3105, allocations: 1.821 MB / 448.3 MB, free: 396 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004975/0.3155, allocations: 1.526 MB / 449.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004094/0.3196, allocations: 1.618 MB / 451.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001609/0.3213, allocations: 156 kB / 451.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005218/0.3265, allocations: 0.788 MB / 452.3 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00203/0.3286, allocations: 0.7047 MB / 453 MB, free: 11.58 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003896/0.3325, allocations: 1.255 MB / 454.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008923/0.3415, allocations: 3.892 MB / 458.2 MB, free: 6.414 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3415, allocations: 0 / 458.2 MB, free: 6.414 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3416, allocations: 0 / 458.2 MB, free: 6.414 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.833e-05/0.3417, allocations: 4 kB / 458.2 MB, free: 6.41 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.00938/0.3511, allocations: 3.106 MB / 461.3 MB, free: 3.168 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.3511, allocations: 8.031 kB / 461.3 MB, free: 3.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/0.3524, allocations: 297.8 kB / 461.6 MB, free: 2.867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003655/0.356, allocations: 1.425 MB / 463 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004123/0.3565, allocations: 307.5 kB / 463.3 MB, free: 1.059 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005007/0.357, allocations: 228 kB / 463.6 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007083/0.3641, allocations: 2.765 MB / 466.3 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.403e-05/0.3642, allocations: 7.938 kB / 466.3 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003203/0.3645, allocations: 91.97 kB / 466.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/0.3647, allocations: 103.7 kB / 466.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005933/0.3706, allocations: 2.2 MB / 468.7 MB, free: 11.5 MB / 346.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.02164/0.3923, allocations: 10.33 MB / 479 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00459/0.3969, allocations: 2.065 MB / 481.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002652/0.3996, allocations: 1.095 MB / 482.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01303/0.4127, allocations: 5.495 MB / 487.7 MB, free: 7.633 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003662/0.4164, allocations: 1.527 MB / 489.2 MB, free: 6.016 MB / 362.7 MB Notification: Performance of pre-optimization done (n=207): time 7.684e-06/0.4164, allocations: 0 / 489.2 MB, free: 6.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=217): time 0.02466/0.4411, allocations: 8.501 MB / 497.7 MB, free: 13.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004615/0.4416, allocations: 0.7675 MB / 498.5 MB, free: 12.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003313/0.445, allocations: 1.626 MB / 0.4884 GB, free: 10.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000615/0.4456, allocations: 129.7 kB / 0.4885 GB, free: 10.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001118/0.4467, allocations: 0.8889 MB / 0.4894 GB, free: 9.707 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001047/0.4478, allocations: 0.6052 MB / 0.49 GB, free: 9.094 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001289/0.4491, allocations: 0.564 MB / 0.4905 GB, free: 8.523 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4492, allocations: 309.1 kB / 0.4908 GB, free: 8.219 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002783/0.452, allocations: 0.9696 MB / 0.4918 GB, free: 7.246 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003474/0.4555, allocations: 1.682 MB / 0.4934 GB, free: 5.266 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005715/0.4613, allocations: 2.578 MB / 0.4959 GB, free: 2.402 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-05/0.4613, allocations: 8 kB / 0.4959 GB, free: 2.395 MB / 378.7 MB Notification: Performance of matching and sorting (n=352) (initialization): time 0.2563/0.7177, allocations: 3.175 MB / 0.499 GB, free: 98.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.7179, allocations: 106.3 kB / 0.4991 GB, free: 98.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.886e-05/0.7179, allocations: 22.59 kB / 0.4992 GB, free: 98.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001642/0.7196, allocations: 0.5894 MB / 0.4997 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002036/0.7216, allocations: 396.9 kB / 0.5001 GB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.7238, allocations: 2.26 MB / 0.5023 GB, free: 97.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002351/0.7262, allocations: 151.1 kB / 0.5025 GB, free: 97.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003118/0.7265, allocations: 131.7 kB / 0.5026 GB, free: 97.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 188 ($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.pre_reset[1],$PRE.start.pre_reset[2],$PRE.stop.pre_reset[1],$PRE.stop.pre_reset[2],$PRE.shut.pre_reset[1],$PRE.shut.pre_reset[2],tankController.T6.t_start,$PRE.tankController.T6.t_start,tankController.T5.t_start,$PRE.tankController.T5.t_start,tankController.T4.t_start,$PRE.tankController.T4.t_start,tankController.T3.t_start,$PRE.tankController.T3.t_start,tankController.T2.t_start,$PRE.tankController.T2.t_start,tankController.T1.t_start,$PRE.tankController.T1.t_start,tankController.normal.T3.t_start,$PRE.tankController.normal.T3.t_start,tankController.normal.T1.t_start,$PRE.tankController.normal.T1.t_start,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition12,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition11,$PRE.shut.table.combiTimeTable.nextTimeEvent,$whenCondition10,shut.pre_reset[2],shut.pre_reset[1],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.pre_reset[2],stop.pre_reset[1],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.pre_reset[2],start.pre_reset[1],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.condition,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.condition,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.condition,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.condition,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 (325): * Single equations (assignments): 319 * 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.001488/0.728, allocations: 0.8053 MB / 0.5034 GB, free: 96.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005117/0.7285, allocations: 213.5 kB / 0.5036 GB, free: 96.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007496/0.736, allocations: 3.074 MB / 0.5066 GB, free: 95.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.255e-05/0.7361, allocations: 27.78 kB / 0.5066 GB, free: 95.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.7361, allocations: 3.969 kB / 0.5066 GB, free: 95.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-05/0.7362, allocations: 15.36 kB / 0.5066 GB, free: 95.33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01325/0.7494, allocations: 5.514 MB / 0.512 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.889e-05/0.7495, allocations: 3.719 kB / 0.512 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001514/0.751, allocations: 245.9 kB / 0.5123 GB, free: 92.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001549/0.7526, allocations: 0.5681 MB / 0.5128 GB, free: 92.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002387/0.7528, allocations: 65.11 kB / 0.5129 GB, free: 92.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002409/0.7553, allocations: 2.235 MB / 0.5151 GB, free: 90.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.7553, allocations: 7.125 kB / 0.5151 GB, free: 90.29 MB / 378.7 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08849/0.8438, allocations: 30.33 MB / 0.5447 GB, free: 60.04 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.