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_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadModel(Modelica_Synchronous): time 2.078/2.078, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.1e-05/3.117e-05, allocations: 4 kB / 284.3 MB, free: 8.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08872/0.08877, allocations: 50.36 MB / 334.7 MB, free: 6.234 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.383/0.4718, allocations: 82.09 MB / 416.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.472, allocations: 78.75 kB / 416.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03084/0.5029, allocations: 7.227 MB / 424.1 MB, free: 6.016 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.34e-06/0.503, allocations: 7.938 kB / 424.1 MB, free: 6.008 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.405e-05/0.503, allocations: 8 kB / 424.1 MB, free: 6 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.001086/0.5041, allocations: 0.5644 MB / 424.6 MB, free: 5.414 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.5042, allocations: 16.02 kB / 424.6 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.5043, allocations: 44.12 kB / 424.7 MB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007804/0.5051, allocations: 344.5 kB / 425 MB, free: 5.016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.5051, allocations: 20.38 kB / 425 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.729e-05/0.5052, allocations: 30.81 kB / 425.1 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.5066, allocations: 0.6572 MB / 425.7 MB, free: 4.445 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.5066, allocations: 3.984 kB / 425.7 MB, free: 4.441 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.163e-05/0.5067, allocations: 15 kB / 425.8 MB, free: 4.438 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.5067, allocations: 8 kB / 425.8 MB, free: 4.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003825/0.5071, allocations: 148.4 kB / 425.9 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.5082, allocations: 0.7713 MB / 426.7 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.5093, allocations: 0.5346 MB / 427.2 MB, free: 3.066 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000444/0.5098, allocations: 227 kB / 427.4 MB, free: 2.902 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007506/0.5105, allocations: 0.5815 MB / 428 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/0.5106, allocations: 53.7 kB / 428.1 MB, free: 2.137 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.839e-06/0.5106, allocations: 0 / 428.1 MB, free: 2.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.000883/0.5115, allocations: 323.9 kB / 428.4 MB, free: 1.887 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001521/0.5117, allocations: 181 kB / 428.6 MB, free: 1.684 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.512, allocations: 215.6 kB / 428.8 MB, free: 1.496 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/0.5121, allocations: 36.27 kB / 428.8 MB, free: 1.461 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.5122, allocations: 201.8 kB / 429 MB, free: 1.285 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.18e-05/0.5123, allocations: 57.27 kB / 429.1 MB, free: 1.242 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.842e-05/0.5123, allocations: 7.062 kB / 429.1 MB, free: 1.242 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.5125, allocations: 329.4 kB / 429.4 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.5127, allocations: 77.8 kB / 429.5 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/0.5131, allocations: 410 kB / 429.9 MB, free: 344 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002809/0.5134, allocations: 139 kB / 430 MB, free: 236 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.5135, allocations: 4 kB / 430 MB, free: 232 kB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009032/0.5144, allocations: 420.3 kB / 430.4 MB, free: 15.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.5144, allocations: 8 kB / 430.4 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/0.5144, allocations: 12 kB / 430.4 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.683e-05/0.5145, allocations: 19.98 kB / 430.5 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005366/0.515, allocations: 123.1 kB / 430.6 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.998e-05/0.5151, allocations: 19.92 kB / 430.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004133/0.5155, allocations: 57.14 kB / 430.6 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.194e-05/0.5156, allocations: 35.5 kB / 430.7 MB, free: 15.62 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.0002061/0.5158, allocations: 158 kB / 430.8 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007/0.5165, allocations: 298.8 kB / 431.1 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007238/0.5173, allocations: 311.3 kB / 431.4 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.5173, allocations: 4 kB / 431.4 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.515e-06/0.5173, allocations: 4 kB / 431.4 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.5173, allocations: 3.984 kB / 431.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005487/0.5179, allocations: 333 kB / 431.8 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/0.5179, allocations: 11.95 kB / 431.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006105/0.5185, allocations: 99 kB / 431.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.267e-05/0.5186, allocations: 4 kB / 431.9 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.719e-05/0.5186, allocations: 15.48 kB / 431.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.275e-05/0.5186, allocations: 7.938 kB / 431.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.577e-06/0.5187, allocations: 0 / 431.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.5199, allocations: 0.7017 MB / 432.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.52, allocations: 116 kB / 432.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.264e-05/0.5201, allocations: 15.19 kB / 432.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003631/0.5205, allocations: 31.11 kB / 432.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.528e-05/0.5205, allocations: 3.984 kB / 432.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.292e-05/0.5206, allocations: 15.31 kB / 432.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002431/0.5209, allocations: 175.3 kB / 433 MB, free: 13.65 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.168e-06/0.5209, allocations: 0 / 433 MB, free: 13.65 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007621/0.5217, allocations: 94.27 kB / 433 MB, free: 13.57 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.0002355/0.5219, allocations: 117.9 kB / 433.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006791/0.5226, allocations: 297.2 kB / 433.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.796e-06/0.5226, allocations: 5.062 kB / 433.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.131e-05/0.5227, allocations: 11.31 kB / 433.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.5237, allocations: 263.5 kB / 433.7 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.5255, allocations: 0.5986 MB / 434.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.526, allocations: 0.8195 MB / 435.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.5262, allocations: 38.75 kB / 435.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of SimCode: time 1.81e-06/0.5262, allocations: 0 / 435.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of Templates: time 0.008775/0.535, allocations: 4.244 MB / 439.4 MB, free: 7.375 MB / 362.7 MB