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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadModel(Modelica): time 2.179/2.179, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.009e-05/3.015e-05, allocations: 4 kB / 292.7 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.136, allocations: 50.42 MB / 343.1 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3783/0.5143, allocations: 80.97 MB / 424 MB, free: 13.31 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.5146, allocations: 74.64 kB / 424.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03034/0.545, allocations: 7.431 MB / 431.6 MB, free: 6.945 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.907e-06/0.545, allocations: 0 / 431.6 MB, free: 6.945 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.663e-05/0.545, allocations: 15.98 kB / 431.6 MB, free: 6.93 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.001037/0.5461, allocations: 0.5654 MB / 432.1 MB, free: 6.344 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.5462, allocations: 12.03 kB / 432.1 MB, free: 6.332 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.5463, allocations: 39.53 kB / 432.2 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007584/0.547, allocations: 351.6 kB / 432.5 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.31e-05/0.5471, allocations: 23.19 kB / 432.5 MB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.57e-05/0.5472, allocations: 27.25 kB / 432.6 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.5485, allocations: 0.6521 MB / 433.2 MB, free: 5.375 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.5486, allocations: 4 kB / 433.2 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.642e-05/0.5486, allocations: 8.938 kB / 433.2 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.5487, allocations: 8 kB / 433.2 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003967/0.5491, allocations: 154.4 kB / 433.4 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.5502, allocations: 0.7668 MB / 434.2 MB, free: 4.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.5513, allocations: 0.5304 MB / 434.7 MB, free: 4.004 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004459/0.5517, allocations: 230.2 kB / 434.9 MB, free: 3.836 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007733/0.5525, allocations: 0.5889 MB / 435.5 MB, free: 3.121 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/0.5526, allocations: 45.81 kB / 435.6 MB, free: 3.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.975e-06/0.5526, allocations: 0 / 435.6 MB, free: 3.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008521/0.5535, allocations: 332.3 kB / 435.9 MB, free: 2.812 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.5536, allocations: 177.6 kB / 436.1 MB, free: 2.613 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003111/0.554, allocations: 217.7 kB / 436.3 MB, free: 2.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.476e-05/0.554, allocations: 33.58 kB / 436.3 MB, free: 2.395 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.5542, allocations: 155.8 kB / 436.4 MB, free: 2.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.442e-05/0.5542, allocations: 54.33 kB / 436.5 MB, free: 2.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.903e-05/0.5543, allocations: 10.88 kB / 436.5 MB, free: 2.227 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.5545, allocations: 344.7 kB / 436.8 MB, free: 1.895 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.5546, allocations: 70.48 kB / 436.9 MB, free: 1.848 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004445/0.5551, allocations: 404.1 kB / 437.3 MB, free: 1.328 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.5554, allocations: 138.8 kB / 437.4 MB, free: 1.223 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.177e-05/0.5554, allocations: 4 kB / 437.5 MB, free: 1.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009159/0.5563, allocations: 437.7 kB / 437.9 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.5564, allocations: 8 kB / 437.9 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.895e-05/0.5564, allocations: 16.16 kB / 437.9 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.834e-05/0.5565, allocations: 19.95 kB / 437.9 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/0.557, allocations: 119.2 kB / 438 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.204e-05/0.557, allocations: 27.86 kB / 438.1 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003723/0.5574, allocations: 54.27 kB / 438.1 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.887e-05/0.5575, allocations: 27.69 kB / 438.1 MB, free: 0.5938 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.0001957/0.5577, allocations: 152.9 kB / 438.3 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006775/0.5584, allocations: 297.3 kB / 438.6 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006953/0.5591, allocations: 313 kB / 438.9 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.5591, allocations: 8 kB / 438.9 MB, free: 0 / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.401e-06/0.5591, allocations: 384 / 438.9 MB, free: 0 / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.75e-05/0.5592, allocations: 2.812 kB / 438.9 MB, free: 0 / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005397/0.5597, allocations: 340.2 kB / 439.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.5598, allocations: 7.938 kB / 439.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005925/0.5604, allocations: 103.9 kB / 439.3 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.294e-06/0.5604, allocations: 0 / 439.3 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.692e-05/0.5604, allocations: 11.06 kB / 439.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.197e-06/0.5605, allocations: 4 kB / 439.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.511e-06/0.5605, allocations: 0 / 439.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.5617, allocations: 0.7214 MB / 440.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.5618, allocations: 112.6 kB / 440.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.449e-05/0.5619, allocations: 22.25 kB / 440.2 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.5623, allocations: 30.73 kB / 440.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.5623, allocations: 0 / 440.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.444e-05/0.5624, allocations: 19.8 kB / 440.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002341/0.5626, allocations: 171.2 kB / 440.4 MB, free: 14.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.85e-07/0.5627, allocations: 4 kB / 440.4 MB, free: 14.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007684/0.5634, allocations: 77.41 kB / 440.5 MB, free: 14.56 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.0002375/0.5637, allocations: 130.6 kB / 440.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007026/0.5644, allocations: 288.7 kB / 440.9 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.421e-06/0.5644, allocations: 3.938 kB / 440.9 MB, free: 14.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.936e-05/0.5645, allocations: 23.67 kB / 440.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009718/0.5655, allocations: 254.9 kB / 441.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.5672, allocations: 0.574 MB / 441.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005371/0.5677, allocations: 0.8157 MB / 442.6 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001701/0.5679, allocations: 39.27 kB / 442.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.568, allocations: 34.62 kB / 442.7 MB, free: 12.55 MB / 362.7 MB Notification: Performance of SimCode: time 1.851e-06/0.5681, allocations: 0 / 442.7 MB, free: 12.55 MB / 362.7 MB Notification: Performance of Templates: time 0.01208/0.5801, allocations: 3.771 MB / 446.4 MB, free: 8.816 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