Running command: translateModel(Modelica.StateGraph.Examples.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|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.makeProduct.T1.enableFire|tankController.makeProduct.T2.enableFire|tankController.makeProduct.T3.enableFire|tankController.makeProduct.T4.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks") Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.726e-05/2.738e-05, allocations: 4 kB / 294.6 MB, free: 11.44 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 50.41 MB / 345 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ControlledTanks): time 0.006005/0.1184, allocations: 3.292 MB / 348.3 MB, free: 5.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005943/0.1244, allocations: 2.19 MB / 350.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.1256, allocations: 39.88 kB / 350.5 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002112/0.1277, allocations: 0.5684 MB / 351.1 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001656/0.1294, allocations: 299.1 kB / 351.3 MB, free: 2.559 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00328/0.1327, allocations: 0.7213 MB / 352.1 MB, free: 1.836 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002817/0.1355, allocations: 0.968 MB / 353 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001738/0.1373, allocations: 0.7962 MB / 353.8 MB, free: 64 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000878/0.1382, allocations: 454.8 kB / 354.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008889/0.1391, allocations: 0.4904 MB / 354.8 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000471/0.1396, allocations: 115.9 kB / 354.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002516/0.1399, allocations: 56 kB / 354.9 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004841/0.1404, allocations: 319 kB / 355.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002615/0.1407, allocations: 84 kB / 355.3 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002781/0.1435, allocations: 1.707 MB / 357 MB, free: 12.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1435, allocations: 0 / 357 MB, free: 12.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1435, allocations: 0 / 357 MB, free: 12.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.394e-05/0.1436, allocations: 0 / 357 MB, free: 12.85 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: 319 * Number of variables: 319 Notification: Performance of Generate backend data structure: time 0.0035/0.1471, allocations: 1.447 MB / 358.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.1472, allocations: 12.03 kB / 358.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000517/0.1477, allocations: 170.1 kB / 358.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002187/0.1499, allocations: 0.8874 MB / 359.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002783/0.1502, allocations: 204 kB / 359.7 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000345/0.1506, allocations: 148 kB / 359.9 MB, free: 9.809 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003968/0.1545, allocations: 1.472 MB / 361.4 MB, free: 8.215 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.919e-05/0.1546, allocations: 0 / 361.4 MB, free: 8.215 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001869/0.1548, allocations: 52 kB / 361.4 MB, free: 8.164 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.126e-05/0.1549, allocations: 62.05 kB / 361.5 MB, free: 8.102 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003175/0.1581, allocations: 0.9804 MB / 362.5 MB, free: 7.113 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.1685, allocations: 5.558 MB / 368 MB, free: 1.395 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003185/0.1718, allocations: 1.265 MB / 369.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002065/0.172, allocations: 102 kB / 369.4 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002021/0.174, allocations: 0.901 MB / 370.3 MB, free: 14.9 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 4.568e-06/0.1741, allocations: 4 kB / 370.3 MB, free: 14.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=133): time 0.004595/0.1787, allocations: 1.701 MB / 372 MB, free: 13.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003895/0.1791, allocations: 0.6049 MB / 372.6 MB, free: 12.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001937/0.1811, allocations: 0.8736 MB / 373.5 MB, free: 11.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003672/0.1814, allocations: 113.7 kB / 373.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006327/0.1821, allocations: 0.5268 MB / 374.1 MB, free: 10.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005249/0.1826, allocations: 335.7 kB / 374.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.1828, allocations: 36 kB / 374.5 MB, free: 10.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002256/0.183, allocations: 374.8 kB / 374.8 MB, free: 10.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.1845, allocations: 475.7 kB / 375.3 MB, free: 9.637 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/0.1864, allocations: 0.9 MB / 376.2 MB, free: 8.566 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/0.188, allocations: 0.5907 MB / 376.8 MB, free: 7.961 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.1881, allocations: 4 kB / 376.8 MB, free: 7.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00412/0.1922, allocations: 1.509 MB / 378.3 MB, free: 6.418 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.1923, allocations: 98.03 kB / 378.4 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/0.1924, allocations: 15.94 kB / 378.4 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.475e-05/0.1924, allocations: 28 kB / 378.4 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.1936, allocations: 187.5 kB / 378.6 MB, free: 6.078 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.713e-05/0.1937, allocations: 31.86 kB / 378.7 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/0.1948, allocations: 162.6 kB / 378.8 MB, free: 5.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001864/0.195, allocations: 75.98 kB / 378.9 MB, free: 5.812 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 180 ($PRE.tankController.makeProduct.T1.enableFire,$PRE.tankController.makeProduct.T3.enableFire,$PRE.tankController.makeProduct.T2.enableFire,$PRE.tankController.makeProduct.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],$whenCondition6,$PRE.shut.table.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.start.table.combiTimeTable.nextTimeEvent,$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.makeProduct.stateGraphRoot.suspend,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,$PRE.tankController.makeProduct.newActive,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,tankController.makeProduct.fillTank1.active,$PRE.tankController.makeProduct.fillTank1.localActive,tankController.makeProduct.fillTank1.localActive,$PRE.tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.newActive,$PRE.tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.T1.condition,tankController.makeProduct.T1.enableFire,tankController.makeProduct.fillTank2.active,$PRE.tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank2.localActive,$PRE.tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.newActive,$PRE.tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.T3.condition,tankController.makeProduct.T3.enableFire,tankController.makeProduct.emptyTank2.active,$PRE.tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.emptyTank2.localActive,$PRE.tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.newActive,$PRE.tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.wait1.active,$PRE.tankController.makeProduct.wait1.localActive,tankController.makeProduct.wait1.localActive,$PRE.tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.newActive,$PRE.tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.T2.enableFire,tankController.makeProduct.T2.fire,$PRE.tankController.makeProduct.T2.t_start,tankController.makeProduct.T2.t_start,tankController.makeProduct.wait2.active,$PRE.tankController.makeProduct.wait2.localActive,tankController.makeProduct.wait2.localActive,$PRE.tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.newActive,$PRE.tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.T4.enableFire,tankController.makeProduct.T4.fire,$PRE.tankController.makeProduct.T4.t_start,tankController.makeProduct.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,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,valve2.valveControl,valve3.valveControl,stateGraphRoot.activeSteps,$whenCondition8,$whenCondition7,$whenCondition9,$PRE.shut.reset[1],$PRE.shut.reset[2],$PRE.shut.table.y,shut.table.y,shut.table.combiTimeTable.nextTimeEvent,$PRE.shut.table.combiTimeTable.nextTimeEventScaled,shut.table.combiTimeTable.nextTimeEventScaled,shut.pre_reset[1],shut.pre_reset[2],$whenCondition11,$whenCondition10,$whenCondition12,$PRE.stop.reset[1],$PRE.stop.reset[2],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],stop.pre_reset[2],$whenCondition14,$whenCondition13,$whenCondition15,$PRE.start.reset[1],$PRE.start.reset[2],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],start.pre_reset[2],$PRE.tankController.makeProduct.T1.t_start,tankController.makeProduct.T1.t_start,$PRE.tankController.makeProduct.T3.t_start,tankController.makeProduct.T3.t_start,$PRE.tankController.T1.t_start,tankController.T1.t_start,$PRE.tankController.T2.t_start,tankController.T2.t_start,$PRE.tankController.T3.t_start,tankController.T3.t_start,$PRE.tankController.T4.t_start,tankController.T4.t_start,$PRE.tankController.T5.t_start,tankController.T5.t_start,$PRE.tankController.T6.t_start,tankController.T6.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,tankController.makeProduct.T4.condition,tankController.makeProduct.T2.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 211 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001362/0.1964, allocations: 0.6381 MB / 379.5 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000338/0.1968, allocations: 110.7 kB / 379.6 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003406/0.2002, allocations: 1.191 MB / 380.8 MB, free: 3.809 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.521e-05/0.2002, allocations: 16 kB / 380.8 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.2003, allocations: 0 / 380.8 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.389e-05/0.2003, allocations: 11.97 kB / 380.8 MB, free: 3.781 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00694/0.2073, allocations: 2.723 MB / 383.6 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.2073, allocations: 0 / 383.6 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006366/0.208, allocations: 87.75 kB / 383.7 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.607e-05/0.208, allocations: 4 kB / 383.7 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/0.2081, allocations: 43.97 kB / 383.7 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-05/0.2082, allocations: 8 kB / 383.7 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.2082, allocations: 4 kB / 383.7 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005076/0.2133, allocations: 1.99 MB / 385.7 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007253/0.214, allocations: 315.4 kB / 386 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003505/0.2144, allocations: 56.05 kB / 386.1 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007089/0.2151, allocations: 59.95 kB / 386.1 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005098/0.2157, allocations: 160.7 kB / 386.3 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/0.2158, allocations: 55.97 kB / 386.3 MB, free: 14.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001205/0.2171, allocations: 0.5654 MB / 386.9 MB, free: 13.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.655e-06/0.2171, allocations: 0 / 386.9 MB, free: 13.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00159/0.2187, allocations: 339 kB / 387.2 MB, free: 13.19 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (tank1.level,tank2.level) * Number of discrete variables: 112 (tankController.T6.t_start,tankController.T5.t_start,tankController.T4.t_start,tankController.T3.t_start,tankController.T2.t_start,tankController.T1.t_start,tankController.makeProduct.T3.t_start,tankController.makeProduct.T1.t_start,tankController.makeProduct.stateGraphRoot.suspend,tankController.emptyTanks.localActive,tankController.s2.localActive,tankController.makeProduct.T4.enableFire,tankController.makeProduct.wait2.localActive,tankController.makeProduct.T2.enableFire,tankController.makeProduct.wait1.localActive,tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank1.localActive,tankController.s1.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,$whenCondition14,$whenCondition13,$whenCondition15,tankController.s1.active,tankController.s1.inPort[2].occupied,tankController.s1.newActive,tankController.s1.oldActive,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,tankController.makeProduct.fillTank1.active,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.T1.condition,tankController.makeProduct.T1.enableFire,tankController.makeProduct.fillTank2.active,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.T3.condition,tankController.makeProduct.T3.enableFire,tankController.makeProduct.emptyTank2.active,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.wait1.active,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.T2.fire,tankController.makeProduct.T2.t_start,tankController.makeProduct.wait2.active,tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.T4.fire,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.condition,tankController.T2.enableFire,tankController.T3.enableFire,tankController.s2.active,tankController.s2.outPort[2].available,tankController.s2.newActive,tankController.s2.oldActive,tankController.T4.enableFire,tankController.T5.enableFire,tankController.emptyTanks.active,tankController.emptyTanks.newActive,tankController.emptyTanks.oldActive,tankController.T6.condition,tankController.T6.enableFire,start.reset[1],start.reset[2],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],start.pre_reset[2],stop.reset[1],stop.reset[2],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],stop.pre_reset[2],shut.reset[1],shut.reset[2],shut.on,shut.table.y,shut.table.combiTimeTable.nextTimeEvent,shut.table.combiTimeTable.nextTimeEventScaled,shut.pre_reset[1],shut.pre_reset[2],valve2.valveControl,valve3.valveControl,stateGraphRoot.activeSteps) * Number of discrete states: 50 (shut.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,tankController.s1.newActive,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait2.newActive,tankController.makeProduct.newActive,tankController.s2.newActive,tankController.emptyTanks.newActive,shut.table.combiTimeTable.nextTimeEventScaled,$whenCondition9,shut.on,$whenCondition8,$whenCondition7,shut.pre_reset[2],shut.pre_reset[1],shut.reset[1],shut.reset[2],shut.table.y,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition12,stop.on,$whenCondition11,$whenCondition10,stop.pre_reset[2],stop.pre_reset[1],stop.reset[1],stop.reset[2],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition15,start.on,$whenCondition14,$whenCondition13,start.pre_reset[2],start.pre_reset[1],start.reset[1],start.reset[2],start.table.y,tankController.makeProduct.T1.t_start,tankController.makeProduct.T3.t_start,tankController.T1.t_start,tankController.T2.t_start,tankController.T3.t_start,tankController.T4.t_start,tankController.T5.t_start,tankController.T6.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 24 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001582/0.2203, allocations: 0.5501 MB / 387.8 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003843/0.2241, allocations: 1.472 MB / 389.3 MB, free: 11.24 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.2242, allocations: 320 / 389.3 MB, free: 11.24 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.2262, allocations: 0.8631 MB / 390.1 MB, free: 10.35 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.2276, allocations: 189.5 kB / 390.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006318/0.2339, allocations: 2.61 MB / 392.9 MB, free: 7.484 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001162/0.2352, allocations: 1.186 MB / 394.1 MB, free: 6.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006956/0.2359, allocations: 119.4 kB / 394.2 MB, free: 6.152 MB / 330.7 MB Notification: Performance of SimCode: time 1.123e-06/0.2359, allocations: 0 / 394.2 MB, free: 6.152 MB / 330.7 MB Notification: Performance of Templates: time 0.3126/0.5485, allocations: 17.59 MB / 411.8 MB, free: 47.09 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanksCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanksCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanksCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanksFunctions.cpp:208:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp211.getData(), table_.getDim(1), table_.getDim(2), startTime__ext, ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, shiftTime__ext, timeEvents__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:142:23: note: candidate function not viable: 7th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTimeTable_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanksCalcHelperMain.cpp:36: ./OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.cpp:1014:48: error: no matching member function for call to 'pre' _start_P_pre_reset_.assign(_discrete_events->pre(_start_P_reset_)); ~~~~~~~~~~~~~~~~~~^~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:29:11: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const double' for 1st argument double& pre(const double& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:30:8: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const int' for 1st argument int& pre(const int& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:31:9: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const bool' for 1st argument bool& pre(const bool& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:32:23: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const std::string' (aka 'const basic_string') for 1st argument std::string & pre(const std::string & var); ^ In file included from OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanksCalcHelperMain.cpp:36: ./OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.cpp:1225:47: error: no matching member function for call to 'pre' _stop_P_pre_reset_.assign(_discrete_events->pre(_stop_P_reset_)); ~~~~~~~~~~~~~~~~~~^~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:29:11: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const double' for 1st argument double& pre(const double& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:30:8: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const int' for 1st argument int& pre(const int& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:31:9: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const bool' for 1st argument bool& pre(const bool& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:32:23: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const std::string' (aka 'const basic_string') for 1st argument std::string & pre(const std::string & var); ^ In file included from OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanksCalcHelperMain.cpp:36: ./OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanks.cpp:1551:47: error: no matching member function for call to 'pre' _shut_P_pre_reset_.assign(_discrete_events->pre(_shut_P_reset_)); ~~~~~~~~~~~~~~~~~~^~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:29:11: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const double' for 1st argument double& pre(const double& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:30:8: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const int' for 1st argument int& pre(const int& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:31:9: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const bool' for 1st argument bool& pre(const bool& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:32:23: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const std::string' (aka 'const basic_string') for 1st argument std::string & pre(const std::string & var); ^ 4 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanksCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.StateGraph.Examples.ControlledTanksCalcHelperMain.o] Error 1