Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadModel(Modelica_LinearSystems2): time 2.398/2.398, allocations: 251.5 MB / 266 MB, free: 0.6758 MB / 218.7 MB Notification: Performance of loadModel(Modelica_Synchronous): time 0.118/0.118, allocations: 12.6 MB / 336.6 MB, free: 14.74 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.849e-05/3.858e-05, allocations: 4 kB / 399.8 MB, free: 15.48 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4142/0.4143, allocations: 59.42 MB / 459.2 MB, free: 28.64 MB / 346.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002876/0.4172, allocations: 1.955 MB / 461.1 MB, free: 26.66 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.4191, allocations: 0.7767 MB / 461.9 MB, free: 25.88 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002683/0.4194, allocations: 8 kB / 461.9 MB, free: 25.87 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002626/0.4197, allocations: 39.7 kB / 462 MB, free: 25.83 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002677/0.42, allocations: 55.81 kB / 462 MB, free: 25.78 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007562/0.4208, allocations: 163.6 kB / 462.2 MB, free: 25.62 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003375/0.4211, allocations: 184 kB / 462.4 MB, free: 25.44 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.4213, allocations: 65.36 kB / 462.4 MB, free: 25.38 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.4215, allocations: 119.7 kB / 462.5 MB, free: 25.26 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.4218, allocations: 143.5 kB / 462.7 MB, free: 25.12 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.026e-05/0.4219, allocations: 16 kB / 462.7 MB, free: 25.1 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.27e-05/0.4219, allocations: 16 kB / 462.7 MB, free: 25.09 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.4221, allocations: 83.72 kB / 462.8 MB, free: 25 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.236e-05/0.4221, allocations: 24 kB / 462.8 MB, free: 24.98 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.4225, allocations: 246.1 kB / 463 MB, free: 24.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.4225, allocations: 0 / 463 MB, free: 24.74 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4225, allocations: 0 / 463 MB, free: 24.74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.4225, allocations: 0 / 463 MB, free: 24.74 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001626/0.4242, allocations: 0.6083 MB / 463.7 MB, free: 24.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.4242, allocations: 8.031 kB / 463.7 MB, free: 24.08 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.4244, allocations: 47.48 kB / 463.7 MB, free: 24.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006699/0.4251, allocations: 290 kB / 464 MB, free: 23.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004416/0.4255, allocations: 149.7 kB / 464.1 MB, free: 23.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.4257, allocations: 28 kB / 464.2 MB, free: 23.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002921/0.4286, allocations: 0.5755 MB / 464.7 MB, free: 22.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.931e-05/0.4288, allocations: 4 kB / 464.7 MB, free: 22.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.761e-05/0.4289, allocations: 12 kB / 464.8 MB, free: 22.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.4289, allocations: 8 kB / 464.8 MB, free: 22.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00397/0.4329, allocations: 0.5425 MB / 465.3 MB, free: 22.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003239/0.4362, allocations: 1.034 MB / 466.3 MB, free: 21.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003996/0.4403, allocations: 0.5185 MB / 466.9 MB, free: 20.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001269/0.4405, allocations: 12.19 kB / 466.9 MB, free: 20.67 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.4406, allocations: 38.75 kB / 466.9 MB, free: 20.62 MB / 346.7 MB Notification: Performance of pre-optimization done (n=44): time 5.12e-06/0.4406, allocations: 0 / 466.9 MB, free: 20.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.1164/0.557, allocations: 6.789 MB / 473.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.5572, allocations: 152.9 kB / 473.9 MB, free: 13.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000457/0.5577, allocations: 225.8 kB / 474.1 MB, free: 13.42 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001608/0.5579, allocations: 37.7 kB / 474.1 MB, free: 13.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.558, allocations: 153.4 kB / 474.3 MB, free: 13.22 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003453/0.5584, allocations: 193.3 kB / 474.4 MB, free: 13.03 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.5586, allocations: 16 kB / 474.5 MB, free: 13.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.5587, allocations: 342.8 kB / 474.8 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00455/0.5633, allocations: 0.6539 MB / 475.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004616/0.568, allocations: 0.8276 MB / 476.3 MB, free: 11.11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004322/0.5724, allocations: 0.6061 MB / 476.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/0.5724, allocations: 3.953 kB / 476.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.01042/0.5829, allocations: 1.464 MB / 478.4 MB, free: 9.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/0.583, allocations: 9.094 kB / 478.4 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.102e-05/0.583, allocations: 4 kB / 478.4 MB, free: 9.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.063e-05/0.5831, allocations: 15.94 kB / 478.4 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004243/0.5873, allocations: 231.7 kB / 478.6 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.874e-05/0.5874, allocations: 8 kB / 478.6 MB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00223/0.5896, allocations: 119.7 kB / 478.7 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.5898, allocations: 31.98 kB / 478.8 MB, free: 8.621 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (83): * Single equations (assignments): 83 * 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.0004049/0.5902, allocations: 189.6 kB / 478.9 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004174/0.5906, allocations: 157.1 kB / 479.1 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002055/0.5908, allocations: 67.61 kB / 479.2 MB, free: 8.195 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.5909, allocations: 8 kB / 479.2 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.5909, allocations: 4 kB / 479.2 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.5909, allocations: 3.984 kB / 479.2 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007597/0.5985, allocations: 2.304 MB / 481.5 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.029e-05/0.5986, allocations: 17 kB / 481.5 MB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001475/0.6, allocations: 203.7 kB / 481.7 MB, free: 5.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-05/0.6001, allocations: 16.09 kB / 481.7 MB, free: 5.461 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.962e-05/0.6002, allocations: 27.94 kB / 481.7 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.148e-05/0.6002, allocations: 23.92 kB / 481.8 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.184e-05/0.6002, allocations: 15.94 kB / 481.8 MB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005497/0.6057, allocations: 2.188 MB / 484 MB, free: 2.781 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003382/0.6061, allocations: 176.5 kB / 484.1 MB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.6062, allocations: 31.98 kB / 484.2 MB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009926/0.6073, allocations: 99.97 kB / 484.3 MB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003117/0.6076, allocations: 103.7 kB / 484.4 MB, free: 2.359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.347e-05/0.6077, allocations: 28 kB / 484.4 MB, free: 2.332 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000229/0.6079, allocations: 186 kB / 484.6 MB, free: 2.148 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.6079, allocations: 4 kB / 484.6 MB, free: 2.145 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008495/0.6088, allocations: 128 kB / 484.7 MB, free: 2.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * 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 (72): * Single equations (assignments): 72 * 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.0001759/0.609, allocations: 130.9 kB / 484.8 MB, free: 1.883 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004762/0.6137, allocations: 1.186 MB / 486 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/0.6138, allocations: 1.375 kB / 486 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001812/0.6156, allocations: 377.9 kB / 486.4 MB, free: 336 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000976/0.6166, allocations: 134.8 kB / 486.5 MB, free: 204 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004277/0.6209, allocations: 1.406 MB / 487.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000609/0.6216, allocations: 0.8405 MB / 488.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001094/0.6227, allocations: 96.62 kB / 488.9 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000517/0.6232, allocations: 39.42 kB / 488.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of SimCode: time 1.482e-06/0.6232, allocations: 0 / 488.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of Templates: time 0.02193/0.6451, allocations: 7.462 MB / 496.4 MB, free: 6.168 MB / 362.7 MB