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_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 2.127/2.127, allocations: 171.2 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.282e-05/3.277e-05, allocations: 4 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09649/0.09655, allocations: 38.77 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002988/0.09962, allocations: 1.18 MB / 268.1 MB, free: 15.94 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007719/0.1004, allocations: 223.5 kB / 268.3 MB, free: 15.72 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.1006, allocations: 11.88 kB / 268.3 MB, free: 15.71 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.1007, allocations: 19.86 kB / 268.3 MB, free: 15.69 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.368e-05/0.1008, allocations: 7.922 kB / 268.3 MB, free: 15.68 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000388/0.1012, allocations: 79.89 kB / 268.4 MB, free: 15.61 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002778/0.1015, allocations: 123.8 kB / 268.5 MB, free: 15.48 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003006/0.1018, allocations: 124.5 kB / 268.6 MB, free: 15.36 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.578e-05/0.1019, allocations: 51.91 kB / 268.7 MB, free: 15.3 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.1021, allocations: 67.75 kB / 268.8 MB, free: 15.24 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.395e-05/0.1022, allocations: 16 kB / 268.8 MB, free: 15.22 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.75e-05/0.1022, allocations: 8 kB / 268.8 MB, free: 15.21 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.94e-05/0.1023, allocations: 43.83 kB / 268.8 MB, free: 15.17 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.437e-05/0.1024, allocations: 12 kB / 268.8 MB, free: 15.16 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.1027, allocations: 151.6 kB / 269 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1027, allocations: 0 / 269 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1027, allocations: 0 / 269 MB, free: 15.01 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.1027, allocations: 0 / 269 MB, free: 15.01 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.0008771/0.1036, allocations: 434.7 kB / 269.4 MB, free: 14.54 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.1037, allocations: 12.03 kB / 269.4 MB, free: 14.53 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.177e-05/0.1038, allocations: 23.8 kB / 269.4 MB, free: 14.5 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/0.1042, allocations: 226.7 kB / 269.7 MB, free: 14.24 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.707e-05/0.1042, allocations: 20.44 kB / 269.7 MB, free: 14.22 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.559e-05/0.1043, allocations: 24 kB / 269.7 MB, free: 14.2 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006432/0.105, allocations: 233.8 kB / 269.9 MB, free: 13.96 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.105, allocations: 0 / 269.9 MB, free: 13.96 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.1051, allocations: 8 kB / 269.9 MB, free: 13.95 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.1051, allocations: 4 kB / 269.9 MB, free: 13.95 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004871/0.1056, allocations: 173.6 kB / 270.1 MB, free: 13.78 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001504/0.1071, allocations: 0.6858 MB / 270.8 MB, free: 13.04 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.1076, allocations: 175.3 kB / 271 MB, free: 12.86 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.1077, allocations: 4.188 kB / 271 MB, free: 12.85 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003305/0.108, allocations: 119.3 kB / 271.1 MB, free: 12.72 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 3.366e-06/0.108, allocations: 4 kB / 271.1 MB, free: 12.72 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007691/0.1088, allocations: 209.4 kB / 271.3 MB, free: 12.51 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.316e-05/0.1089, allocations: 63.33 kB / 271.4 MB, free: 12.43 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001742/0.1091, allocations: 137 kB / 271.5 MB, free: 12.29 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/0.1092, allocations: 37.7 kB / 271.5 MB, free: 12.25 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.1093, allocations: 202.9 kB / 271.7 MB, free: 12.05 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.325e-05/0.1094, allocations: 59.19 kB / 271.8 MB, free: 11.99 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-05/0.1095, allocations: 12 kB / 271.8 MB, free: 11.98 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.1097, allocations: 330.8 kB / 272.1 MB, free: 11.64 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.1099, allocations: 60.62 kB / 272.2 MB, free: 11.58 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.1101, allocations: 120.1 kB / 272.3 MB, free: 11.44 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002351/0.1104, allocations: 75.95 kB / 272.4 MB, free: 11.37 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1104, allocations: 0 / 272.4 MB, free: 11.37 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006291/0.111, allocations: 237.2 kB / 272.6 MB, free: 11.13 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.1111, allocations: 5.875 kB / 272.6 MB, free: 11.12 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.1111, allocations: 4 kB / 272.6 MB, free: 11.12 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.621e-05/0.1111, allocations: 4.219 kB / 272.6 MB, free: 11.12 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002431/0.1114, allocations: 27.92 kB / 272.6 MB, free: 11.09 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.1114, allocations: 7.938 kB / 272.7 MB, free: 11.08 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001762/0.1116, allocations: 31.83 kB / 272.7 MB, free: 11.05 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/0.1117, allocations: 8 kB / 272.7 MB, free: 11.04 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.0002402/0.1119, allocations: 157.7 kB / 272.8 MB, free: 10.88 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.13e-05/0.112, allocations: 15.81 kB / 272.9 MB, free: 10.86 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006108/0.1126, allocations: 194.3 kB / 273.1 MB, free: 10.66 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.1126, allocations: 12 kB / 273.1 MB, free: 10.65 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.1126, allocations: 0 / 273.1 MB, free: 10.65 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.1127, allocations: 3.984 kB / 273.1 MB, free: 10.65 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.1139, allocations: 0.5609 MB / 273.6 MB, free: 10.03 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.1139, allocations: 0 / 273.6 MB, free: 10.03 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.1141, allocations: 19.92 kB / 273.6 MB, free: 10.01 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.1141, allocations: 4 kB / 273.7 MB, free: 10.01 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.1141, allocations: 8 kB / 273.7 MB, free: 10 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.1141, allocations: 0 / 273.7 MB, free: 10 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.1141, allocations: 3.984 kB / 273.7 MB, free: 9.996 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005093/0.1147, allocations: 279.6 kB / 273.9 MB, free: 9.707 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.707e-05/0.1148, allocations: 96.84 kB / 274 MB, free: 9.594 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.993e-05/0.1148, allocations: 4 kB / 274 MB, free: 9.59 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.115, allocations: 12 kB / 274 MB, free: 9.578 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.1151, allocations: 23.95 kB / 274.1 MB, free: 9.555 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.1151, allocations: 8 kB / 274.1 MB, free: 9.547 MB / 234.7 MB Notification: Performance of sorting global known variables: time 9.078e-05/0.1152, allocations: 99.22 kB / 274.2 MB, free: 9.449 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1152, allocations: 0 / 274.2 MB, free: 9.449 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0004346/0.1157, allocations: 51.84 kB / 274.2 MB, free: 9.398 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.0002149/0.1159, allocations: 111.2 kB / 274.3 MB, free: 9.281 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005802/0.1165, allocations: 179.7 kB / 274.5 MB, free: 9.105 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.1165, allocations: 0 / 274.5 MB, free: 9.105 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.1167, allocations: 83.86 kB / 274.6 MB, free: 9.023 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.117, allocations: 23.92 kB / 274.6 MB, free: 9 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009398/0.118, allocations: 389 kB / 275 MB, free: 8.586 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004636/0.1185, allocations: 0.7367 MB / 275.7 MB, free: 7.824 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.1186, allocations: 23.44 kB / 275.8 MB, free: 7.805 MB / 234.7 MB Notification: Performance of SimCode: time 2.835e-06/0.1186, allocations: 0 / 275.8 MB, free: 7.805 MB / 234.7 MB Notification: Performance of Templates: time 0.006815/0.1255, allocations: 2.269 MB / 278 MB, free: 5.531 MB / 234.7 MB