Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadModel(Modelica): time 1.954/1.954, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.899e-05/2.912e-05, allocations: 0 / 292.1 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.09161, allocations: 50.41 MB / 342.6 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4044/0.4961, allocations: 80.97 MB / 423.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.4963, allocations: 74.64 kB / 423.6 MB, free: 13.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03112/0.5275, allocations: 7.435 MB / 431 MB, free: 6.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.978e-06/0.5275, allocations: 0 / 431 MB, free: 6.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.502e-05/0.5276, allocations: 12 kB / 431 MB, free: 6.918 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.5286, allocations: 0.5602 MB / 431.6 MB, free: 6.336 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.5287, allocations: 12.03 kB / 431.6 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.5288, allocations: 43.53 kB / 431.7 MB, free: 6.281 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007585/0.5296, allocations: 348.7 kB / 432 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.547e-05/0.5296, allocations: 21.75 kB / 432 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.006e-05/0.5297, allocations: 26.75 kB / 432 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.5311, allocations: 0.6558 MB / 432.7 MB, free: 5.367 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.5312, allocations: 0 / 432.7 MB, free: 5.367 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.334e-05/0.5312, allocations: 14.38 kB / 432.7 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.727e-05/0.5313, allocations: 12 kB / 432.7 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004083/0.5317, allocations: 148.1 kB / 432.9 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.5329, allocations: 0.7777 MB / 433.6 MB, free: 4.496 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.534, allocations: 0.535 MB / 434.2 MB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004528/0.5345, allocations: 229.7 kB / 434.4 MB, free: 3.816 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007855/0.5353, allocations: 0.5812 MB / 435 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.568e-05/0.5354, allocations: 48.56 kB / 435 MB, free: 3.059 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.991e-06/0.5354, allocations: 0 / 435 MB, free: 3.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008603/0.5363, allocations: 329.6 kB / 435.4 MB, free: 2.801 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/0.5364, allocations: 180.6 kB / 435.5 MB, free: 2.602 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000318/0.5368, allocations: 209.1 kB / 435.7 MB, free: 2.422 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.429e-05/0.5368, allocations: 36.52 kB / 435.8 MB, free: 2.387 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.537, allocations: 154.6 kB / 435.9 MB, free: 2.262 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.089e-05/0.5371, allocations: 53.03 kB / 436 MB, free: 2.223 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.092e-05/0.5371, allocations: 15.28 kB / 436 MB, free: 2.215 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.5373, allocations: 348.4 kB / 436.3 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.5375, allocations: 70 kB / 436.4 MB, free: 1.836 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004368/0.5379, allocations: 398.3 kB / 436.8 MB, free: 1.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.5382, allocations: 147.7 kB / 436.9 MB, free: 1.207 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.5382, allocations: 4 kB / 436.9 MB, free: 1.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009047/0.5392, allocations: 429.6 kB / 437.4 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.5392, allocations: 8 kB / 437.4 MB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.5392, allocations: 12.09 kB / 437.4 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.108e-05/0.5393, allocations: 27.89 kB / 437.4 MB, free: 0.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/0.5398, allocations: 123.5 kB / 437.5 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.772e-05/0.5398, allocations: 19.88 kB / 437.5 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003777/0.5402, allocations: 54.39 kB / 437.6 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.406e-05/0.5403, allocations: 35.42 kB / 437.6 MB, free: 0.5781 MB / 346.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.000197/0.5405, allocations: 151.6 kB / 437.8 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006913/0.5412, allocations: 293.6 kB / 438.1 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007418/0.542, allocations: 319.7 kB / 438.4 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.542, allocations: 4 kB / 438.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.542, allocations: 7.953 kB / 438.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.789e-06/0.542, allocations: 0 / 438.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005583/0.5426, allocations: 334.2 kB / 438.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.5426, allocations: 7.938 kB / 438.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006093/0.5433, allocations: 103.8 kB / 438.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.727e-05/0.5433, allocations: 4 kB / 438.8 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.5433, allocations: 10.81 kB / 438.8 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.084e-06/0.5434, allocations: 4 kB / 438.8 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.39e-06/0.5434, allocations: 0 / 438.8 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.5446, allocations: 0.7132 MB / 439.6 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.5447, allocations: 116.6 kB / 439.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.489e-05/0.5448, allocations: 21.8 kB / 439.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003541/0.5452, allocations: 26.92 kB / 439.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.5453, allocations: 7.938 kB / 439.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.901e-05/0.5453, allocations: 18.8 kB / 439.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002413/0.5456, allocations: 169.6 kB / 439.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.17e-07/0.5456, allocations: 0 / 439.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000769/0.5464, allocations: 85.66 kB / 440 MB, free: 14.54 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.0002518/0.5466, allocations: 126.2 kB / 440.1 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000703/0.5474, allocations: 293.5 kB / 440.4 MB, free: 14.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.063e-06/0.5474, allocations: 0 / 440.4 MB, free: 14.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.775e-05/0.5474, allocations: 19.86 kB / 440.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.5485, allocations: 254.1 kB / 440.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.5503, allocations: 0.5837 MB / 441.3 MB, free: 13.44 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.5508, allocations: 0.8181 MB / 442.1 MB, free: 12.6 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001879/0.551, allocations: 43.25 kB / 442.1 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.5512, allocations: 27.44 kB / 442.1 MB, free: 12.53 MB / 362.7 MB Notification: Performance of SimCode: time 1.901e-06/0.5512, allocations: 0 / 442.1 MB, free: 12.53 MB / 362.7 MB Notification: Performance of Templates: time 0.01217/0.5634, allocations: 3.762 MB / 445.9 MB, free: 8.805 MB / 362.7 MB "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,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.phi,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,time