Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.637/1.637, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.171e-05/2.173e-05, allocations: 0 / 228.1 MB, free: 7.348 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07744/0.07748, allocations: 38.77 MB / 266.9 MB, free: 0.4922 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001869/0.07941, allocations: 1.189 MB / 268.1 MB, free: 15.29 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006465/0.08007, allocations: 223.5 kB / 268.3 MB, free: 15.07 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.498e-05/0.08017, allocations: 11.94 kB / 268.3 MB, free: 15.06 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.024e-05/0.08028, allocations: 15.86 kB / 268.3 MB, free: 15.04 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.282e-05/0.08034, allocations: 11.92 kB / 268.3 MB, free: 15.03 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.08069, allocations: 75.91 kB / 268.4 MB, free: 14.96 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002427/0.08094, allocations: 123.8 kB / 268.5 MB, free: 14.84 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000253/0.08121, allocations: 120.5 kB / 268.7 MB, free: 14.71 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.77e-05/0.08131, allocations: 59.84 kB / 268.7 MB, free: 14.65 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.08145, allocations: 59.81 kB / 268.8 MB, free: 14.59 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.289e-05/0.08153, allocations: 19.92 kB / 268.8 MB, free: 14.57 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.08158, allocations: 12 kB / 268.8 MB, free: 14.56 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.786e-05/0.08165, allocations: 31.91 kB / 268.8 MB, free: 14.53 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.756e-05/0.0817, allocations: 12 kB / 268.8 MB, free: 14.52 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.08195, allocations: 155.6 kB / 269 MB, free: 14.37 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.08196, allocations: 0 / 269 MB, free: 14.37 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.08198, allocations: 0 / 269 MB, free: 14.37 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.08199, allocations: 0 / 269 MB, free: 14.37 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006878/0.08269, allocations: 438.7 kB / 269.4 MB, free: 13.89 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.08274, allocations: 8.031 kB / 269.4 MB, free: 13.88 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.094e-05/0.08282, allocations: 19.81 kB / 269.5 MB, free: 13.86 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.08311, allocations: 226.7 kB / 269.7 MB, free: 13.6 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.109e-05/0.08317, allocations: 28.38 kB / 269.7 MB, free: 13.57 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.578e-05/0.08324, allocations: 24 kB / 269.7 MB, free: 13.55 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005531/0.0838, allocations: 233.8 kB / 270 MB, free: 13.31 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.08383, allocations: 0 / 270 MB, free: 13.31 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.08387, allocations: 12 kB / 270 MB, free: 13.3 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.08389, allocations: 4 kB / 270 MB, free: 13.29 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000456/0.08436, allocations: 161.6 kB / 270.1 MB, free: 13.14 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.08561, allocations: 0.6936 MB / 270.8 MB, free: 12.39 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004295/0.08606, allocations: 171.2 kB / 271 MB, free: 12.21 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.0861, allocations: 8.266 kB / 271 MB, free: 12.2 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002846/0.0864, allocations: 122.6 kB / 271.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 2.505e-06/0.08642, allocations: 0 / 271.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005948/0.08702, allocations: 213.3 kB / 271.3 MB, free: 11.86 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.08707, allocations: 59.41 kB / 271.4 MB, free: 11.79 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.08722, allocations: 137 kB / 271.5 MB, free: 11.64 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.246e-05/0.08727, allocations: 41.69 kB / 271.6 MB, free: 11.6 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.466e-05/0.08738, allocations: 128.6 kB / 271.7 MB, free: 11.47 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.106e-05/0.08746, allocations: 59.2 kB / 271.7 MB, free: 11.41 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-05/0.08749, allocations: 8 kB / 271.8 MB, free: 11.4 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.08762, allocations: 330.8 kB / 272.1 MB, free: 11.07 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.08782, allocations: 60.62 kB / 272.1 MB, free: 11.01 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002303/0.08806, allocations: 120.1 kB / 272.3 MB, free: 10.87 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001975/0.08827, allocations: 79.89 kB / 272.3 MB, free: 10.79 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.08829, allocations: 4 kB / 272.3 MB, free: 10.79 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000546/0.08885, allocations: 229.3 kB / 272.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.08888, allocations: 5.875 kB / 272.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.08889, allocations: 4 kB / 272.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.08892, allocations: 4 kB / 272.6 MB, free: 10.54 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.08913, allocations: 31.92 kB / 272.6 MB, free: 10.51 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.08916, allocations: 7.938 kB / 272.6 MB, free: 10.5 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.08932, allocations: 31.95 kB / 272.6 MB, free: 10.47 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.08937, allocations: 12 kB / 272.7 MB, free: 10.46 MB / 234.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,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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,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 0.0001758/0.08956, allocations: 161.7 kB / 272.8 MB, free: 10.29 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.097e-05/0.0896, allocations: 11.89 kB / 272.8 MB, free: 10.28 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004882/0.0901, allocations: 198.4 kB / 273 MB, free: 10.08 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.09012, allocations: 0 / 273 MB, free: 10.08 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.09013, allocations: 0 / 273 MB, free: 10.08 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.09015, allocations: 3.984 kB / 273 MB, free: 10.07 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.09118, allocations: 0.5648 MB / 273.6 MB, free: 9.453 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.0912, allocations: 0 / 273.6 MB, free: 9.453 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.09134, allocations: 23.92 kB / 273.6 MB, free: 9.43 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.09136, allocations: 0 / 273.6 MB, free: 9.43 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.0914, allocations: 11.94 kB / 273.6 MB, free: 9.418 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.09141, allocations: 0 / 273.6 MB, free: 9.418 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.09142, allocations: 7.938 kB / 273.6 MB, free: 9.41 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004413/0.09187, allocations: 283.5 kB / 273.9 MB, free: 9.117 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.204e-05/0.09194, allocations: 88.95 kB / 274 MB, free: 9.012 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.09199, allocations: 11.98 kB / 274 MB, free: 9 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.09214, allocations: 8 kB / 274 MB, free: 8.992 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.36e-05/0.09225, allocations: 27.95 kB / 274 MB, free: 8.965 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.09228, allocations: 4 kB / 274 MB, free: 8.961 MB / 234.7 MB Notification: Performance of sorting global known variables: time 6.678e-05/0.09236, allocations: 103.2 kB / 274.1 MB, free: 8.859 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.09237, allocations: 0 / 274.1 MB, free: 8.859 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003686/0.09274, allocations: 47.91 kB / 274.2 MB, free: 8.812 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,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.0001721/0.09293, allocations: 111.1 kB / 274.3 MB, free: 8.695 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.000493/0.09343, allocations: 179.8 kB / 274.5 MB, free: 8.52 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.09345, allocations: 448 / 274.5 MB, free: 8.52 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002246/0.09369, allocations: 83.91 kB / 274.6 MB, free: 8.438 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.09394, allocations: 19.98 kB / 274.6 MB, free: 8.418 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007805/0.09474, allocations: 366.9 kB / 274.9 MB, free: 8.031 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.09506, allocations: 0.7367 MB / 275.7 MB, free: 7.27 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.09519, allocations: 25.94 kB / 275.7 MB, free: 7.246 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.559e-05/0.09529, allocations: 19.44 kB / 275.7 MB, free: 7.23 MB / 234.7 MB Notification: Performance of SimCode: time 6.41e-07/0.0953, allocations: 4 kB / 275.7 MB, free: 7.227 MB / 234.7 MB Notification: Performance of Templates: time 0.006614/0.1019, allocations: 1.657 MB / 277.4 MB, free: 5.574 MB / 234.7 MB