Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadModel(Modelica_Synchronous): time 1.971/1.971, allocations: 218.4 MB / 231.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.549e-05/3.561e-05, allocations: 8 kB / 284.3 MB, free: 8.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09084, allocations: 50.36 MB / 334.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3643/0.4552, allocations: 82.03 MB / 416.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.4554, allocations: 73.34 kB / 416.8 MB, free: 12.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03008/0.4855, allocations: 7.234 MB / 424 MB, free: 6.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4856, allocations: 4 kB / 424 MB, free: 6.156 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.129e-05/0.4856, allocations: 8 kB / 424 MB, free: 6.148 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001035/0.4867, allocations: 0.5687 MB / 424.6 MB, free: 5.559 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.4867, allocations: 12.03 kB / 424.6 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.4868, allocations: 44.12 kB / 424.7 MB, free: 5.504 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007291/0.4876, allocations: 349.1 kB / 425 MB, free: 5.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.08e-05/0.4876, allocations: 20.94 kB / 425 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.341e-05/0.4877, allocations: 33.5 kB / 425.1 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.489, allocations: 0.6521 MB / 425.7 MB, free: 4.594 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.4891, allocations: 0 / 425.7 MB, free: 4.594 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.862e-05/0.4891, allocations: 11.31 kB / 425.7 MB, free: 4.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.4891, allocations: 8 kB / 425.7 MB, free: 4.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004041/0.4896, allocations: 151.8 kB / 425.9 MB, free: 4.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001068/0.4906, allocations: 0.7682 MB / 426.6 MB, free: 3.734 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.4917, allocations: 0.5369 MB / 427.2 MB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004424/0.4921, allocations: 225 kB / 427.4 MB, free: 3.055 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007446/0.4929, allocations: 0.5892 MB / 428 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/0.493, allocations: 50.22 kB / 428 MB, free: 2.285 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.084e-06/0.493, allocations: 0 / 428 MB, free: 2.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008289/0.4938, allocations: 323.3 kB / 428.4 MB, free: 2.035 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001482/0.494, allocations: 181.2 kB / 428.5 MB, free: 1.832 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.4943, allocations: 218.1 kB / 428.7 MB, free: 1.645 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.106e-05/0.4944, allocations: 33.45 kB / 428.8 MB, free: 1.609 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.4945, allocations: 150 kB / 428.9 MB, free: 1.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.646e-05/0.4946, allocations: 57.83 kB / 429 MB, free: 1.445 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.946e-05/0.4946, allocations: 7.047 kB / 429 MB, free: 1.445 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.4948, allocations: 353 kB / 429.3 MB, free: 1.105 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.495, allocations: 73.92 kB / 429.4 MB, free: 1.055 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004483/0.4954, allocations: 407.9 kB / 429.8 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.4957, allocations: 141.6 kB / 429.9 MB, free: 432 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.4958, allocations: 4 kB / 429.9 MB, free: 428 kB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008743/0.4967, allocations: 431 kB / 430.4 MB, free: 52 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.4967, allocations: 15.98 kB / 430.4 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.4967, allocations: 12 kB / 430.4 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.033e-05/0.4968, allocations: 16 kB / 430.4 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004746/0.4972, allocations: 123.1 kB / 430.5 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.201e-05/0.4973, allocations: 19.92 kB / 430.5 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003617/0.4977, allocations: 58.14 kB / 430.6 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.964e-05/0.4977, allocations: 31.38 kB / 430.6 MB, free: 15.8 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001638/0.4979, allocations: 158.3 kB / 430.8 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006617/0.4986, allocations: 299.6 kB / 431.1 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006923/0.4993, allocations: 314.9 kB / 431.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.4993, allocations: 4 kB / 431.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.969e-06/0.4994, allocations: 4 kB / 431.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.983e-06/0.4994, allocations: 3.984 kB / 431.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005077/0.4999, allocations: 323.2 kB / 431.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-05/0.4999, allocations: 11.95 kB / 431.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005519/0.5005, allocations: 99.12 kB / 431.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.101e-05/0.5005, allocations: 7.938 kB / 431.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/0.5006, allocations: 14.55 kB / 431.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.034e-05/0.5006, allocations: 4 kB / 431.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5006, allocations: 3.938 kB / 431.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001162/0.5018, allocations: 0.6962 MB / 432.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.5019, allocations: 128.5 kB / 432.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.035e-05/0.502, allocations: 15.5 kB / 432.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003371/0.5023, allocations: 23.48 kB / 432.7 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.84e-05/0.5024, allocations: 11.48 kB / 432.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.35e-05/0.5025, allocations: 19.88 kB / 432.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002218/0.5027, allocations: 171.3 kB / 432.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.69e-07/0.5027, allocations: 0 / 432.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006929/0.5034, allocations: 86.48 kB / 433 MB, free: 13.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002189/0.5036, allocations: 126.1 kB / 433.1 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006725/0.5043, allocations: 295.1 kB / 433.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.821e-06/0.5044, allocations: 5.062 kB / 433.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.835e-05/0.5044, allocations: 11.75 kB / 433.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009465/0.5054, allocations: 258.7 kB / 433.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.5074, allocations: 0.5771 MB / 434.3 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008572/0.5083, allocations: 0.8234 MB / 435.1 MB, free: 11.81 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002822/0.5086, allocations: 35.28 kB / 435.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.5088, allocations: 31.42 kB / 435.1 MB, free: 11.74 MB / 362.7 MB Notification: Performance of SimCode: time 1.796e-06/0.5088, allocations: 0 / 435.1 MB, free: 11.74 MB / 362.7 MB Notification: Performance of Templates: time 0.01214/0.5209, allocations: 3.768 MB / 438.9 MB, free: 7.996 MB / 362.7 MB "" Variables in the reference:PI.y,Time,speed.w Variables in the result:PI.T,PI.k,PI.y,hold1.bits,hold1.compDelay.resolution,hold1.compDelay.shiftCounter,hold1.computationalDelay,hold1.hold1.y_start,hold1.limited,hold1.limiter.uMax,hold1.limiter.uMin,hold1.quantization.bits,hold1.quantization.quantized,hold1.quantization.resolution,hold1.quantization.yMax,hold1.quantization.yMin,hold1.quantized,hold1.resolution,hold1.shiftCounter,hold1.yMax,hold1.yMin,hold1.y_start,load.J,load.w,periodicClock.period,periodicClock.useSolver,ramp.duration,ramp.height,ramp.offset,ramp.startTime,sample1.bits,sample1.limited,sample1.noise.firstSeed[1],sample1.noise.firstSeed[2],sample1.noise.firstSeed[3],sample1.noise.noiseMax,sample1.noise.noiseMin,sample1.noisy,sample1.quantized,sample1.yMax,sample1.yMin,sample2.bits,sample2.limited,sample2.limiter.uMax,sample2.limiter.uMin,sample2.noisy,sample2.quantization.bits,sample2.quantization.quantized,sample2.quantization.resolution,sample2.quantization.yMax,sample2.quantization.yMin,sample2.quantized,sample2.yMax,sample2.yMin,speed.w,time