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.33/2.33, allocations: 218.4 MB / 234.2 MB, free: 336 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.989e-05/2.982e-05, allocations: 7.875 kB / 287.6 MB, free: 8.441 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 50.38 MB / 338 MB, free: 10.56 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004264/0.1131, allocations: 2.211 MB / 340.2 MB, free: 8.332 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002264/0.1154, allocations: 0.8232 MB / 341 MB, free: 7.504 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003247/0.1158, allocations: 23.88 kB / 341 MB, free: 7.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.674e-05/0.1159, allocations: 27.66 kB / 341.1 MB, free: 7.453 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000373/0.1163, allocations: 71.75 kB / 341.1 MB, free: 7.383 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009657/0.1173, allocations: 199.6 kB / 341.3 MB, free: 7.188 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005273/0.1178, allocations: 199.5 kB / 341.5 MB, free: 6.992 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002813/0.1181, allocations: 90.91 kB / 341.6 MB, free: 6.902 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.1183, allocations: 87.69 kB / 341.7 MB, free: 6.816 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.1185, allocations: 91.55 kB / 341.8 MB, free: 6.727 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.1187, allocations: 39.91 kB / 341.8 MB, free: 6.688 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.553e-05/0.1188, allocations: 12 kB / 341.8 MB, free: 6.676 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.1189, allocations: 55.75 kB / 341.9 MB, free: 6.621 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.882e-05/0.119, allocations: 20 kB / 341.9 MB, free: 6.602 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004767/0.1195, allocations: 267.6 kB / 342.2 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1195, allocations: 0 / 342.2 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.1195, allocations: 4 kB / 342.2 MB, free: 6.336 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.1195, allocations: 0 / 342.2 MB, free: 6.336 MB / 282.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.001378/0.1209, allocations: 0.5499 MB / 342.7 MB, free: 5.738 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.121, allocations: 8.031 kB / 342.7 MB, free: 5.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.1211, allocations: 43.48 kB / 342.8 MB, free: 5.688 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006246/0.1218, allocations: 326.7 kB / 343.1 MB, free: 5.328 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.1218, allocations: 20.56 kB / 343.1 MB, free: 5.309 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.956e-05/0.1219, allocations: 24 kB / 343.1 MB, free: 5.285 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002294/0.1242, allocations: 0.7674 MB / 343.9 MB, free: 4.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.41e-05/0.1243, allocations: 11.88 kB / 343.9 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.105e-05/0.1243, allocations: 8 kB / 343.9 MB, free: 4.461 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.1244, allocations: 12 kB / 343.9 MB, free: 4.449 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.1255, allocations: 243.7 kB / 344.2 MB, free: 4.211 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.1269, allocations: 0.7683 MB / 344.9 MB, free: 3.367 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001996/0.1289, allocations: 0.6621 MB / 345.6 MB, free: 2.633 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009968/0.13, allocations: 0.5939 MB / 346.2 MB, free: 1.91 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.26e-05/0.1301, allocations: 50.27 kB / 346.2 MB, free: 1.852 MB / 282.7 MB Notification: Performance of pre-optimization done (n=52): time 4.128e-06/0.1301, allocations: 0 / 346.2 MB, free: 1.852 MB / 282.7 MB Notification: Performance of matching and sorting (n=52): time 0.002422/0.1325, allocations: 0.647 MB / 346.9 MB, free: 1.18 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002046/0.1328, allocations: 207.9 kB / 347.1 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004114/0.1332, allocations: 221.8 kB / 347.3 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.533e-05/0.1333, allocations: 33.7 kB / 347.3 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.1335, allocations: 211.1 kB / 347.5 MB, free: 476 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.922e-05/0.1336, allocations: 47.64 kB / 347.6 MB, free: 428 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.418e-05/0.1336, allocations: 12 kB / 347.6 MB, free: 416 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1338, allocations: 334.8 kB / 347.9 MB, free: 72 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/0.1342, allocations: 89.06 kB / 348 MB, free: 15.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006636/0.1349, allocations: 434.9 kB / 348.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004822/0.1354, allocations: 159.9 kB / 348.6 MB, free: 15.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.1354, allocations: 8 kB / 348.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001365/0.1368, allocations: 485 kB / 349.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/0.1369, allocations: 12 kB / 349.1 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.3e-05/0.1369, allocations: 12 kB / 349.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.943e-05/0.1369, allocations: 16.81 kB / 349.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006732/0.1376, allocations: 127.8 kB / 349.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.152e-05/0.1377, allocations: 23.92 kB / 349.3 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004617/0.1382, allocations: 51.59 kB / 349.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.195e-05/0.1382, allocations: 32 kB / 349.3 MB, free: 14.48 MB / 298.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.000367/0.1386, allocations: 193.3 kB / 349.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/0.1398, allocations: 361.9 kB / 349.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.141, allocations: 360.8 kB / 350.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.1411, allocations: 4 kB / 350.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.1411, allocations: 4 kB / 350.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.1411, allocations: 7.922 kB / 350.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000647/0.1418, allocations: 345 kB / 350.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.419e-05/0.1418, allocations: 4 kB / 350.6 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008125/0.1426, allocations: 103.9 kB / 350.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.354e-05/0.1427, allocations: 7.938 kB / 350.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.466e-05/0.1427, allocations: 11.98 kB / 350.7 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.658e-06/0.1428, allocations: 4 kB / 350.7 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1428, allocations: 0 / 350.7 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002404/0.1452, allocations: 0.8423 MB / 351.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.1454, allocations: 120.6 kB / 351.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.66e-05/0.1455, allocations: 12 kB / 351.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004368/0.146, allocations: 36.03 kB / 351.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/0.146, allocations: 12.22 kB / 351.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.266e-05/0.1461, allocations: 15.98 kB / 351.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000294/0.1464, allocations: 182 kB / 351.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1464, allocations: 0 / 351.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008072/0.1472, allocations: 75.91 kB / 352 MB, free: 11.68 MB / 298.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.0002983/0.1475, allocations: 127.2 kB / 352.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001398/0.149, allocations: 373.4 kB / 352.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.149, allocations: 4.062 kB / 352.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001933/0.1492, allocations: 31.92 kB / 352.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001565/0.1508, allocations: 299.1 kB / 352.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00265/0.1535, allocations: 0.9048 MB / 353.7 MB, free: 9.906 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005799/0.1541, allocations: 0.8239 MB / 354.6 MB, free: 9.055 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/0.1543, allocations: 35.44 kB / 354.6 MB, free: 9.02 MB / 298.7 MB Notification: Performance of SimCode: time 1.343e-06/0.1543, allocations: 0 / 354.6 MB, free: 9.02 MB / 298.7 MB Notification: Performance of Templates: time 0.01218/0.1665, allocations: 4.339 MB / 358.9 MB, free: 4.684 MB / 298.7 MB