Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.558/1.558, allocations: 171.2 MB / 185.7 MB, free: 1.406 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.562e-05/2.522e-05, allocations: 4 kB / 228.1 MB, free: 7.355 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07351/0.07355, allocations: 38.77 MB / 266.9 MB, free: 0.5 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002175/0.07578, allocations: 1.38 MB / 268.3 MB, free: 15.1 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006735/0.07647, allocations: 243.2 kB / 268.5 MB, free: 14.86 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.385e-05/0.07659, allocations: 11.94 kB / 268.5 MB, free: 14.85 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.624e-05/0.0767, allocations: 19.8 kB / 268.6 MB, free: 14.83 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.194e-05/0.07677, allocations: 11.97 kB / 268.6 MB, free: 14.82 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.07711, allocations: 79.91 kB / 268.6 MB, free: 14.74 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.07738, allocations: 131.8 kB / 268.8 MB, free: 14.61 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002578/0.07765, allocations: 125.6 kB / 268.9 MB, free: 14.48 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.463e-05/0.07775, allocations: 55.84 kB / 268.9 MB, free: 14.43 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.07789, allocations: 63.75 kB / 269 MB, free: 14.36 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.29e-05/0.07797, allocations: 16 kB / 269 MB, free: 14.35 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.314e-05/0.07802, allocations: 16 kB / 269 MB, free: 14.33 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.3e-05/0.0781, allocations: 35.84 kB / 269.1 MB, free: 14.3 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.743e-05/0.07814, allocations: 12 kB / 269.1 MB, free: 14.29 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002538/0.07841, allocations: 163.8 kB / 269.2 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.07842, allocations: 0 / 269.2 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.01e-06/0.07844, allocations: 4 kB / 269.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.07846, allocations: 0 / 269.3 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.0006578/0.07912, allocations: 434.1 kB / 269.7 MB, free: 13.65 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.07917, allocations: 8.031 kB / 269.7 MB, free: 13.64 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.833e-05/0.07925, allocations: 27.72 kB / 269.7 MB, free: 13.62 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.07956, allocations: 230.8 kB / 269.9 MB, free: 13.35 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.447e-05/0.07962, allocations: 20.56 kB / 270 MB, free: 13.33 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.008e-05/0.07969, allocations: 28 kB / 270 MB, free: 13.3 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005956/0.08029, allocations: 258 kB / 270.2 MB, free: 13.04 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.08033, allocations: 7.938 kB / 270.2 MB, free: 13.03 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.126e-05/0.08037, allocations: 12 kB / 270.3 MB, free: 13.02 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.08039, allocations: 8 kB / 270.3 MB, free: 13.01 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004651/0.08087, allocations: 165.6 kB / 270.4 MB, free: 12.84 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.0823, allocations: 0.9521 MB / 271.4 MB, free: 11.82 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.08271, allocations: 167.2 kB / 271.5 MB, free: 11.65 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.08275, allocations: 8.125 kB / 271.5 MB, free: 11.64 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002588/0.08302, allocations: 114.6 kB / 271.7 MB, free: 11.52 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 2.444e-06/0.08303, allocations: 0 / 271.7 MB, free: 11.52 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005796/0.08362, allocations: 213.3 kB / 271.9 MB, free: 11.3 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.08369, allocations: 55.41 kB / 271.9 MB, free: 11.24 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.08386, allocations: 148.7 kB / 272.1 MB, free: 11.09 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.08392, allocations: 37.7 kB / 272.1 MB, free: 11.04 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.08404, allocations: 136.5 kB / 272.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.742e-05/0.08412, allocations: 59.28 kB / 272.3 MB, free: 10.85 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.714e-05/0.08415, allocations: 4 kB / 272.3 MB, free: 10.84 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.08427, allocations: 330.8 kB / 272.6 MB, free: 10.51 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.08446, allocations: 60.62 kB / 272.7 MB, free: 10.45 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002375/0.08471, allocations: 137.8 kB / 272.8 MB, free: 10.29 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002015/0.08493, allocations: 75.97 kB / 272.9 MB, free: 10.21 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.08494, allocations: 0 / 272.9 MB, free: 10.21 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005688/0.08552, allocations: 249.2 kB / 273.1 MB, free: 9.965 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.08555, allocations: 4 kB / 273.1 MB, free: 9.961 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.08557, allocations: 4 kB / 273.1 MB, free: 9.957 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.0856, allocations: 4 kB / 273.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.08582, allocations: 32.2 kB / 273.2 MB, free: 9.922 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.08585, allocations: 11.95 kB / 273.2 MB, free: 9.91 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/0.08602, allocations: 35.73 kB / 273.2 MB, free: 9.875 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.08607, allocations: 8 kB / 273.2 MB, free: 9.867 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.0001764/0.08626, allocations: 156.3 kB / 273.4 MB, free: 9.707 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.0863, allocations: 15.75 kB / 273.4 MB, free: 9.691 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004787/0.08679, allocations: 190.4 kB / 273.6 MB, free: 9.492 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.08681, allocations: 4 kB / 273.6 MB, free: 9.488 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.08683, allocations: 4 kB / 273.6 MB, free: 9.484 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.08684, allocations: 7.938 kB / 273.6 MB, free: 9.477 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.08788, allocations: 0.5758 MB / 274.2 MB, free: 8.84 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.0879, allocations: 0 / 274.2 MB, free: 8.84 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.08804, allocations: 19.92 kB / 274.2 MB, free: 8.82 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.08805, allocations: 4 kB / 274.2 MB, free: 8.816 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.08808, allocations: 7.953 kB / 274.2 MB, free: 8.809 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.0881, allocations: 4 kB / 274.2 MB, free: 8.805 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.08811, allocations: 3.938 kB / 274.2 MB, free: 8.801 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004299/0.08855, allocations: 271.7 kB / 274.5 MB, free: 8.52 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.099e-05/0.08861, allocations: 92.86 kB / 274.6 MB, free: 8.41 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.08866, allocations: 4 kB / 274.6 MB, free: 8.406 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.08882, allocations: 15.94 kB / 274.6 MB, free: 8.391 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.925e-05/0.08892, allocations: 23.97 kB / 274.6 MB, free: 8.367 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.08895, allocations: 11.94 kB / 274.6 MB, free: 8.355 MB / 234.7 MB Notification: Performance of sorting global known variables: time 7.569e-05/0.08904, allocations: 95.83 kB / 274.7 MB, free: 8.262 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.08905, allocations: 0 / 274.7 MB, free: 8.262 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003976/0.08945, allocations: 47.84 kB / 274.8 MB, free: 8.215 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,transition1.enableFire,step.localActive,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.0001707/0.08964, allocations: 123.1 kB / 274.9 MB, free: 8.086 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.000462/0.09011, allocations: 176.1 kB / 275.1 MB, free: 7.914 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.09013, allocations: 4.188 kB / 275.1 MB, free: 7.91 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002023/0.09034, allocations: 87.83 kB / 275.1 MB, free: 7.824 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002458/0.0906, allocations: 12 kB / 275.2 MB, free: 7.812 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007841/0.0914, allocations: 379 kB / 275.5 MB, free: 7.418 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.09173, allocations: 0.7406 MB / 276.3 MB, free: 6.652 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.09188, allocations: 25.94 kB / 276.3 MB, free: 6.629 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.859e-05/0.09198, allocations: 23.44 kB / 276.3 MB, free: 6.605 MB / 234.7 MB Notification: Performance of SimCode: time 6.01e-07/0.09199, allocations: 4 kB / 276.3 MB, free: 6.602 MB / 234.7 MB Notification: Performance of Templates: time 0.006671/0.09867, allocations: 1.636 MB / 278 MB, free: 4.973 MB / 234.7 MB