Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadModel(Modelica_Synchronous): time 2.631/2.631, allocations: 218.4 MB / 234.2 MB, free: 5.555 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.818e-05/2.808e-05, allocations: 4 kB / 287.6 MB, free: 36 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.3974, allocations: 50.37 MB / 338 MB, free: 15.83 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.002797/0.4003, allocations: 1.533 MB / 339.5 MB, free: 14.28 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000958/0.4013, allocations: 408.2 kB / 339.9 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.371e-05/0.4014, allocations: 4 kB / 339.9 MB, free: 13.87 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.568e-05/0.4015, allocations: 7.938 kB / 339.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.4016, allocations: 23.88 kB / 339.9 MB, free: 13.84 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00013/0.4018, allocations: 19.98 kB / 339.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001804/0.4019, allocations: 55.86 kB / 340 MB, free: 13.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.4021, allocations: 32.16 kB / 340 MB, free: 13.73 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.383e-05/0.4022, allocations: 23.92 kB / 340.1 MB, free: 13.71 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.436e-05/0.4023, allocations: 31.91 kB / 340.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.798e-05/0.4023, allocations: 4 kB / 340.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.693e-05/0.4023, allocations: 0 / 340.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.215e-05/0.4024, allocations: 15.92 kB / 340.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.4024, allocations: 8 kB / 340.1 MB, free: 13.65 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.4026, allocations: 69.62 kB / 340.2 MB, free: 13.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.4026, allocations: 0 / 340.2 MB, free: 13.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4026, allocations: 3.938 kB / 340.2 MB, free: 13.58 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.4026, allocations: 4 kB / 340.2 MB, free: 13.58 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006957/0.4033, allocations: 395.2 kB / 340.6 MB, free: 13.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.4034, allocations: 8.031 kB / 340.6 MB, free: 13.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.476e-05/0.4035, allocations: 11.91 kB / 340.6 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002492/0.4037, allocations: 186.9 kB / 340.8 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.4038, allocations: 8.188 kB / 340.8 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.342e-05/0.4038, allocations: 23.84 kB / 340.8 MB, free: 12.87 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/0.4043, allocations: 128.3 kB / 340.9 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.4043, allocations: 0 / 340.9 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.4043, allocations: 0 / 340.9 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.4043, allocations: 4 kB / 340.9 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004015/0.4048, allocations: 83.94 kB / 341 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009786/0.4057, allocations: 0.5248 MB / 341.5 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.4061, allocations: 82.55 kB / 341.6 MB, free: 11.97 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.4061, allocations: 0 / 341.6 MB, free: 11.97 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.4062, allocations: 38.55 kB / 341.7 MB, free: 11.92 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.733e-06/0.4062, allocations: 0 / 341.7 MB, free: 11.92 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006883/0.4069, allocations: 137.5 kB / 341.8 MB, free: 11.78 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.4069, allocations: 55.5 kB / 341.9 MB, free: 11.71 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.4071, allocations: 121.5 kB / 342 MB, free: 11.59 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.4071, allocations: 25.7 kB / 342 MB, free: 11.56 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.4072, allocations: 186.1 kB / 342.2 MB, free: 11.38 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.705e-05/0.4073, allocations: 23.7 kB / 342.2 MB, free: 11.35 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.764e-06/0.4073, allocations: 0 / 342.2 MB, free: 11.35 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.4075, allocations: 326.8 kB / 342.5 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001905/0.4077, allocations: 35.98 kB / 342.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.4079, allocations: 68.27 kB / 342.6 MB, free: 10.91 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/0.4081, allocations: 47.97 kB / 342.7 MB, free: 10.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.4081, allocations: 0 / 342.7 MB, free: 10.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005305/0.4087, allocations: 149.3 kB / 342.8 MB, free: 10.71 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.4087, allocations: 4 kB / 342.8 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.4087, allocations: 0 / 342.8 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.4088, allocations: 7.984 kB / 342.8 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002895/0.4091, allocations: 35.98 kB / 342.9 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.4091, allocations: 0 / 342.9 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.4092, allocations: 20.02 kB / 342.9 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.4093, allocations: 4 kB / 342.9 MB, free: 10.64 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001268/0.4094, allocations: 125.7 kB / 343 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.877e-05/0.4095, allocations: 11.89 kB / 343 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.942e-05/0.4095, allocations: 12.38 kB / 343 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.4095, allocations: 0 / 343 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.4095, allocations: 3.938 kB / 343 MB, free: 10.47 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.4096, allocations: 0 / 343 MB, free: 10.47 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.4099, allocations: 201.6 kB / 343.2 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.4099, allocations: 0 / 343.2 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.4101, allocations: 23.98 kB / 343.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.4102, allocations: 0 / 343.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.4102, allocations: 4 kB / 343.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.4102, allocations: 3.984 kB / 343.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4102, allocations: 4 kB / 343.3 MB, free: 10.19 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007252/0.4109, allocations: 259.2 kB / 343.5 MB, free: 9.922 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.823e-05/0.411, allocations: 85.05 kB / 343.6 MB, free: 9.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.4111, allocations: 0 / 343.6 MB, free: 9.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.4112, allocations: 16.03 kB / 343.6 MB, free: 9.805 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/0.4113, allocations: 0 / 343.6 MB, free: 9.805 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.4113, allocations: 4 kB / 343.6 MB, free: 9.801 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.256e-05/0.4114, allocations: 95.27 kB / 343.7 MB, free: 9.707 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4114, allocations: 0 / 343.7 MB, free: 9.707 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00033/0.4117, allocations: 27.91 kB / 343.7 MB, free: 9.68 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.0001315/0.4119, allocations: 99.23 kB / 343.8 MB, free: 9.574 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004806/0.4124, allocations: 87.89 kB / 343.9 MB, free: 9.488 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4124, allocations: 0 / 343.9 MB, free: 9.488 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.4126, allocations: 44.16 kB / 344 MB, free: 9.445 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.413, allocations: 23.91 kB / 344 MB, free: 9.426 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.4141, allocations: 464.9 kB / 344.4 MB, free: 8.938 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.4144, allocations: 0.7121 MB / 345.2 MB, free: 8.199 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.796e-05/0.4145, allocations: 15.38 kB / 345.2 MB, free: 8.184 MB / 282.7 MB Notification: Performance of SimCode: time 1.283e-06/0.4145, allocations: 0 / 345.2 MB, free: 8.184 MB / 282.7 MB Notification: Performance of Templates: time 0.00398/0.4185, allocations: 1.222 MB / 346.4 MB, free: 6.957 MB / 282.7 MB