Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 2.175/2.175, allocations: 224.7 MB / 241.1 MB, free: 1.652 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.712e-05/2.716e-05, allocations: 0 / 294.5 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 50.42 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002376/0.1138, allocations: 1.406 MB / 346.4 MB, free: 7.531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007946/0.1146, allocations: 283 kB / 346.6 MB, free: 7.254 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.1147, allocations: 8 kB / 346.7 MB, free: 7.246 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.1149, allocations: 27.78 kB / 346.7 MB, free: 7.219 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.006e-05/0.1149, allocations: 3.984 kB / 346.7 MB, free: 7.215 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003874/0.1153, allocations: 83.91 kB / 346.8 MB, free: 7.133 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000275/0.1156, allocations: 135.6 kB / 346.9 MB, free: 7 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.1159, allocations: 125.6 kB / 347 MB, free: 6.871 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.1161, allocations: 55.91 kB / 347.1 MB, free: 6.816 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.1162, allocations: 75.67 kB / 347.2 MB, free: 6.742 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.114e-05/0.1163, allocations: 16 kB / 347.2 MB, free: 6.727 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.832e-05/0.1164, allocations: 15.94 kB / 347.2 MB, free: 6.711 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.542e-05/0.1165, allocations: 39.84 kB / 347.2 MB, free: 6.672 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.772e-05/0.1165, allocations: 12 kB / 347.2 MB, free: 6.66 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002964/0.1168, allocations: 167.6 kB / 347.4 MB, free: 6.496 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1168, allocations: 0 / 347.4 MB, free: 6.496 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.1169, allocations: 0 / 347.4 MB, free: 6.496 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.1169, allocations: 0 / 347.4 MB, free: 6.496 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007692/0.1177, allocations: 446.9 kB / 347.8 MB, free: 6.004 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1177, allocations: 8.031 kB / 347.8 MB, free: 5.996 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.948e-05/0.1178, allocations: 35.67 kB / 347.9 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003182/0.1181, allocations: 218.8 kB / 348.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.903e-05/0.1182, allocations: 20.56 kB / 348.1 MB, free: 5.688 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-05/0.1183, allocations: 28 kB / 348.1 MB, free: 5.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006489/0.1189, allocations: 270 kB / 348.4 MB, free: 5.379 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.119, allocations: 4 kB / 348.4 MB, free: 5.375 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.119, allocations: 8 kB / 348.4 MB, free: 5.367 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.119, allocations: 12 kB / 348.4 MB, free: 5.355 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005019/0.1195, allocations: 169.5 kB / 348.6 MB, free: 5.191 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.1212, allocations: 0.9711 MB / 349.6 MB, free: 4.152 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004433/0.1217, allocations: 178 kB / 349.7 MB, free: 3.961 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.294e-05/0.1217, allocations: 4.188 kB / 349.7 MB, free: 3.957 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003242/0.122, allocations: 133.2 kB / 349.9 MB, free: 3.809 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 3.176e-06/0.1221, allocations: 0 / 349.9 MB, free: 3.809 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006787/0.1228, allocations: 226.8 kB / 350.1 MB, free: 3.582 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.1228, allocations: 85.11 kB / 350.2 MB, free: 3.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.123, allocations: 144.7 kB / 350.3 MB, free: 3.332 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.824e-05/0.1231, allocations: 41.7 kB / 350.4 MB, free: 3.285 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.1233, allocations: 202.9 kB / 350.6 MB, free: 3.086 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.632e-05/0.1234, allocations: 67.17 kB / 350.6 MB, free: 3.02 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.128e-05/0.1234, allocations: 8 kB / 350.6 MB, free: 3.012 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1235, allocations: 322.9 kB / 350.9 MB, free: 2.688 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.1238, allocations: 71.97 kB / 351 MB, free: 2.617 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002774/0.124, allocations: 132.5 kB / 351.1 MB, free: 2.457 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.1243, allocations: 72.52 kB / 351.2 MB, free: 2.387 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.1243, allocations: 0 / 351.2 MB, free: 2.387 MB / 282.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006252/0.1249, allocations: 249.6 kB / 351.5 MB, free: 2.137 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.125, allocations: 12.03 kB / 351.5 MB, free: 2.125 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.125, allocations: 0 / 351.5 MB, free: 2.125 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.125, allocations: 7.938 kB / 351.5 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002534/0.1253, allocations: 31.92 kB / 351.5 MB, free: 2.086 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.052e-05/0.1253, allocations: 8 kB / 351.5 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001828/0.1255, allocations: 27.73 kB / 351.5 MB, free: 2.051 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.44e-05/0.1256, allocations: 19.94 kB / 351.6 MB, free: 2.031 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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.0002308/0.1258, allocations: 158.4 kB / 351.7 MB, free: 1.867 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.116e-05/0.1259, allocations: 23.8 kB / 351.7 MB, free: 1.844 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005492/0.1265, allocations: 191.4 kB / 351.9 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.1265, allocations: 7.984 kB / 351.9 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1265, allocations: 3.938 kB / 351.9 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.1265, allocations: 0 / 351.9 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.1277, allocations: 0.5894 MB / 352.5 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.1277, allocations: 4 kB / 352.5 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.1279, allocations: 19.98 kB / 352.6 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.928e-06/0.1279, allocations: 7.938 kB / 352.6 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.1279, allocations: 4 kB / 352.6 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.215e-06/0.128, allocations: 4 kB / 352.6 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.128, allocations: 3.984 kB / 352.6 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004923/0.1285, allocations: 292.9 kB / 352.9 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.564e-05/0.1286, allocations: 92.86 kB / 352.9 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.484e-05/0.1286, allocations: 8 kB / 353 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.1288, allocations: 8 kB / 353 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.1289, allocations: 27.91 kB / 353 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.1289, allocations: 8 kB / 353 MB, free: 496 kB / 282.7 MB Notification: Performance of sorting global known variables: time 8.267e-05/0.129, allocations: 91.27 kB / 353.1 MB, free: 404 kB / 282.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.129, allocations: 4 kB / 353.1 MB, free: 400 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004379/0.1295, allocations: 51.84 kB / 353.1 MB, free: 348 kB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002103/0.1297, allocations: 119.2 kB / 353.3 MB, free: 216 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005275/0.1303, allocations: 179.7 kB / 353.4 MB, free: 36 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1303, allocations: 0 / 353.4 MB, free: 36 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.1305, allocations: 79.98 kB / 353.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.1309, allocations: 19.38 kB / 353.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.1319, allocations: 417.5 kB / 353.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.1323, allocations: 0.7406 MB / 354.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.1324, allocations: 27.38 kB / 354.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of SimCode: time 1.403e-06/0.1324, allocations: 0 / 354.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of Templates: time 0.00714/0.1396, allocations: 2.365 MB / 357.1 MB, free: 12.34 MB / 298.7 MB