Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.038/1.038, allocations: 111.1 MB / 126.3 MB, free: 6.406 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.443e-05/2.444e-05, allocations: 4 kB / 154.5 MB, free: 2.84 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05209/0.05213, allocations: 25.18 MB / 179.7 MB, free: 9.625 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002119/0.05431, allocations: 1.234 MB / 180.9 MB, free: 8.387 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007249/0.05507, allocations: 243.3 kB / 181.2 MB, free: 8.148 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.598e-05/0.05519, allocations: 8 kB / 181.2 MB, free: 8.141 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.05531, allocations: 23.8 kB / 181.2 MB, free: 8.117 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 5.102e-05/0.05537, allocations: 7.984 kB / 181.2 MB, free: 8.109 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003898/0.05577, allocations: 87.83 kB / 181.3 MB, free: 8.023 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.05606, allocations: 131.7 kB / 181.4 MB, free: 7.895 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.05636, allocations: 125.3 kB / 181.5 MB, free: 7.77 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.536e-05/0.05647, allocations: 55.91 kB / 181.6 MB, free: 7.715 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.05662, allocations: 67.69 kB / 181.6 MB, free: 7.648 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.17e-05/0.05672, allocations: 16 kB / 181.7 MB, free: 7.633 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.05677, allocations: 12 kB / 181.7 MB, free: 7.621 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 6.384e-05/0.05684, allocations: 31.91 kB / 181.7 MB, free: 7.59 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 3.937e-05/0.05689, allocations: 12 kB / 181.7 MB, free: 7.578 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.05718, allocations: 163.6 kB / 181.9 MB, free: 7.418 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.0572, allocations: 0 / 181.9 MB, free: 7.418 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.05721, allocations: 0 / 181.9 MB, free: 7.418 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.05723, allocations: 0 / 181.9 MB, free: 7.418 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.000757/0.058, allocations: 438.4 kB / 182.3 MB, free: 6.941 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.05806, allocations: 12.03 kB / 182.3 MB, free: 6.93 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.755e-05/0.05814, allocations: 27.67 kB / 182.3 MB, free: 6.902 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.05849, allocations: 230.7 kB / 182.6 MB, free: 6.637 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.88e-05/0.05855, allocations: 20.56 kB / 182.6 MB, free: 6.617 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.666e-05/0.05863, allocations: 28 kB / 182.6 MB, free: 6.59 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006461/0.05928, allocations: 270 kB / 182.9 MB, free: 6.305 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.05931, allocations: 0 / 182.9 MB, free: 6.305 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.552e-05/0.05937, allocations: 11.98 kB / 182.9 MB, free: 6.293 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.05939, allocations: 7.953 kB / 182.9 MB, free: 6.285 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005083/0.05991, allocations: 169.6 kB / 183.1 MB, free: 6.121 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.06147, allocations: 0.956 MB / 184 MB, free: 5.094 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004044/0.0619, allocations: 151.2 kB / 184.2 MB, free: 4.938 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.06194, allocations: 4.188 kB / 184.2 MB, free: 4.934 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.06225, allocations: 115.1 kB / 184.3 MB, free: 4.812 MB / 154.7 MB Notification: Performance of pre-optimization done (n=23): time 2.595e-06/0.06227, allocations: 7.938 kB / 184.3 MB, free: 4.805 MB / 154.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006335/0.06291, allocations: 213.2 kB / 184.5 MB, free: 4.59 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.363e-05/0.06299, allocations: 59.34 kB / 184.6 MB, free: 4.52 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.06316, allocations: 141.1 kB / 184.7 MB, free: 4.375 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 4.409e-05/0.06321, allocations: 37.69 kB / 184.7 MB, free: 4.332 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.06337, allocations: 206.9 kB / 184.9 MB, free: 4.129 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.897e-05/0.06346, allocations: 63.19 kB / 185 MB, free: 4.066 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.914e-05/0.06349, allocations: 8 kB / 185 MB, free: 4.059 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.06367, allocations: 330.8 kB / 185.3 MB, free: 3.727 MB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.06397, allocations: 60.62 kB / 185.4 MB, free: 3.664 MB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000366/0.06435, allocations: 129.9 kB / 185.5 MB, free: 3.508 MB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.0647, allocations: 71.92 kB / 185.6 MB, free: 3.438 MB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.06473, allocations: 3.984 kB / 185.6 MB, free: 3.434 MB / 154.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009102/0.06565, allocations: 245.5 kB / 185.8 MB, free: 3.188 MB / 154.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.0657, allocations: 4 kB / 185.8 MB, free: 3.184 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.06573, allocations: 4 kB / 185.8 MB, free: 3.18 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.06576, allocations: 4 kB / 185.8 MB, free: 3.176 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003393/0.06612, allocations: 35.92 kB / 185.9 MB, free: 3.141 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.301e-05/0.06616, allocations: 11.92 kB / 185.9 MB, free: 3.129 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002522/0.06643, allocations: 19.84 kB / 185.9 MB, free: 3.109 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.064e-05/0.06651, allocations: 16 kB / 185.9 MB, free: 3.094 MB / 154.7 MB Warning: Assuming fixed start value for the following 1 variables: 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: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0003705/0.06689, allocations: 160.3 kB / 186.1 MB, free: 2.926 MB / 154.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.371e-05/0.06697, allocations: 15.81 kB / 186.1 MB, free: 2.91 MB / 154.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007578/0.06774, allocations: 190.7 kB / 186.3 MB, free: 2.723 MB / 154.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.06777, allocations: 0 / 186.3 MB, free: 2.723 MB / 154.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.06779, allocations: 0 / 186.3 MB, free: 2.723 MB / 154.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-05/0.06782, allocations: 3.984 kB / 186.3 MB, free: 2.719 MB / 154.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00161/0.06944, allocations: 0.5875 MB / 186.9 MB, free: 2.07 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/0.06948, allocations: 3.984 kB / 186.9 MB, free: 2.066 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001904/0.06969, allocations: 15.94 kB / 186.9 MB, free: 2.051 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.06972, allocations: 3.938 kB / 186.9 MB, free: 2.047 MB / 154.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.06977, allocations: 8 kB / 186.9 MB, free: 2.039 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.66e-05/0.0698, allocations: 7.984 kB / 186.9 MB, free: 2.031 MB / 154.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.06981, allocations: 0 / 186.9 MB, free: 2.031 MB / 154.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000686/0.07051, allocations: 279.5 kB / 187.2 MB, free: 1.742 MB / 154.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.825e-05/0.07062, allocations: 92.95 kB / 187.3 MB, free: 1.633 MB / 154.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.756e-05/0.0707, allocations: 7.984 kB / 187.3 MB, free: 1.625 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.07094, allocations: 11.94 kB / 187.3 MB, free: 1.613 MB / 154.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.07109, allocations: 19.97 kB / 187.3 MB, free: 1.594 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.879e-05/0.07115, allocations: 11.98 kB / 187.3 MB, free: 1.582 MB / 154.7 MB Notification: Performance of sorting global known variables: time 0.0001197/0.07129, allocations: 99.22 kB / 187.4 MB, free: 1.484 MB / 154.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.07131, allocations: 0 / 187.4 MB, free: 1.484 MB / 154.7 MB Notification: Performance of remove unused functions: time 0.0007463/0.07207, allocations: 47.84 kB / 187.5 MB, free: 1.438 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 (step.active,step.localActive,transition1.enableFire,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: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0002576/0.07236, allocations: 111.2 kB / 187.6 MB, free: 1.316 MB / 154.7 MB Notification: Performance of simCode: created initialization part: time 0.00074/0.07312, allocations: 183.7 kB / 187.8 MB, free: 1.137 MB / 154.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.07314, allocations: 0 / 187.8 MB, free: 1.137 MB / 154.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003025/0.07346, allocations: 71.92 kB / 187.8 MB, free: 1.066 MB / 154.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/0.07388, allocations: 20.55 kB / 187.8 MB, free: 1.047 MB / 154.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.07513, allocations: 404.9 kB / 188.2 MB, free: 0.6211 MB / 154.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005369/0.0757, allocations: 0.7367 MB / 189 MB, free: 15.86 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.07588, allocations: 27.42 kB / 189 MB, free: 15.83 MB / 170.7 MB Notification: Performance of SimCode: time 1.192e-06/0.07591, allocations: 4 kB / 189 MB, free: 15.82 MB / 170.7 MB Notification: Performance of Templates: time 0.008946/0.08487, allocations: 2.337 MB / 191.3 MB, free: 13.48 MB / 170.7 MB