Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadModel(Modelica_LinearSystems2): time 2.384/2.384, allocations: 251.5 MB / 266 MB, free: 0.6875 MB / 218.7 MB Notification: Performance of loadModel(Modelica_Synchronous): time 0.1187/0.1187, allocations: 12.61 MB / 336.6 MB, free: 14.73 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.224e-05/4.221e-05, allocations: 4 kB / 399.8 MB, free: 15.48 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4045/0.4046, allocations: 59.42 MB / 459.2 MB, free: 28.52 MB / 346.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002383/0.4071, allocations: 1.643 MB / 460.8 MB, free: 26.86 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009986/0.4081, allocations: 0.496 MB / 461.3 MB, free: 26.35 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.4082, allocations: 4 kB / 461.3 MB, free: 26.35 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.642e-05/0.4083, allocations: 7.922 kB / 461.3 MB, free: 26.34 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.4084, allocations: 27.88 kB / 461.4 MB, free: 26.31 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.4087, allocations: 47.89 kB / 461.4 MB, free: 26.27 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.4089, allocations: 55.88 kB / 461.5 MB, free: 26.21 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.409, allocations: 43.94 kB / 461.5 MB, free: 26.17 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.467e-05/0.4091, allocations: 31.86 kB / 461.5 MB, free: 26.14 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.191e-05/0.4092, allocations: 35.84 kB / 461.6 MB, free: 26.1 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.543e-05/0.4092, allocations: 4 kB / 461.6 MB, free: 26.1 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.4093, allocations: 4 kB / 461.6 MB, free: 26.09 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.609e-05/0.4093, allocations: 19.92 kB / 461.6 MB, free: 26.07 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.25e-05/0.4093, allocations: 12 kB / 461.6 MB, free: 26.06 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001225/0.4095, allocations: 78.5 kB / 461.7 MB, free: 25.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.4095, allocations: 4 kB / 461.7 MB, free: 25.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4095, allocations: 0 / 461.7 MB, free: 25.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.4095, allocations: 0 / 461.7 MB, free: 25.98 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005904/0.4101, allocations: 412.5 kB / 462.1 MB, free: 25.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.4102, allocations: 8.031 kB / 462.1 MB, free: 25.53 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.448e-05/0.4102, allocations: 11.91 kB / 462.1 MB, free: 25.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002058/0.4104, allocations: 210.8 kB / 462.3 MB, free: 25.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.4105, allocations: 8 kB / 462.3 MB, free: 25.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.591e-05/0.4105, allocations: 12 kB / 462.3 MB, free: 25.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006079/0.4111, allocations: 246.5 kB / 462.6 MB, free: 24.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.4112, allocations: 3.906 kB / 462.6 MB, free: 24.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.997e-05/0.4112, allocations: 11.95 kB / 462.6 MB, free: 24.97 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.4112, allocations: 4 kB / 462.6 MB, free: 24.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003939/0.4116, allocations: 87.88 kB / 462.7 MB, free: 24.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006527/0.4123, allocations: 0.5921 MB / 463.3 MB, free: 24.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.4127, allocations: 152.1 kB / 463.4 MB, free: 24.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.4127, allocations: 7.984 kB / 463.4 MB, free: 24.03 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.709e-05/0.4127, allocations: 38.56 kB / 463.5 MB, free: 23.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.254e-06/0.4127, allocations: 0 / 463.5 MB, free: 23.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007303/0.4135, allocations: 193.5 kB / 463.7 MB, free: 23.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.4135, allocations: 114.7 kB / 463.8 MB, free: 23.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.496e-05/0.4137, allocations: 119.3 kB / 463.9 MB, free: 23.53 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.4137, allocations: 33.7 kB / 463.9 MB, free: 23.49 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.708e-05/0.4138, allocations: 111.8 kB / 464 MB, free: 23.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.4138, allocations: 23.7 kB / 464.1 MB, free: 23.36 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/0.4138, allocations: 4 kB / 464.1 MB, free: 23.35 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.548e-05/0.4139, allocations: 330.8 kB / 464.4 MB, free: 23.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.4141, allocations: 39.97 kB / 464.4 MB, free: 22.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.4143, allocations: 128.9 kB / 464.5 MB, free: 22.81 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.4145, allocations: 59.91 kB / 464.6 MB, free: 22.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.4145, allocations: 0 / 464.6 MB, free: 22.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005772/0.4151, allocations: 201.8 kB / 464.8 MB, free: 22.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.4152, allocations: 9.094 kB / 464.8 MB, free: 22.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.4152, allocations: 4 kB / 464.8 MB, free: 22.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.381e-05/0.4152, allocations: 4 kB / 464.8 MB, free: 22.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002964/0.4155, allocations: 51.91 kB / 464.9 MB, free: 22.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.4156, allocations: 7.953 kB / 464.9 MB, free: 22.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.4157, allocations: 23.83 kB / 464.9 MB, free: 22.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.4158, allocations: 12 kB / 464.9 MB, free: 22.44 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001249/0.4159, allocations: 129.8 kB / 465 MB, free: 22.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.4161, allocations: 85.53 kB / 465.1 MB, free: 22.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.302e-05/0.4162, allocations: 8.719 kB / 465.1 MB, free: 22.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.4162, allocations: 7.938 kB / 465.1 MB, free: 22.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.4162, allocations: 3.984 kB / 465.1 MB, free: 22.19 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.4162, allocations: 7.953 kB / 465.1 MB, free: 22.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.4166, allocations: 205.5 kB / 465.3 MB, free: 21.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.4166, allocations: 0 / 465.3 MB, free: 21.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003163/0.4169, allocations: 39.92 kB / 465.4 MB, free: 21.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.311e-06/0.4169, allocations: 480 / 465.4 MB, free: 21.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.4169, allocations: 4 kB / 465.4 MB, free: 21.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.417, allocations: 0 / 465.4 MB, free: 21.89 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.417, allocations: 0 / 465.4 MB, free: 21.89 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007363/0.4177, allocations: 414.8 kB / 465.8 MB, free: 21.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.598e-05/0.4178, allocations: 88.98 kB / 465.9 MB, free: 21.35 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.116e-05/0.4178, allocations: 12.06 kB / 465.9 MB, free: 21.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.418, allocations: 15.94 kB / 465.9 MB, free: 21.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.907e-05/0.4181, allocations: 3.938 kB / 465.9 MB, free: 21.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.4181, allocations: 8 kB / 465.9 MB, free: 21.31 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.291e-05/0.4182, allocations: 105.4 kB / 466 MB, free: 21.21 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-07/0.4182, allocations: 0 / 466 MB, free: 21.21 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004199/0.4186, allocations: 27.91 kB / 466.1 MB, free: 21.18 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 (14): * Single equations (assignments): 14 * 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.0001049/0.4187, allocations: 103.2 kB / 466.2 MB, free: 21.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004931/0.4193, allocations: 120.6 kB / 466.3 MB, free: 20.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4193, allocations: 4.062 kB / 466.3 MB, free: 20.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.4194, allocations: 31.97 kB / 466.3 MB, free: 20.92 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.4199, allocations: 55.67 kB / 466.4 MB, free: 20.87 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008651/0.4208, allocations: 461.8 kB / 466.8 MB, free: 20.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.421, allocations: 0.7203 MB / 467.5 MB, free: 19.64 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.102e-05/0.4211, allocations: 12.64 kB / 467.5 MB, free: 19.63 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.4211, allocations: 15.44 kB / 467.6 MB, free: 19.61 MB / 346.7 MB Notification: Performance of SimCode: time 9.52e-07/0.4212, allocations: 0 / 467.6 MB, free: 19.61 MB / 346.7 MB Notification: Performance of Templates: time 0.00465/0.4258, allocations: 1.011 MB / 468.6 MB, free: 18.61 MB / 346.7 MB