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.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 2.172/2.172, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.994e-05/3.003e-05, allocations: 4 kB / 258.8 MB, free: 8.711 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3242, allocations: 44.5 MB / 303.3 MB, free: 12.74 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002425/0.3267, allocations: 1.36 MB / 304.6 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007315/0.3274, allocations: 244.7 kB / 304.9 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.624e-05/0.3276, allocations: 5.094 kB / 304.9 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001052/0.3277, allocations: 19.22 kB / 304.9 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.04e-05/0.3277, allocations: 12.97 kB / 304.9 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003716/0.3281, allocations: 86.53 kB / 305 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000271/0.3284, allocations: 130.8 kB / 305.1 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/0.3287, allocations: 129.8 kB / 305.3 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.118e-05/0.3288, allocations: 52.41 kB / 305.3 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001517/0.329, allocations: 69.53 kB / 305.4 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.005e-05/0.3291, allocations: 19.8 kB / 305.4 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.3291, allocations: 13.84 kB / 305.4 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.666e-05/0.3292, allocations: 34 kB / 305.4 MB, free: 11.03 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.972e-05/0.3293, allocations: 11.47 kB / 305.5 MB, free: 11.03 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.3295, allocations: 159.3 kB / 305.6 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.3296, allocations: 0 / 305.6 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.18e-06/0.3296, allocations: 0 / 305.6 MB, free: 10.91 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.3296, allocations: 4.844 kB / 305.6 MB, free: 10.91 MB / 250.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.000816/0.3304, allocations: 436 kB / 306 MB, free: 10.47 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.3305, allocations: 12.84 kB / 306.1 MB, free: 10.47 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.183e-05/0.3306, allocations: 20.34 kB / 306.1 MB, free: 10.46 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.3309, allocations: 237.4 kB / 306.3 MB, free: 10.21 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.879e-05/0.331, allocations: 24.75 kB / 306.3 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.324e-05/0.3311, allocations: 26.19 kB / 306.4 MB, free: 10.19 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000634/0.3317, allocations: 259.3 kB / 306.6 MB, free: 10 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3317, allocations: 5.062 kB / 306.6 MB, free: 9.996 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.3318, allocations: 14.33 kB / 306.6 MB, free: 9.984 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.3318, allocations: 11.95 kB / 306.6 MB, free: 9.98 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004921/0.3323, allocations: 164.8 kB / 306.8 MB, free: 9.902 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.334, allocations: 0.9523 MB / 307.8 MB, free: 9.016 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000434/0.3344, allocations: 154.5 kB / 307.9 MB, free: 8.867 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.3345, allocations: 8.141 kB / 307.9 MB, free: 8.859 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002878/0.3348, allocations: 111.4 kB / 308 MB, free: 8.738 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 2.845e-06/0.3348, allocations: 0 / 308 MB, free: 8.738 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006203/0.3354, allocations: 221.2 kB / 308.2 MB, free: 8.516 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.3355, allocations: 59.41 kB / 308.3 MB, free: 8.445 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.3357, allocations: 146.4 kB / 308.4 MB, free: 8.297 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.471e-05/0.3357, allocations: 41.64 kB / 308.5 MB, free: 8.25 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.3359, allocations: 206.9 kB / 308.7 MB, free: 8.047 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.045e-05/0.336, allocations: 55.25 kB / 308.7 MB, free: 7.992 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.067e-05/0.336, allocations: 8 kB / 308.7 MB, free: 7.984 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3362, allocations: 326.8 kB / 309.1 MB, free: 7.656 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.3364, allocations: 64.62 kB / 309.1 MB, free: 7.59 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002522/0.3366, allocations: 129.9 kB / 309.2 MB, free: 7.434 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.3369, allocations: 71.94 kB / 309.3 MB, free: 7.363 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3369, allocations: 0 / 309.3 MB, free: 7.363 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005996/0.3375, allocations: 249.3 kB / 309.6 MB, free: 7.113 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3375, allocations: 4 kB / 309.6 MB, free: 7.109 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.3375, allocations: 7.984 kB / 309.6 MB, free: 7.102 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.3376, allocations: 4.281 kB / 309.6 MB, free: 7.098 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.3378, allocations: 43.86 kB / 309.6 MB, free: 7.055 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.3379, allocations: 4 kB / 309.6 MB, free: 7.051 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/0.338, allocations: 27.69 kB / 309.7 MB, free: 7.023 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.3381, allocations: 12 kB / 309.7 MB, free: 7.012 MB / 250.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.0002038/0.3383, allocations: 152.4 kB / 309.8 MB, free: 6.852 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.735e-05/0.3383, allocations: 15.77 kB / 309.8 MB, free: 6.836 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005057/0.3389, allocations: 206.6 kB / 310 MB, free: 6.629 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.3389, allocations: 4 kB / 310 MB, free: 6.625 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3389, allocations: 0 / 310 MB, free: 6.625 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.3389, allocations: 0 / 310 MB, free: 6.625 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.34, allocations: 0.5877 MB / 310.6 MB, free: 5.977 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.34, allocations: 0 / 310.6 MB, free: 5.977 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.3401, allocations: 12 kB / 310.6 MB, free: 5.965 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.308e-06/0.3401, allocations: 7.984 kB / 310.6 MB, free: 5.957 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.3402, allocations: 4 kB / 310.6 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/0.3402, allocations: 4 kB / 310.6 MB, free: 5.949 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3402, allocations: 0 / 310.6 MB, free: 5.949 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.3406, allocations: 275.1 kB / 310.9 MB, free: 5.664 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.637e-05/0.3407, allocations: 88.95 kB / 311 MB, free: 5.559 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.3408, allocations: 8 kB / 311 MB, free: 5.551 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.3409, allocations: 4 kB / 311 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.265e-05/0.341, allocations: 31.89 kB / 311 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.341, allocations: 8 kB / 311.1 MB, free: 5.508 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.955e-05/0.3411, allocations: 99.2 kB / 311.2 MB, free: 5.41 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3411, allocations: 4 kB / 311.2 MB, free: 5.406 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003917/0.3415, allocations: 47.84 kB / 311.2 MB, free: 5.359 MB / 250.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.0001836/0.3417, allocations: 115.2 kB / 311.3 MB, free: 5.238 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005141/0.3423, allocations: 180 kB / 311.5 MB, free: 5.062 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.3423, allocations: 4 kB / 311.5 MB, free: 5.059 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002004/0.3425, allocations: 75.91 kB / 311.6 MB, free: 4.984 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.3428, allocations: 27.88 kB / 311.6 MB, free: 4.957 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000863/0.3437, allocations: 409.7 kB / 312 MB, free: 4.523 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.344, allocations: 0.7444 MB / 312.7 MB, free: 3.754 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.687e-05/0.3441, allocations: 27.44 kB / 312.8 MB, free: 3.727 MB / 250.7 MB Notification: Performance of SimCode: time 1.293e-06/0.3441, allocations: 0 / 312.8 MB, free: 3.727 MB / 250.7 MB Notification: Performance of Templates: time 0.006148/0.3503, allocations: 2.319 MB / 315.1 MB, free: 1.41 MB / 250.7 MB