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_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.814/1.814, allocations: 171.1 MB / 186.3 MB, free: 1.336 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.534e-05/3.529e-05, allocations: 6.188 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08992/0.08999, allocations: 38.77 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002549/0.0926, allocations: 1.358 MB / 268.2 MB, free: 15.75 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007771/0.09344, allocations: 235.5 kB / 268.5 MB, free: 15.52 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.09357, allocations: 11.88 kB / 268.5 MB, free: 15.51 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.09371, allocations: 19.86 kB / 268.5 MB, free: 15.49 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.439e-05/0.09378, allocations: 11.92 kB / 268.5 MB, free: 15.48 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004123/0.0942, allocations: 87.89 kB / 268.6 MB, free: 15.39 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003005/0.09452, allocations: 131.8 kB / 268.7 MB, free: 15.26 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003243/0.09486, allocations: 125.2 kB / 268.8 MB, free: 15.13 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.09497, allocations: 55.84 kB / 268.9 MB, free: 15.08 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.09514, allocations: 67.75 kB / 269 MB, free: 15.01 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.09529, allocations: 16 kB / 269 MB, free: 15 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.175e-05/0.09535, allocations: 12 kB / 269 MB, free: 14.98 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.153e-05/0.09543, allocations: 35.84 kB / 269 MB, free: 14.95 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.191e-05/0.09548, allocations: 12 kB / 269 MB, free: 14.94 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003105/0.09581, allocations: 163.9 kB / 269.2 MB, free: 14.78 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.09583, allocations: 0 / 269.2 MB, free: 14.78 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.09584, allocations: 3.938 kB / 269.2 MB, free: 14.77 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.09586, allocations: 0 / 269.2 MB, free: 14.77 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.0008375/0.09671, allocations: 446 kB / 269.6 MB, free: 14.29 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.09677, allocations: 12.03 kB / 269.7 MB, free: 14.28 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.507e-05/0.09686, allocations: 23.72 kB / 269.7 MB, free: 14.26 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003564/0.09723, allocations: 226.8 kB / 269.9 MB, free: 14 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.987e-05/0.0973, allocations: 20.56 kB / 269.9 MB, free: 13.98 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.611e-05/0.09737, allocations: 31.95 kB / 269.9 MB, free: 13.95 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006708/0.09805, allocations: 258 kB / 270.2 MB, free: 13.68 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.09809, allocations: 7.938 kB / 270.2 MB, free: 13.67 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.935e-05/0.09815, allocations: 8 kB / 270.2 MB, free: 13.66 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.09818, allocations: 11.98 kB / 270.2 MB, free: 13.65 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005228/0.09871, allocations: 169.6 kB / 270.4 MB, free: 13.48 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.1005, allocations: 0.9521 MB / 271.3 MB, free: 12.46 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004362/0.101, allocations: 155.2 kB / 271.5 MB, free: 12.3 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.1011, allocations: 4.172 kB / 271.5 MB, free: 12.3 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003247/0.1014, allocations: 130.6 kB / 271.6 MB, free: 12.16 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 3.807e-06/0.1014, allocations: 0 / 271.6 MB, free: 12.16 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006826/0.1021, allocations: 217.2 kB / 271.8 MB, free: 11.94 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/0.1022, allocations: 55.41 kB / 271.9 MB, free: 11.88 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.1024, allocations: 137.1 kB / 272 MB, free: 11.73 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.148e-05/0.1025, allocations: 41.69 kB / 272.1 MB, free: 11.69 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.1027, allocations: 206.9 kB / 272.3 MB, free: 11.48 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.371e-05/0.1028, allocations: 55.3 kB / 272.3 MB, free: 11.43 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.806e-05/0.1028, allocations: 4 kB / 272.3 MB, free: 11.43 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.103, allocations: 326.8 kB / 272.6 MB, free: 11.1 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.1032, allocations: 60.62 kB / 272.7 MB, free: 11.04 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002908/0.1035, allocations: 137.8 kB / 272.8 MB, free: 10.87 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002418/0.1038, allocations: 83.89 kB / 272.9 MB, free: 10.79 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1038, allocations: 0 / 272.9 MB, free: 10.79 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006364/0.1044, allocations: 241.2 kB / 273.2 MB, free: 10.55 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.1045, allocations: 8.281 kB / 273.2 MB, free: 10.54 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1045, allocations: 7.984 kB / 273.2 MB, free: 10.53 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/0.1045, allocations: 4 kB / 273.2 MB, free: 10.53 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002564/0.1048, allocations: 39.88 kB / 273.2 MB, free: 10.49 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/0.1048, allocations: 7.984 kB / 273.2 MB, free: 10.48 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.105, allocations: 23.75 kB / 273.3 MB, free: 10.46 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.577e-05/0.1051, allocations: 12 kB / 273.3 MB, free: 10.45 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.0002493/0.1053, allocations: 156.3 kB / 273.4 MB, free: 10.29 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.489e-05/0.1054, allocations: 15.84 kB / 273.4 MB, free: 10.27 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005602/0.106, allocations: 194.7 kB / 273.6 MB, free: 10.07 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.106, allocations: 0 / 273.6 MB, free: 10.07 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.106, allocations: 3.953 kB / 273.6 MB, free: 10.07 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.106, allocations: 7.984 kB / 273.6 MB, free: 10.06 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.1072, allocations: 0.5797 MB / 274.2 MB, free: 9.418 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.1073, allocations: 4 kB / 274.2 MB, free: 9.414 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.1075, allocations: 23.92 kB / 274.2 MB, free: 9.391 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.079e-05/0.1075, allocations: 3.953 kB / 274.2 MB, free: 9.387 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.1075, allocations: 8 kB / 274.3 MB, free: 9.379 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.1075, allocations: 0 / 274.3 MB, free: 9.379 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1075, allocations: 3.984 kB / 274.3 MB, free: 9.375 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000489/0.108, allocations: 267.7 kB / 274.5 MB, free: 9.098 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.1081, allocations: 96.8 kB / 274.6 MB, free: 8.984 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.472e-05/0.1082, allocations: 11.94 kB / 274.6 MB, free: 8.973 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.1083, allocations: 8 kB / 274.6 MB, free: 8.965 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.1085, allocations: 23.97 kB / 274.7 MB, free: 8.941 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-05/0.1085, allocations: 7.984 kB / 274.7 MB, free: 8.934 MB / 234.7 MB Notification: Performance of sorting global known variables: time 9.411e-05/0.1086, allocations: 103.8 kB / 274.8 MB, free: 8.832 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1086, allocations: 0 / 274.8 MB, free: 8.832 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0004351/0.1091, allocations: 51.84 kB / 274.8 MB, free: 8.781 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.0002067/0.1093, allocations: 115.1 kB / 274.9 MB, free: 8.66 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005277/0.1098, allocations: 175.8 kB / 275.1 MB, free: 8.488 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.1098, allocations: 0 / 275.1 MB, free: 8.488 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002271/0.1101, allocations: 83.84 kB / 275.2 MB, free: 8.406 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.1104, allocations: 23.92 kB / 275.2 MB, free: 8.383 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009806/0.1114, allocations: 401.2 kB / 275.6 MB, free: 7.961 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.1118, allocations: 0.7406 MB / 276.3 MB, free: 7.195 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.112, allocations: 27.42 kB / 276.4 MB, free: 7.168 MB / 234.7 MB Notification: Performance of SimCode: time 1.894e-06/0.112, allocations: 0 / 276.4 MB, free: 7.168 MB / 234.7 MB Notification: Performance of Templates: time 0.006981/0.119, allocations: 2.323 MB / 278.7 MB, free: 4.84 MB / 234.7 MB