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.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 2.09/2.09, allocations: 194.9 MB / 211.2 MB, free: 7.867 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.963e-05/2.957e-05, allocations: 7.984 kB / 258.8 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3065, allocations: 44.49 MB / 303.3 MB, free: 12.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002727/0.3093, allocations: 1.391 MB / 304.7 MB, free: 11.68 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008507/0.3102, allocations: 243 kB / 304.9 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.3104, allocations: 6.188 kB / 304.9 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.3105, allocations: 22.89 kB / 304.9 MB, free: 11.47 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.014e-05/0.3106, allocations: 9.078 kB / 304.9 MB, free: 11.46 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000472/0.3111, allocations: 89.48 kB / 305 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000329/0.3114, allocations: 126 kB / 305.1 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.3118, allocations: 129.3 kB / 305.3 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.3119, allocations: 51.19 kB / 305.3 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.3121, allocations: 66.22 kB / 305.4 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.673e-05/0.3122, allocations: 24.42 kB / 305.4 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.674e-05/0.3123, allocations: 9.062 kB / 305.4 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.196e-05/0.3123, allocations: 38.02 kB / 305.5 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.11e-05/0.3124, allocations: 15.81 kB / 305.5 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.3127, allocations: 152.4 kB / 305.6 MB, free: 10.98 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3127, allocations: 0 / 305.6 MB, free: 10.98 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3128, allocations: 1.062 kB / 305.6 MB, free: 10.98 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.3128, allocations: 0 / 305.6 MB, free: 10.98 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.0007839/0.3136, allocations: 432 kB / 306 MB, free: 10.55 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.3136, allocations: 8.5 kB / 306.1 MB, free: 10.55 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.491e-05/0.3137, allocations: 19.38 kB / 306.1 MB, free: 10.54 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.3141, allocations: 237.9 kB / 306.3 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.133e-05/0.3141, allocations: 28 kB / 306.3 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.295e-05/0.3142, allocations: 26.66 kB / 306.4 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000648/0.3149, allocations: 264.2 kB / 306.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.3149, allocations: 0 / 306.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/0.315, allocations: 11.12 kB / 306.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.315, allocations: 5.562 kB / 306.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005005/0.3155, allocations: 170.7 kB / 306.8 MB, free: 9.984 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.3172, allocations: 0.9543 MB / 307.8 MB, free: 8.961 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004177/0.3177, allocations: 151.4 kB / 307.9 MB, free: 8.805 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.573e-05/0.3178, allocations: 12.12 kB / 307.9 MB, free: 8.793 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002963/0.3181, allocations: 115.4 kB / 308 MB, free: 8.668 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 3.286e-06/0.3181, allocations: 0 / 308 MB, free: 8.668 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006424/0.3187, allocations: 211.5 kB / 308.2 MB, free: 8.457 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.3188, allocations: 55.41 kB / 308.3 MB, free: 8.391 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.319, allocations: 147.9 kB / 308.4 MB, free: 8.242 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.992e-05/0.3191, allocations: 41.64 kB / 308.5 MB, free: 8.195 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.3192, allocations: 206.9 kB / 308.7 MB, free: 7.992 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.512e-05/0.3193, allocations: 71.17 kB / 308.7 MB, free: 7.922 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.768e-05/0.3193, allocations: 4 kB / 308.7 MB, free: 7.918 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3195, allocations: 322.8 kB / 309.1 MB, free: 7.594 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.3197, allocations: 60.62 kB / 309.1 MB, free: 7.535 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.32, allocations: 133.9 kB / 309.3 MB, free: 7.375 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.3202, allocations: 67.88 kB / 309.3 MB, free: 7.309 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.3202, allocations: 4 kB / 309.3 MB, free: 7.305 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006327/0.3209, allocations: 245.3 kB / 309.6 MB, free: 7.059 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.3209, allocations: 15.94 kB / 309.6 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.3209, allocations: 0 / 309.6 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.485e-05/0.321, allocations: 4 kB / 309.6 MB, free: 7.039 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.3212, allocations: 35.92 kB / 309.6 MB, free: 7.004 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.3212, allocations: 4 kB / 309.6 MB, free: 7 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.3214, allocations: 35.97 kB / 309.7 MB, free: 6.965 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.046e-05/0.3215, allocations: 23.92 kB / 309.7 MB, free: 6.941 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.0002164/0.3217, allocations: 151 kB / 309.8 MB, free: 6.785 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.917e-05/0.3218, allocations: 11.81 kB / 309.8 MB, free: 6.773 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005435/0.3223, allocations: 194.3 kB / 310 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.3224, allocations: 4 kB / 310 MB, free: 6.57 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3224, allocations: 0 / 310 MB, free: 6.57 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3224, allocations: 0 / 310 MB, free: 6.57 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.3236, allocations: 0.5954 MB / 310.6 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3236, allocations: 0 / 310.6 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.3237, allocations: 11.94 kB / 310.6 MB, free: 5.902 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.011e-05/0.3238, allocations: 4 kB / 310.6 MB, free: 5.898 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.3238, allocations: 7.984 kB / 310.7 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.3238, allocations: 0 / 310.7 MB, free: 5.891 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.3238, allocations: 4 kB / 310.7 MB, free: 5.887 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004857/0.3243, allocations: 271.2 kB / 310.9 MB, free: 5.605 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.299e-05/0.3244, allocations: 92.91 kB / 311 MB, free: 5.496 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/0.3245, allocations: 4 kB / 311 MB, free: 5.492 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.3246, allocations: 11.94 kB / 311 MB, free: 5.48 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.3248, allocations: 27.89 kB / 311.1 MB, free: 5.453 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.3248, allocations: 8 kB / 311.1 MB, free: 5.445 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000101/0.3249, allocations: 99.2 kB / 311.2 MB, free: 5.348 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3249, allocations: 4 kB / 311.2 MB, free: 5.344 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004316/0.3254, allocations: 51.84 kB / 311.2 MB, free: 5.293 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,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.0002062/0.3256, allocations: 107.2 kB / 311.3 MB, free: 5.18 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000548/0.3261, allocations: 175.7 kB / 311.5 MB, free: 5.008 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3262, allocations: 0 / 311.5 MB, free: 5.008 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002089/0.3264, allocations: 80.47 kB / 311.6 MB, free: 4.93 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000284/0.3267, allocations: 23.94 kB / 311.6 MB, free: 4.906 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009165/0.3276, allocations: 413.4 kB / 312 MB, free: 4.473 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.328, allocations: 0.7367 MB / 312.7 MB, free: 3.711 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.3281, allocations: 23.42 kB / 312.8 MB, free: 3.688 MB / 250.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3281, allocations: 0 / 312.8 MB, free: 3.688 MB / 250.7 MB Notification: Performance of Templates: time 0.006632/0.3348, allocations: 2.311 MB / 315.1 MB, free: 1.379 MB / 250.7 MB