Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadModel(Modelica_LinearSystems2): time 2.469/2.469, allocations: 251.5 MB / 266 MB, free: 0.6758 MB / 218.7 MB Notification: Performance of loadModel(Modelica_Synchronous): time 0.116/0.116, allocations: 12.6 MB / 336.6 MB, free: 14.74 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.851e-05/3.849e-05, allocations: 4 kB / 399.8 MB, free: 15.48 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4142/0.4142, allocations: 59.43 MB / 459.2 MB, free: 28.62 MB / 346.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002438/0.4167, allocations: 1.647 MB / 460.8 MB, free: 26.96 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.4179, allocations: 0.5116 MB / 461.3 MB, free: 26.44 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.418, allocations: 7.938 kB / 461.4 MB, free: 26.43 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.104e-05/0.418, allocations: 11.86 kB / 461.4 MB, free: 26.42 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.4182, allocations: 31.81 kB / 461.4 MB, free: 26.39 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.4185, allocations: 43.95 kB / 461.4 MB, free: 26.35 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.4187, allocations: 63.86 kB / 461.5 MB, free: 26.29 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.4188, allocations: 31.95 kB / 461.5 MB, free: 26.25 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.389e-05/0.4189, allocations: 35.92 kB / 461.6 MB, free: 26.22 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.117e-05/0.419, allocations: 39.84 kB / 461.6 MB, free: 26.18 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.624e-05/0.419, allocations: 7.938 kB / 461.6 MB, free: 26.17 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.419, allocations: 4 kB / 461.6 MB, free: 26.17 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.54e-05/0.4191, allocations: 15.92 kB / 461.6 MB, free: 26.15 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.599e-05/0.4191, allocations: 8 kB / 461.6 MB, free: 26.14 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.4193, allocations: 82.5 kB / 461.7 MB, free: 26.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4193, allocations: 0 / 461.7 MB, free: 26.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.4193, allocations: 3.938 kB / 461.7 MB, free: 26.06 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.4193, allocations: 0 / 461.7 MB, free: 26.06 MB / 346.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.0006583/0.42, allocations: 418.9 kB / 462.1 MB, free: 25.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.42, allocations: 12.03 kB / 462.1 MB, free: 25.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.984e-05/0.4201, allocations: 11.81 kB / 462.2 MB, free: 25.58 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.4203, allocations: 198.9 kB / 462.3 MB, free: 25.35 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.836e-05/0.4204, allocations: 11.98 kB / 462.4 MB, free: 25.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.4204, allocations: 19.98 kB / 462.4 MB, free: 25.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000648/0.4211, allocations: 258.4 kB / 462.6 MB, free: 25.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.4211, allocations: 0 / 462.6 MB, free: 25.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.4211, allocations: 11.95 kB / 462.6 MB, free: 25.03 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.4212, allocations: 4 kB / 462.6 MB, free: 25.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004008/0.4216, allocations: 99.86 kB / 462.7 MB, free: 24.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006724/0.4223, allocations: 0.5804 MB / 463.3 MB, free: 24.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00046/0.4227, allocations: 163.8 kB / 463.5 MB, free: 24.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.188e-05/0.4228, allocations: 3.984 kB / 463.5 MB, free: 24.08 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.4228, allocations: 34.56 kB / 463.5 MB, free: 24.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.575e-06/0.4228, allocations: 4 kB / 463.5 MB, free: 24.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007655/0.4236, allocations: 189.8 kB / 463.7 MB, free: 23.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.476e-05/0.4237, allocations: 119 kB / 463.8 MB, free: 23.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.912e-05/0.4238, allocations: 127.5 kB / 464 MB, free: 23.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.4238, allocations: 29.7 kB / 464 MB, free: 23.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.4239, allocations: 108 kB / 464.1 MB, free: 23.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.797e-05/0.4239, allocations: 23.7 kB / 464.1 MB, free: 23.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-06/0.424, allocations: 4 kB / 464.1 MB, free: 23.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.907e-05/0.424, allocations: 326.8 kB / 464.4 MB, free: 23.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/0.4242, allocations: 44.34 kB / 464.5 MB, free: 23.03 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.4245, allocations: 147.8 kB / 464.6 MB, free: 22.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.4247, allocations: 63.92 kB / 464.7 MB, free: 22.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4247, allocations: 0 / 464.7 MB, free: 22.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005563/0.4253, allocations: 197.6 kB / 464.9 MB, free: 22.58 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.4253, allocations: 16.08 kB / 464.9 MB, free: 22.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.4253, allocations: 0 / 464.9 MB, free: 22.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.4254, allocations: 8 kB / 464.9 MB, free: 22.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.4257, allocations: 47.86 kB / 464.9 MB, free: 22.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.4257, allocations: 7.984 kB / 465 MB, free: 22.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001629/0.4259, allocations: 19.91 kB / 465 MB, free: 22.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.4259, allocations: 11.94 kB / 465 MB, free: 22.47 MB / 346.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.0001136/0.426, allocations: 137.7 kB / 465.1 MB, free: 22.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.4262, allocations: 89.52 kB / 465.2 MB, free: 22.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.57e-05/0.4263, allocations: 16.95 kB / 465.2 MB, free: 22.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.4263, allocations: 0 / 465.2 MB, free: 22.21 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/0.4263, allocations: 4 kB / 465.2 MB, free: 22.21 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.4264, allocations: 3.984 kB / 465.2 MB, free: 22.21 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.4267, allocations: 209.4 kB / 465.4 MB, free: 21.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4267, allocations: 0 / 465.4 MB, free: 21.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.427, allocations: 47.91 kB / 465.5 MB, free: 21.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.427, allocations: 0 / 465.5 MB, free: 21.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.4271, allocations: 8 kB / 465.5 MB, free: 21.9 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.4271, allocations: 0 / 465.5 MB, free: 21.9 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4271, allocations: 0 / 465.5 MB, free: 21.9 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007724/0.4279, allocations: 414.8 kB / 465.9 MB, free: 21.46 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.4279, allocations: 92.89 kB / 466 MB, free: 21.35 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.428, allocations: 8 kB / 466 MB, free: 21.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.4282, allocations: 16.14 kB / 466 MB, free: 21.33 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.4282, allocations: 3.938 kB / 466 MB, free: 21.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.4283, allocations: 11.95 kB / 466 MB, free: 21.31 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.769e-05/0.4283, allocations: 100.1 kB / 466.1 MB, free: 21.21 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4283, allocations: 0 / 466.1 MB, free: 21.21 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004379/0.4288, allocations: 24 kB / 466.1 MB, free: 21.19 MB / 346.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.0001097/0.4289, allocations: 103.2 kB / 466.2 MB, free: 21.08 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005585/0.4295, allocations: 132.6 kB / 466.4 MB, free: 20.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4295, allocations: 64 / 466.4 MB, free: 20.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.4297, allocations: 39.91 kB / 466.4 MB, free: 20.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004925/0.4302, allocations: 52.56 kB / 466.5 MB, free: 20.86 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009013/0.4311, allocations: 474.8 kB / 466.9 MB, free: 20.37 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001727/0.4313, allocations: 0.7167 MB / 467.6 MB, free: 19.63 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.23e-05/0.4314, allocations: 13.08 kB / 467.7 MB, free: 19.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.921e-05/0.4314, allocations: 15.44 kB / 467.7 MB, free: 19.6 MB / 346.7 MB Notification: Performance of SimCode: time 1.663e-06/0.4315, allocations: 0 / 467.7 MB, free: 19.6 MB / 346.7 MB Notification: Performance of Templates: time 0.005038/0.4365, allocations: 1.03 MB / 468.7 MB, free: 18.57 MB / 346.7 MB