Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.085/1.085, allocations: 111.1 MB / 126.3 MB, free: 6.41 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.699e-05/2.696e-05, allocations: 4 kB / 154.5 MB, free: 2.836 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0535/0.05355, allocations: 25.18 MB / 179.7 MB, free: 9.621 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00178/0.05539, allocations: 1.084 MB / 180.8 MB, free: 8.535 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006509/0.05605, allocations: 224.1 kB / 181 MB, free: 8.316 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.622e-05/0.05616, allocations: 8 kB / 181 MB, free: 8.309 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 9.192e-05/0.05626, allocations: 15.81 kB / 181 MB, free: 8.293 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 5.606e-05/0.05633, allocations: 19.97 kB / 181 MB, free: 8.273 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.05668, allocations: 79.84 kB / 181.1 MB, free: 8.195 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002429/0.05696, allocations: 111.8 kB / 181.2 MB, free: 8.086 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.05723, allocations: 112.9 kB / 181.3 MB, free: 7.973 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.352e-05/0.05732, allocations: 55.91 kB / 181.4 MB, free: 7.918 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.05747, allocations: 67.75 kB / 181.4 MB, free: 7.852 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.08e-05/0.05756, allocations: 15.98 kB / 181.5 MB, free: 7.836 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.0576, allocations: 8 kB / 181.5 MB, free: 7.828 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.759e-05/0.05767, allocations: 39.84 kB / 181.5 MB, free: 7.789 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 3.557e-05/0.05772, allocations: 12 kB / 181.5 MB, free: 7.777 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002497/0.05798, allocations: 151.6 kB / 181.7 MB, free: 7.629 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.058, allocations: 0 / 181.7 MB, free: 7.629 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.05801, allocations: 0 / 181.7 MB, free: 7.629 MB / 154.7 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.05803, allocations: 0 / 181.7 MB, free: 7.629 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007102/0.05874, allocations: 430.8 kB / 182.1 MB, free: 7.156 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.05879, allocations: 12.03 kB / 182.1 MB, free: 7.145 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.59e-05/0.05888, allocations: 27.67 kB / 182.1 MB, free: 7.117 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.05919, allocations: 218.8 kB / 182.3 MB, free: 6.863 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.05924, allocations: 20.44 kB / 182.4 MB, free: 6.844 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.855e-05/0.05931, allocations: 27.98 kB / 182.4 MB, free: 6.816 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005693/0.05989, allocations: 233.8 kB / 182.6 MB, free: 6.578 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.05992, allocations: 0 / 182.6 MB, free: 6.578 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.169e-05/0.05996, allocations: 8 kB / 182.6 MB, free: 6.57 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.05998, allocations: 8 kB / 182.6 MB, free: 6.562 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004655/0.06045, allocations: 165.5 kB / 182.8 MB, free: 6.402 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001254/0.06172, allocations: 0.682 MB / 183.5 MB, free: 5.664 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004428/0.06218, allocations: 171.2 kB / 183.6 MB, free: 5.488 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.06222, allocations: 192 / 183.6 MB, free: 5.488 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002752/0.06251, allocations: 127 kB / 183.8 MB, free: 5.355 MB / 154.7 MB Notification: Performance of pre-optimization done (n=24): time 2.284e-06/0.06253, allocations: 0 / 183.8 MB, free: 5.355 MB / 154.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006111/0.06315, allocations: 221.2 kB / 184 MB, free: 5.133 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.0632, allocations: 55.41 kB / 184 MB, free: 5.066 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.06336, allocations: 133 kB / 184.2 MB, free: 4.926 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 3.988e-05/0.06341, allocations: 33.7 kB / 184.2 MB, free: 4.887 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.06355, allocations: 199.1 kB / 184.4 MB, free: 4.691 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.443e-05/0.06363, allocations: 63.19 kB / 184.5 MB, free: 4.629 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.979e-05/0.06366, allocations: 12 kB / 184.5 MB, free: 4.617 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.06382, allocations: 318.8 kB / 184.8 MB, free: 4.297 MB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.06402, allocations: 60.3 kB / 184.8 MB, free: 4.234 MB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.06428, allocations: 127.2 kB / 185 MB, free: 4.086 MB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002025/0.06449, allocations: 67.98 kB / 185 MB, free: 4.02 MB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.06451, allocations: 0 / 185 MB, free: 4.02 MB / 154.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005925/0.06511, allocations: 241.2 kB / 185.3 MB, free: 3.777 MB / 154.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.06514, allocations: 4.219 kB / 185.3 MB, free: 3.773 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.06516, allocations: 8 kB / 185.3 MB, free: 3.766 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.06519, allocations: 4 kB / 185.3 MB, free: 3.762 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.06541, allocations: 35.91 kB / 185.3 MB, free: 3.727 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.06543, allocations: 0 / 185.3 MB, free: 3.727 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.06559, allocations: 27.75 kB / 185.3 MB, free: 3.699 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.754e-05/0.06564, allocations: 12 kB / 185.4 MB, free: 3.688 MB / 154.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition1.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0002382/0.06589, allocations: 162.1 kB / 185.5 MB, free: 3.52 MB / 154.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.053e-05/0.06593, allocations: 11.86 kB / 185.5 MB, free: 3.508 MB / 154.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005742/0.06651, allocations: 198.3 kB / 185.7 MB, free: 3.312 MB / 154.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.06654, allocations: 3.984 kB / 185.7 MB, free: 3.309 MB / 154.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.06655, allocations: 4 kB / 185.7 MB, free: 3.305 MB / 154.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.06657, allocations: 0 / 185.7 MB, free: 3.305 MB / 154.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.06766, allocations: 0.5725 MB / 186.3 MB, free: 2.676 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.06768, allocations: 0 / 186.3 MB, free: 2.676 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.06783, allocations: 27.86 kB / 186.3 MB, free: 2.648 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.705e-06/0.06785, allocations: 4 kB / 186.3 MB, free: 2.645 MB / 154.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.06787, allocations: 4 kB / 186.3 MB, free: 2.641 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.06789, allocations: 0 / 186.3 MB, free: 2.641 MB / 154.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.0679, allocations: 3.938 kB / 186.3 MB, free: 2.637 MB / 154.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004544/0.06836, allocations: 287.6 kB / 186.6 MB, free: 2.34 MB / 154.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.499e-05/0.06843, allocations: 89.02 kB / 186.7 MB, free: 2.234 MB / 154.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.753e-05/0.06848, allocations: 4 kB / 186.7 MB, free: 2.23 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.06864, allocations: 11.98 kB / 186.7 MB, free: 2.219 MB / 154.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.06876, allocations: 19.97 kB / 186.7 MB, free: 2.199 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/0.0688, allocations: 8 kB / 186.7 MB, free: 2.191 MB / 154.7 MB Notification: Performance of sorting global known variables: time 7.828e-05/0.06889, allocations: 95.77 kB / 186.8 MB, free: 2.098 MB / 154.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.0689, allocations: 0 / 186.8 MB, free: 2.098 MB / 154.7 MB Notification: Performance of remove unused functions: time 0.0003938/0.0693, allocations: 55.83 kB / 186.9 MB, free: 2.043 MB / 154.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001765/0.0695, allocations: 111.2 kB / 187 MB, free: 1.922 MB / 154.7 MB Notification: Performance of simCode: created initialization part: time 0.0004968/0.07, allocations: 175.8 kB / 187.2 MB, free: 1.75 MB / 154.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.07002, allocations: 0 / 187.2 MB, free: 1.75 MB / 154.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002137/0.07024, allocations: 83.84 kB / 187.3 MB, free: 1.668 MB / 154.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.07052, allocations: 19.94 kB / 187.3 MB, free: 1.648 MB / 154.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008593/0.07139, allocations: 397 kB / 187.7 MB, free: 1.23 MB / 154.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003588/0.07177, allocations: 0.7328 MB / 188.4 MB, free: 480 kB / 154.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.889e-05/0.07188, allocations: 23.42 kB / 188.4 MB, free: 460 kB / 154.7 MB Notification: Performance of SimCode: time 1.132e-06/0.07189, allocations: 0 / 188.4 MB, free: 460 kB / 154.7 MB Notification: Performance of Templates: time 0.006008/0.07791, allocations: 2.277 MB / 190.7 MB, free: 14.17 MB / 170.7 MB