Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.622/1.622, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.752e-05/2.766e-05, allocations: 4 kB / 228.1 MB, free: 7.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07768/0.07773, allocations: 38.78 MB / 266.9 MB, free: 500 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002235/0.08002, allocations: 1.36 MB / 268.3 MB, free: 15.11 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006907/0.08075, allocations: 251.1 kB / 268.5 MB, free: 14.86 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.487e-05/0.08086, allocations: 8 kB / 268.5 MB, free: 14.86 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001044/0.08098, allocations: 19.8 kB / 268.5 MB, free: 14.84 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.174e-05/0.08104, allocations: 7.984 kB / 268.5 MB, free: 14.83 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.08141, allocations: 87.89 kB / 268.6 MB, free: 14.74 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.08169, allocations: 127.8 kB / 268.8 MB, free: 14.62 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.08198, allocations: 129.2 kB / 268.9 MB, free: 14.48 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.128e-05/0.08209, allocations: 59.91 kB / 268.9 MB, free: 14.43 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.08224, allocations: 63.75 kB / 269 MB, free: 14.36 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.3e-05/0.08235, allocations: 12 kB / 269 MB, free: 14.35 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/0.0824, allocations: 8 kB / 269 MB, free: 14.34 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.37e-05/0.08248, allocations: 51.83 kB / 269.1 MB, free: 14.29 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.065e-05/0.08253, allocations: 12 kB / 269.1 MB, free: 14.28 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002619/0.0828, allocations: 159.9 kB / 269.2 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.08282, allocations: 3.938 kB / 269.2 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.08283, allocations: 0 / 269.2 MB, free: 14.12 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.08285, allocations: 4 kB / 269.2 MB, free: 14.12 MB / 234.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.0007388/0.0836, allocations: 434.1 kB / 269.7 MB, free: 13.65 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.08365, allocations: 8.031 kB / 269.7 MB, free: 13.64 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.483e-05/0.08374, allocations: 31.7 kB / 269.7 MB, free: 13.61 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002933/0.08405, allocations: 222.8 kB / 269.9 MB, free: 13.35 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.728e-05/0.08411, allocations: 20.56 kB / 269.9 MB, free: 13.33 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.992e-05/0.08418, allocations: 31.95 kB / 270 MB, free: 13.3 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00061/0.0848, allocations: 262 kB / 270.2 MB, free: 13.03 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.08483, allocations: 0 / 270.2 MB, free: 13.03 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.08487, allocations: 12 kB / 270.2 MB, free: 13.02 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.08489, allocations: 8 kB / 270.3 MB, free: 13.01 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004798/0.08538, allocations: 169.6 kB / 270.4 MB, free: 12.84 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.08691, allocations: 0.9637 MB / 271.4 MB, free: 11.8 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000393/0.08732, allocations: 147.4 kB / 271.5 MB, free: 11.65 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.08736, allocations: 8.062 kB / 271.5 MB, free: 11.64 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000273/0.08764, allocations: 122.6 kB / 271.7 MB, free: 11.52 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 2.445e-06/0.08767, allocations: 4 kB / 271.7 MB, free: 11.51 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006088/0.08828, allocations: 209.3 kB / 271.9 MB, free: 11.3 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.08835, allocations: 55.41 kB / 271.9 MB, free: 11.23 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.08851, allocations: 149 kB / 272.1 MB, free: 11.08 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.299e-05/0.08857, allocations: 33.7 kB / 272.1 MB, free: 11.04 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.08869, allocations: 144.4 kB / 272.2 MB, free: 10.9 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.932e-05/0.08877, allocations: 63.28 kB / 272.3 MB, free: 10.84 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.688e-05/0.0888, allocations: 4 kB / 272.3 MB, free: 10.83 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.08893, allocations: 326.8 kB / 272.6 MB, free: 10.5 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/0.08912, allocations: 60.62 kB / 272.7 MB, free: 10.44 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/0.08938, allocations: 133.9 kB / 272.8 MB, free: 10.28 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.0896, allocations: 83.89 kB / 272.9 MB, free: 10.2 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.08961, allocations: 0 / 272.9 MB, free: 10.2 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000571/0.09019, allocations: 241.2 kB / 273.1 MB, free: 9.957 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.09023, allocations: 4 kB / 273.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.412e-05/0.09026, allocations: 4 kB / 273.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.916e-05/0.0903, allocations: 4 kB / 273.1 MB, free: 9.945 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/0.09054, allocations: 40.14 kB / 273.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.09057, allocations: 8 kB / 273.2 MB, free: 9.898 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.09074, allocations: 39.62 kB / 273.2 MB, free: 9.859 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.09079, allocations: 8 kB / 273.2 MB, free: 9.852 MB / 234.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: 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.0001871/0.09099, allocations: 160.4 kB / 273.4 MB, free: 9.688 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.475e-05/0.09104, allocations: 11.81 kB / 273.4 MB, free: 9.676 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004865/0.09153, allocations: 186.8 kB / 273.6 MB, free: 9.484 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.09156, allocations: 4 kB / 273.6 MB, free: 9.48 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.09157, allocations: 7.953 kB / 273.6 MB, free: 9.473 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.09159, allocations: 3.984 kB / 273.6 MB, free: 9.469 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.09263, allocations: 0.5797 MB / 274.2 MB, free: 8.828 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.09265, allocations: 0 / 274.2 MB, free: 8.828 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.09278, allocations: 15.94 kB / 274.2 MB, free: 8.812 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.929e-06/0.0928, allocations: 7.953 kB / 274.2 MB, free: 8.805 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.09283, allocations: 0 / 274.2 MB, free: 8.805 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.09284, allocations: 7.984 kB / 274.2 MB, free: 8.797 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.09286, allocations: 4 kB / 274.2 MB, free: 8.793 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004326/0.0933, allocations: 275.6 kB / 274.5 MB, free: 8.508 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.477e-05/0.09337, allocations: 92.94 kB / 274.6 MB, free: 8.398 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/0.09342, allocations: 11.89 kB / 274.6 MB, free: 8.387 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.09357, allocations: 8 kB / 274.6 MB, free: 8.379 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.185e-05/0.09367, allocations: 19.97 kB / 274.6 MB, free: 8.359 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.321e-05/0.09371, allocations: 11.98 kB / 274.6 MB, free: 8.348 MB / 234.7 MB Notification: Performance of sorting global known variables: time 7.932e-05/0.0938, allocations: 107.7 kB / 274.7 MB, free: 8.242 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.09381, allocations: 0 / 274.7 MB, free: 8.242 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003917/0.09421, allocations: 51.84 kB / 274.8 MB, free: 8.191 MB / 234.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.0002071/0.09443, allocations: 107.2 kB / 274.9 MB, free: 8.078 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004843/0.09493, allocations: 184 kB / 275.1 MB, free: 7.898 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.09495, allocations: 4.188 kB / 275.1 MB, free: 7.895 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.09516, allocations: 79.91 kB / 275.1 MB, free: 7.816 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.09542, allocations: 19.98 kB / 275.2 MB, free: 7.797 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008123/0.09625, allocations: 375 kB / 275.5 MB, free: 7.406 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.09659, allocations: 0.7406 MB / 276.3 MB, free: 6.641 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.09673, allocations: 21.95 kB / 276.3 MB, free: 6.621 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.831e-05/0.09683, allocations: 31.42 kB / 276.3 MB, free: 6.59 MB / 234.7 MB Notification: Performance of SimCode: time 6.81e-07/0.09684, allocations: 4 kB / 276.3 MB, free: 6.586 MB / 234.7 MB Notification: Performance of Templates: time 0.006696/0.1035, allocations: 1.648 MB / 278 MB, free: 4.945 MB / 234.7 MB