Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 2.102/2.102, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.997e-05/3.005e-05, allocations: 4 kB / 292.1 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09314, allocations: 50.42 MB / 342.5 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3559/0.4491, allocations: 76.86 MB / 419.4 MB, free: 1.316 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002016/0.4493, allocations: 69.95 kB / 419.5 MB, free: 1.281 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01187/0.4612, allocations: 3.057 MB / 422.5 MB, free: 14.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.433e-06/0.4613, allocations: 0 / 422.5 MB, free: 14.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.08e-05/0.4613, allocations: 4 kB / 422.5 MB, free: 14.61 MB / 346.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.0006989/0.462, allocations: 430.8 kB / 423 MB, free: 14.17 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.4621, allocations: 12.03 kB / 423 MB, free: 14.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.611e-05/0.4622, allocations: 23.8 kB / 423 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003204/0.4625, allocations: 221.8 kB / 423.2 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.001e-05/0.4626, allocations: 25.8 kB / 423.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.811e-05/0.4626, allocations: 29.5 kB / 423.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005817/0.4632, allocations: 261.7 kB / 423.5 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.4633, allocations: 7.938 kB / 423.5 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.4633, allocations: 11.36 kB / 423.5 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.4633, allocations: 8 kB / 423.5 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003967/0.4638, allocations: 153.4 kB / 423.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.4653, allocations: 0.9493 MB / 424.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.4657, allocations: 174.2 kB / 424.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.4659, allocations: 85.31 kB / 424.9 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.4659, allocations: 192 / 424.9 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/0.4662, allocations: 139.6 kB / 425 MB, free: 12.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.683e-06/0.4663, allocations: 0 / 425 MB, free: 12.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004538/0.4667, allocations: 168.1 kB / 425.2 MB, free: 12.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.318e-05/0.4668, allocations: 83.98 kB / 425.3 MB, free: 12.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.467, allocations: 146.8 kB / 425.4 MB, free: 11.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.439e-05/0.4671, allocations: 37.27 kB / 425.5 MB, free: 11.9 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.4672, allocations: 143.1 kB / 425.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.269e-05/0.4673, allocations: 60.91 kB / 425.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.508e-05/0.4673, allocations: 3.312 kB / 425.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.4675, allocations: 326 kB / 426 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.4677, allocations: 65.17 kB / 426 MB, free: 11.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.4679, allocations: 131.7 kB / 426.2 MB, free: 11.22 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.4681, allocations: 73 kB / 426.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4681, allocations: 4 kB / 426.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005412/0.4687, allocations: 238.2 kB / 426.5 MB, free: 10.97 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.4687, allocations: 4 kB / 426.5 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.4688, allocations: 4 kB / 426.5 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.4688, allocations: 4 kB / 426.5 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/0.469, allocations: 35.84 kB / 426.5 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.469, allocations: 12.17 kB / 426.5 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/0.4692, allocations: 26.16 kB / 426.6 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.667e-05/0.4693, allocations: 15.38 kB / 426.6 MB, free: 10.88 MB / 346.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,$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,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,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.0001435/0.4694, allocations: 133.6 kB / 426.7 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.12e-05/0.4695, allocations: 11.91 kB / 426.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004475/0.4699, allocations: 187.5 kB / 426.9 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.47, allocations: 3.938 kB / 426.9 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.737e-06/0.47, allocations: 4 kB / 426.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.995e-06/0.47, allocations: 7.953 kB / 426.9 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.4711, allocations: 0.5846 MB / 427.5 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.404e-06/0.4711, allocations: 0 / 427.5 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.4712, allocations: 15.98 kB / 427.5 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.095e-06/0.4712, allocations: 3.953 kB / 427.5 MB, free: 9.996 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.4713, allocations: 3.125 kB / 427.5 MB, free: 9.996 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.601e-06/0.4713, allocations: 4 kB / 427.5 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.266e-06/0.4713, allocations: 4 kB / 427.5 MB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004508/0.4718, allocations: 287.7 kB / 427.8 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.513e-05/0.4719, allocations: 96.81 kB / 427.9 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.767e-05/0.4719, allocations: 11.38 kB / 427.9 MB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.4721, allocations: 11.86 kB / 427.9 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.852e-05/0.4722, allocations: 23.97 kB / 428 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.4722, allocations: 7.688 kB / 428 MB, free: 9.562 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.823e-05/0.4723, allocations: 94.52 kB / 428.1 MB, free: 9.473 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.59e-07/0.4723, allocations: 0 / 428.1 MB, free: 9.473 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004528/0.4728, allocations: 47.31 kB / 428.1 MB, free: 9.438 MB / 346.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,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,transition2.enableFire,timer.entryTime,SetBoolean1.y,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.000196/0.473, allocations: 115.9 kB / 428.2 MB, free: 9.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004215/0.4734, allocations: 179 kB / 428.4 MB, free: 9.188 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.4735, allocations: 0 / 428.4 MB, free: 9.188 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.4736, allocations: 75.03 kB / 428.5 MB, free: 9.133 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.4739, allocations: 18.61 kB / 428.5 MB, free: 9.121 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006329/0.4746, allocations: 241.5 kB / 428.7 MB, free: 8.891 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.4751, allocations: 0.7484 MB / 429.5 MB, free: 8.117 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001227/0.4752, allocations: 18.08 kB / 429.5 MB, free: 8.102 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.087e-05/0.4753, allocations: 30.86 kB / 429.5 MB, free: 8.074 MB / 346.7 MB Notification: Performance of SimCode: time 1.848e-06/0.4753, allocations: 0 / 429.5 MB, free: 8.074 MB / 346.7 MB Notification: Performance of Templates: time 0.00667/0.482, allocations: 1.673 MB / 431.2 MB, free: 6.414 MB / 346.7 MB