Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadModel(Modelica_LinearSystems2): time 2.623/2.623, allocations: 251.5 MB / 266 MB, free: 0.6875 MB / 218.7 MB Notification: Performance of loadModel(Modelica_Synchronous): time 0.1035/0.1035, allocations: 12.6 MB / 336.6 MB, free: 14.74 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.649e-05/3.671e-05, allocations: 4 kB / 399.8 MB, free: 15.49 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4124, allocations: 59.43 MB / 459.2 MB, free: 28.64 MB / 346.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.002393/0.4149, allocations: 1.752 MB / 460.9 MB, free: 26.86 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.4162, allocations: 0.6054 MB / 461.5 MB, free: 26.25 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.4165, allocations: 7.938 kB / 461.5 MB, free: 26.24 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002211/0.4167, allocations: 35.78 kB / 461.6 MB, free: 26.21 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.4169, allocations: 47.83 kB / 461.6 MB, free: 26.16 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.4173, allocations: 87.83 kB / 461.7 MB, free: 26.07 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002564/0.4175, allocations: 155.7 kB / 461.9 MB, free: 25.92 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.4177, allocations: 31.97 kB / 461.9 MB, free: 25.89 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002146/0.4179, allocations: 115.7 kB / 462 MB, free: 25.78 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.4181, allocations: 115.7 kB / 462.1 MB, free: 25.66 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.299e-05/0.4182, allocations: 16 kB / 462.1 MB, free: 25.65 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.637e-05/0.4183, allocations: 12 kB / 462.1 MB, free: 25.64 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.865e-05/0.4184, allocations: 67.8 kB / 462.2 MB, free: 25.57 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.814e-05/0.4184, allocations: 20 kB / 462.2 MB, free: 25.55 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.4187, allocations: 198.2 kB / 462.4 MB, free: 25.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4187, allocations: 8 kB / 462.4 MB, free: 25.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.446e-06/0.4187, allocations: 0 / 462.4 MB, free: 25.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.4187, allocations: 3.938 kB / 462.4 MB, free: 25.35 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001416/0.4202, allocations: 0.5378 MB / 463 MB, free: 24.76 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.4202, allocations: 8.031 kB / 463 MB, free: 24.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.815e-05/0.4203, allocations: 35.72 kB / 463 MB, free: 24.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003552/0.4207, allocations: 251.1 kB / 463.3 MB, free: 24.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/0.421, allocations: 133.6 kB / 463.4 MB, free: 24.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/0.4211, allocations: 27.98 kB / 463.4 MB, free: 24.26 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.4224, allocations: 379.5 kB / 463.8 MB, free: 23.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/0.4225, allocations: 7.891 kB / 463.8 MB, free: 23.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.436e-05/0.4225, allocations: 11.95 kB / 463.8 MB, free: 23.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.4225, allocations: 4 kB / 463.8 MB, free: 23.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002261/0.4248, allocations: 0.5136 MB / 464.3 MB, free: 23.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002503/0.4274, allocations: 1.023 MB / 465.4 MB, free: 22.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002025/0.4294, allocations: 359.1 kB / 465.7 MB, free: 21.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.236e-05/0.4296, allocations: 8.234 kB / 465.7 MB, free: 21.88 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.4296, allocations: 34.73 kB / 465.7 MB, free: 21.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 3.016e-06/0.4296, allocations: 0 / 465.7 MB, free: 21.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.05252/0.4821, allocations: 6.675 MB / 472.4 MB, free: 15.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.4822, allocations: 55.84 kB / 472.5 MB, free: 15.01 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.4825, allocations: 181.5 kB / 472.6 MB, free: 14.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.45e-05/0.4826, allocations: 37.7 kB / 472.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.949e-05/0.4827, allocations: 144.6 kB / 472.8 MB, free: 14.64 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.4829, allocations: 177.4 kB / 473 MB, free: 14.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.715e-05/0.483, allocations: 12 kB / 473 MB, free: 14.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.689e-05/0.4831, allocations: 342.8 kB / 473.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00238/0.4855, allocations: 496.8 kB / 473.8 MB, free: 13.62 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002449/0.4879, allocations: 0.549 MB / 474.4 MB, free: 13.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002224/0.4902, allocations: 441.9 kB / 474.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.4902, allocations: 11.94 kB / 474.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004958/0.4952, allocations: 1.049 MB / 475.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.348e-05/0.4953, allocations: 5.094 kB / 475.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.4953, allocations: 4 kB / 475.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.4953, allocations: 7.953 kB / 475.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001847/0.4972, allocations: 191.8 kB / 476.1 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/0.4972, allocations: 4 kB / 476.1 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.4985, allocations: 103.9 kB / 476.2 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.571e-05/0.4986, allocations: 20 kB / 476.2 MB, free: 11.23 MB / 346.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0003668/0.499, allocations: 162.2 kB / 476.4 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.4992, allocations: 27.62 kB / 476.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001802/0.4994, allocations: 51.3 kB / 476.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.427e-06/0.4994, allocations: 4 kB / 476.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.4994, allocations: 7.953 kB / 476.5 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.4995, allocations: 0 / 476.5 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006982/0.5064, allocations: 1.989 MB / 478.4 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/0.5065, allocations: 8.969 kB / 478.4 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001301/0.5078, allocations: 159.8 kB / 478.6 MB, free: 8.648 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.89e-05/0.5079, allocations: 12 kB / 478.6 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.357e-05/0.5079, allocations: 27.92 kB / 478.6 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.544e-05/0.508, allocations: 19.94 kB / 478.7 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.428e-06/0.508, allocations: 11.94 kB / 478.7 MB, free: 8.578 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0051/0.5131, allocations: 1.748 MB / 480.4 MB, free: 6.492 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002523/0.5134, allocations: 136.8 kB / 480.6 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.5135, allocations: 23.98 kB / 480.6 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009135/0.5144, allocations: 91.92 kB / 480.7 MB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002587/0.5147, allocations: 95.66 kB / 480.8 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.455e-05/0.5148, allocations: 24 kB / 480.8 MB, free: 6.109 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002179/0.515, allocations: 148.3 kB / 480.9 MB, free: 5.965 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.515, allocations: 0 / 480.9 MB, free: 5.965 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006947/0.5157, allocations: 92 kB / 481 MB, free: 5.875 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001693/0.5159, allocations: 127.1 kB / 481.1 MB, free: 5.742 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004043/0.52, allocations: 0.9196 MB / 482.1 MB, free: 4.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/0.52, allocations: 0 / 482.1 MB, free: 4.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001731/0.5218, allocations: 365.7 kB / 482.4 MB, free: 4.465 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006005/0.5224, allocations: 59.52 kB / 482.5 MB, free: 4.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/0.5255, allocations: 1.16 MB / 483.6 MB, free: 3.117 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.5259, allocations: 0.7959 MB / 484.4 MB, free: 2.293 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008257/0.5267, allocations: 79.25 kB / 484.5 MB, free: 2.219 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003503/0.5271, allocations: 27.44 kB / 484.5 MB, free: 2.191 MB / 346.7 MB Notification: Performance of SimCode: time 1.713e-06/0.5271, allocations: 0 / 484.5 MB, free: 2.191 MB / 346.7 MB Notification: Performance of Templates: time 0.01501/0.5421, allocations: 5.036 MB / 489.6 MB, free: 13.16 MB / 362.7 MB "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.initType,PI.k,PI.x_start,PI.y,PI.y_start,angle.phi,gain.k,gain.y,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.w,speed.flange.phi,speed.w,time,torque.tau