Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.052e-05/3.07e-05, allocations: 2 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07712/0.07717, allocations: 44.51 MB / 299.8 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.4321, allocations: 70.79 MB / 370.6 MB, free: 21.1 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/0.4325, allocations: 62.16 kB / 370.7 MB, free: 21.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01678/0.4493, allocations: 2.786 MB / 373.5 MB, free: 20.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.919e-06/0.4494, allocations: 0 / 373.5 MB, free: 20.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.455e-05/0.4494, allocations: 4.125 kB / 373.5 MB, free: 20.62 MB / 314.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.0005321/0.45, allocations: 431.8 kB / 373.9 MB, free: 20.24 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.45, allocations: 10.89 kB / 373.9 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.932e-05/0.4501, allocations: 23.17 kB / 373.9 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.4503, allocations: 226 kB / 374.1 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/0.4504, allocations: 19.33 kB / 374.2 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.125e-05/0.4505, allocations: 24.12 kB / 374.2 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005069/0.451, allocations: 231.5 kB / 374.4 MB, free: 19.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.451, allocations: 4.703 kB / 374.4 MB, free: 19.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.4511, allocations: 6.094 kB / 374.4 MB, free: 19.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.491e-06/0.4511, allocations: 5.844 kB / 374.4 MB, free: 19.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003932/0.4515, allocations: 165.7 kB / 374.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.4526, allocations: 0.6841 MB / 375.3 MB, free: 19.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/0.453, allocations: 168.1 kB / 375.4 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.4532, allocations: 78.05 kB / 375.5 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.4532, allocations: 5.5 kB / 375.5 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/0.4534, allocations: 108.5 kB / 375.6 MB, free: 19.47 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.085e-06/0.4534, allocations: 0 / 375.6 MB, free: 19.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003969/0.4539, allocations: 169.5 kB / 375.8 MB, free: 19.42 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.4539, allocations: 54.41 kB / 375.8 MB, free: 19.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.454, allocations: 140.8 kB / 376 MB, free: 19.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.4541, allocations: 40.2 kB / 376 MB, free: 19.22 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.492e-05/0.4542, allocations: 197.5 kB / 376.2 MB, free: 19.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.643e-05/0.4542, allocations: 61.88 kB / 376.3 MB, free: 19.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.475e-05/0.4543, allocations: 4.812 kB / 376.3 MB, free: 19.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.059e-05/0.4543, allocations: 326.1 kB / 376.6 MB, free: 18.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.4545, allocations: 57.23 kB / 376.7 MB, free: 18.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.4547, allocations: 127.7 kB / 376.8 MB, free: 18.63 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001742/0.4549, allocations: 67.28 kB / 376.8 MB, free: 18.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.4549, allocations: 1.188 kB / 376.8 MB, free: 18.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004734/0.4554, allocations: 233.5 kB / 377.1 MB, free: 18.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.4554, allocations: 5.375 kB / 377.1 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.359e-06/0.4554, allocations: 2.219 kB / 377.1 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.4555, allocations: 8.438 kB / 377.1 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.4557, allocations: 33.84 kB / 377.1 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.4557, allocations: 5.062 kB / 377.1 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.4558, allocations: 21.34 kB / 377.1 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.92e-05/0.4559, allocations: 17.86 kB / 377.2 MB, free: 18.54 MB / 314.7 MB 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,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,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.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 9.445e-05/0.456, allocations: 127.8 kB / 377.3 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.456, allocations: 15.92 kB / 377.3 MB, free: 18.42 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004189/0.4565, allocations: 189.4 kB / 377.5 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.268e-06/0.4565, allocations: 3.156 kB / 377.5 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.847e-06/0.4565, allocations: 3.953 kB / 377.5 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.747e-06/0.4565, allocations: 6.109 kB / 377.5 MB, free: 18.37 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000867/0.4574, allocations: 0.551 MB / 378.1 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.794e-06/0.4574, allocations: 0 / 378.1 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.4575, allocations: 16.47 kB / 378.1 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.962e-06/0.4576, allocations: 9.359 kB / 378.1 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.4576, allocations: 5.438 kB / 378.1 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.77e-06/0.4576, allocations: 5 kB / 378.1 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4576, allocations: 0 / 378.1 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003657/0.458, allocations: 280.2 kB / 378.4 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.908e-05/0.458, allocations: 89.02 kB / 378.4 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.4581, allocations: 10.14 kB / 378.5 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.4582, allocations: 11.47 kB / 378.5 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.923e-05/0.4583, allocations: 22.56 kB / 378.5 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-05/0.4584, allocations: 10.78 kB / 378.5 MB, free: 17.79 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.525e-05/0.4585, allocations: 95.19 kB / 378.6 MB, free: 17.72 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.159e-06/0.4585, allocations: 1.062 kB / 378.6 MB, free: 17.72 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004391/0.4589, allocations: 47.09 kB / 378.6 MB, free: 17.71 MB / 314.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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,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.0001476/0.4591, allocations: 116.1 kB / 378.8 MB, free: 17.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004049/0.4595, allocations: 166.9 kB / 378.9 MB, free: 17.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.999e-06/0.4595, allocations: 9.188 kB / 378.9 MB, free: 17.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.4597, allocations: 81.84 kB / 379 MB, free: 17.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002438/0.46, allocations: 15.7 kB / 379 MB, free: 17.6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005311/0.4605, allocations: 251.9 kB / 379.3 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001898/0.4607, allocations: 0.7361 MB / 380 MB, free: 16.76 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.725e-05/0.4608, allocations: 24.47 kB / 380 MB, free: 16.75 MB / 314.7 MB Notification: Performance of SimCode: time 1.557e-06/0.4608, allocations: 0 / 380 MB, free: 16.75 MB / 314.7 MB Notification: Performance of Templates: time 0.004893/0.4657, allocations: 2.253 MB / 382.3 MB, free: 16.57 MB / 314.7 MB