Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadModel(Modelica_Synchronous): time 2.401/2.401, allocations: 218.4 MB / 234.2 MB, free: 4.629 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.091e-05/3.102e-05, allocations: 4 kB / 287.6 MB, free: 15.11 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.3876, allocations: 50.37 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002967/0.3907, allocations: 1.642 MB / 339.6 MB, free: 14.2 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.392, allocations: 0.5155 MB / 340.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.3921, allocations: 4 kB / 340.1 MB, free: 13.67 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.414e-05/0.3922, allocations: 11.86 kB / 340.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.3924, allocations: 23.95 kB / 340.2 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003241/0.3927, allocations: 55.75 kB / 340.2 MB, free: 13.58 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.3929, allocations: 59.86 kB / 340.3 MB, free: 13.52 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.3931, allocations: 35.95 kB / 340.3 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.855e-05/0.3932, allocations: 35.91 kB / 340.3 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.3933, allocations: 39.84 kB / 340.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.843e-05/0.3933, allocations: 4 kB / 340.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.3933, allocations: 4 kB / 340.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.573e-05/0.3934, allocations: 23.86 kB / 340.4 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.289e-05/0.3934, allocations: 8 kB / 340.4 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.3936, allocations: 81.66 kB / 340.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3936, allocations: 0 / 340.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3936, allocations: 0 / 340.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.3936, allocations: 4 kB / 340.5 MB, free: 13.29 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007457/0.3944, allocations: 407 kB / 340.9 MB, free: 12.85 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.3945, allocations: 12.03 kB / 340.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.422e-05/0.3945, allocations: 11.81 kB / 340.9 MB, free: 12.82 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002993/0.3948, allocations: 198.9 kB / 341.1 MB, free: 12.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.3949, allocations: 16 kB / 341.1 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.809e-05/0.3949, allocations: 12 kB / 341.1 MB, free: 12.56 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007731/0.3957, allocations: 258.4 kB / 341.4 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.3958, allocations: 0 / 341.4 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.3958, allocations: 11.94 kB / 341.4 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.3958, allocations: 4 kB / 341.4 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004425/0.3963, allocations: 91.88 kB / 341.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008641/0.3971, allocations: 0.592 MB / 342.1 MB, free: 11.51 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000529/0.3977, allocations: 155.9 kB / 342.2 MB, free: 11.33 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.3978, allocations: 3.938 kB / 342.2 MB, free: 11.33 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.3978, allocations: 42.56 kB / 342.3 MB, free: 11.28 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.415e-06/0.3978, allocations: 0 / 342.3 MB, free: 11.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008516/0.3987, allocations: 197.5 kB / 342.5 MB, free: 11.08 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.568e-05/0.3988, allocations: 110.8 kB / 342.6 MB, free: 10.95 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.3989, allocations: 125.2 kB / 342.7 MB, free: 10.82 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.399, allocations: 25.7 kB / 342.7 MB, free: 10.79 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.3991, allocations: 182.4 kB / 342.9 MB, free: 10.61 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.679e-05/0.3991, allocations: 23.7 kB / 342.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.3992, allocations: 4 kB / 342.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3993, allocations: 326.9 kB / 343.3 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.3995, allocations: 40.34 kB / 343.3 MB, free: 10.21 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.3998, allocations: 146.3 kB / 343.4 MB, free: 10.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.4001, allocations: 55.92 kB / 343.5 MB, free: 9.965 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.4001, allocations: 0 / 343.5 MB, free: 9.965 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00065/0.4008, allocations: 213.7 kB / 343.7 MB, free: 9.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.4008, allocations: 8 kB / 343.7 MB, free: 9.742 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.4008, allocations: 3.984 kB / 343.7 MB, free: 9.738 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.4009, allocations: 8 kB / 343.7 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.4012, allocations: 43.92 kB / 343.8 MB, free: 9.688 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.4012, allocations: 7.984 kB / 343.8 MB, free: 9.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.4014, allocations: 19.91 kB / 343.8 MB, free: 9.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.4014, allocations: 12.16 kB / 343.8 MB, free: 9.648 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001484/0.4016, allocations: 129.7 kB / 343.9 MB, free: 9.512 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.4019, allocations: 97.78 kB / 344 MB, free: 9.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.728e-05/0.402, allocations: 16.72 kB / 344 MB, free: 9.391 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.402, allocations: 0 / 344 MB, free: 9.391 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.402, allocations: 4 kB / 344.1 MB, free: 9.387 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.402, allocations: 0 / 344.1 MB, free: 9.387 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003749/0.4024, allocations: 213.4 kB / 344.3 MB, free: 9.129 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/0.4024, allocations: 4 kB / 344.3 MB, free: 9.125 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003545/0.4028, allocations: 47.91 kB / 344.3 MB, free: 9.078 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.636e-06/0.4028, allocations: 3.953 kB / 344.3 MB, free: 9.074 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.4028, allocations: 8 kB / 344.3 MB, free: 9.066 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.4029, allocations: 0 / 344.3 MB, free: 9.066 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4029, allocations: 0 / 344.3 MB, free: 9.066 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009254/0.4038, allocations: 416.5 kB / 344.7 MB, free: 8.629 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.522e-05/0.4039, allocations: 93.05 kB / 344.8 MB, free: 8.52 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.412e-05/0.4039, allocations: 4 kB / 344.8 MB, free: 8.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.4042, allocations: 15.98 kB / 344.8 MB, free: 8.5 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.986e-05/0.4042, allocations: 0 / 344.8 MB, free: 8.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.4043, allocations: 7.984 kB / 344.8 MB, free: 8.492 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.752e-05/0.4044, allocations: 99.27 kB / 344.9 MB, free: 8.395 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4044, allocations: 0 / 344.9 MB, free: 8.395 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004342/0.4048, allocations: 27.91 kB / 345 MB, free: 8.367 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001367/0.405, allocations: 103.2 kB / 345.1 MB, free: 8.258 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005597/0.4055, allocations: 136.6 kB / 345.2 MB, free: 8.125 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.4056, allocations: 0 / 345.2 MB, free: 8.125 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001836/0.4057, allocations: 35.91 kB / 345.2 MB, free: 8.09 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004966/0.4063, allocations: 55.83 kB / 345.3 MB, free: 8.035 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.4073, allocations: 0.4917 MB / 345.8 MB, free: 7.504 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.4077, allocations: 0.7128 MB / 346.5 MB, free: 6.766 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.907e-05/0.4078, allocations: 27.8 kB / 346.5 MB, free: 6.738 MB / 282.7 MB Notification: Performance of SimCode: time 3.025e-06/0.4078, allocations: 0 / 346.5 MB, free: 6.738 MB / 282.7 MB Notification: Performance of Templates: time 0.004594/0.4124, allocations: 1.486 MB / 348 MB, free: 5.254 MB / 282.7 MB