Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadModel(Modelica_LinearSystems2): time 2.514/2.514, allocations: 251.5 MB / 266 MB, free: 0.6875 MB / 218.7 MB Notification: Performance of loadModel(Modelica_Synchronous): time 0.1305/0.1305, allocations: 12.6 MB / 336.6 MB, free: 14.73 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.375e-05/4.361e-05, allocations: 0 / 399.8 MB, free: 15.48 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4137/0.4137, allocations: 59.43 MB / 459.2 MB, free: 28.62 MB / 346.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002541/0.4163, allocations: 1.697 MB / 460.9 MB, free: 26.91 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.4174, allocations: 499.9 kB / 461.4 MB, free: 26.41 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.4176, allocations: 4 kB / 461.4 MB, free: 26.41 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.019e-05/0.4176, allocations: 15.86 kB / 461.4 MB, free: 26.39 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.4177, allocations: 23.94 kB / 461.4 MB, free: 26.37 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.4181, allocations: 51.83 kB / 461.5 MB, free: 26.32 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.4182, allocations: 71.84 kB / 461.5 MB, free: 26.25 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.4184, allocations: 31.97 kB / 461.6 MB, free: 26.21 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.223e-05/0.4185, allocations: 31.92 kB / 461.6 MB, free: 26.18 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.839e-05/0.4186, allocations: 35.84 kB / 461.6 MB, free: 26.15 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.699e-05/0.4186, allocations: 4 kB / 461.6 MB, free: 26.14 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.4186, allocations: 4 kB / 461.6 MB, free: 26.14 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.383e-05/0.4187, allocations: 15.92 kB / 461.7 MB, free: 26.12 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.4187, allocations: 15.94 kB / 461.7 MB, free: 26.11 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.4188, allocations: 94.42 kB / 461.8 MB, free: 26.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.4188, allocations: 0 / 461.8 MB, free: 26.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.4189, allocations: 0 / 461.8 MB, free: 26.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.4189, allocations: 0 / 461.8 MB, free: 26.02 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005934/0.4195, allocations: 411 kB / 462.2 MB, free: 25.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.4195, allocations: 8.031 kB / 462.2 MB, free: 25.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.906e-05/0.4196, allocations: 15.81 kB / 462.2 MB, free: 25.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.4198, allocations: 204.8 kB / 462.4 MB, free: 25.31 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.4199, allocations: 8 kB / 462.4 MB, free: 25.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.361e-05/0.4199, allocations: 15.91 kB / 462.4 MB, free: 25.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006347/0.4206, allocations: 234.5 kB / 462.6 MB, free: 25.03 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.4206, allocations: 8 kB / 462.6 MB, free: 25.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.4206, allocations: 7.953 kB / 462.7 MB, free: 25.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.4206, allocations: 4 kB / 462.7 MB, free: 25.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003813/0.421, allocations: 91.86 kB / 462.7 MB, free: 24.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007039/0.4218, allocations: 0.596 MB / 463.3 MB, free: 24.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004409/0.4222, allocations: 160 kB / 463.5 MB, free: 24.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.886e-05/0.4223, allocations: 4 kB / 463.5 MB, free: 24.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.4223, allocations: 38.5 kB / 463.5 MB, free: 24.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.625e-06/0.4223, allocations: 4 kB / 463.5 MB, free: 24.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007282/0.423, allocations: 193.5 kB / 463.7 MB, free: 23.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.4231, allocations: 114.8 kB / 463.8 MB, free: 23.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.4232, allocations: 123.3 kB / 464 MB, free: 23.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.4233, allocations: 29.7 kB / 464 MB, free: 23.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.846e-05/0.4233, allocations: 112 kB / 464.1 MB, free: 23.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.776e-05/0.4234, allocations: 31.58 kB / 464.1 MB, free: 23.38 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-06/0.4234, allocations: 4 kB / 464.1 MB, free: 23.37 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.363e-05/0.4235, allocations: 326.9 kB / 464.5 MB, free: 23.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.4237, allocations: 40.34 kB / 464.5 MB, free: 23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.4239, allocations: 146.5 kB / 464.6 MB, free: 22.81 MB / 346.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003833/0.4243, allocations: 149.7 kB / 464.8 MB, free: 22.65 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.4243, allocations: 4 kB / 464.8 MB, free: 22.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005613/0.4249, allocations: 205.1 kB / 465 MB, free: 22.44 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.4249, allocations: 8 kB / 465 MB, free: 22.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.4249, allocations: 4 kB / 465 MB, free: 22.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.425, allocations: 4 kB / 465 MB, free: 22.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002746/0.4252, allocations: 43.92 kB / 465.1 MB, free: 22.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.4253, allocations: 12.39 kB / 465.1 MB, free: 22.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001658/0.4254, allocations: 27.84 kB / 465.1 MB, free: 22.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.4255, allocations: 11.95 kB / 465.1 MB, free: 22.33 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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.0001244/0.4256, allocations: 133.8 kB / 465.2 MB, free: 22.19 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/0.4258, allocations: 85.59 kB / 465.3 MB, free: 22.1 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.439e-05/0.4259, allocations: 12.72 kB / 465.3 MB, free: 22.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.4259, allocations: 8.406 kB / 465.3 MB, free: 22.08 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4259, allocations: 0 / 465.3 MB, free: 22.08 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4259, allocations: 11.92 kB / 465.3 MB, free: 22.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/0.4263, allocations: 217.4 kB / 465.6 MB, free: 21.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.4263, allocations: 4 kB / 465.6 MB, free: 21.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003784/0.4267, allocations: 47.91 kB / 465.6 MB, free: 21.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.4267, allocations: 0 / 465.6 MB, free: 21.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.4267, allocations: 4 kB / 465.6 MB, free: 21.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4267, allocations: 0 / 465.6 MB, free: 21.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4267, allocations: 0 / 465.6 MB, free: 21.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007698/0.4275, allocations: 422.8 kB / 466 MB, free: 21.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.891e-05/0.4276, allocations: 92.89 kB / 466.1 MB, free: 21.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.4276, allocations: 4 kB / 466.1 MB, free: 21.19 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.4278, allocations: 15.98 kB / 466.1 MB, free: 21.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.4279, allocations: 7.938 kB / 466.1 MB, free: 21.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.4279, allocations: 4 kB / 466.2 MB, free: 21.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.654e-05/0.428, allocations: 109 kB / 466.3 MB, free: 21.06 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.223e-05/0.4281, allocations: 0 / 466.3 MB, free: 21.06 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004329/0.4285, allocations: 24 kB / 466.3 MB, free: 21.04 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.0001251/0.4286, allocations: 103.4 kB / 466.4 MB, free: 20.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005363/0.4292, allocations: 138.3 kB / 466.5 MB, free: 20.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.4292, allocations: 0 / 466.5 MB, free: 20.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.4294, allocations: 36 kB / 466.6 MB, free: 20.76 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005241/0.4299, allocations: 64.5 kB / 466.6 MB, free: 20.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.4311, allocations: 499.6 kB / 467.1 MB, free: 20.18 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.4313, allocations: 0.7206 MB / 467.8 MB, free: 19.43 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.356e-05/0.4314, allocations: 13.08 kB / 467.8 MB, free: 19.42 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.285e-05/0.4315, allocations: 11.44 kB / 467.8 MB, free: 19.41 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/0.4315, allocations: 4 kB / 467.9 MB, free: 19.41 MB / 346.7 MB Notification: Performance of Templates: time 0.005064/0.4366, allocations: 1.142 MB / 469 MB, free: 18.27 MB / 346.7 MB