Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadModel(Modelica_Synchronous): time 2.463/2.463, allocations: 218.4 MB / 234.2 MB, free: 348 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.938e-05/4.954e-05, allocations: 6.75 kB / 287.6 MB, free: 8.465 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 50.37 MB / 338 MB, free: 10.57 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003971/0.12, allocations: 1.641 MB / 339.6 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.1215, allocations: 0.492 MB / 340.1 MB, free: 8.414 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1217, allocations: 4 kB / 340.1 MB, free: 8.41 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.472e-05/0.1217, allocations: 7.922 kB / 340.1 MB, free: 8.402 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.1219, allocations: 27.88 kB / 340.1 MB, free: 8.375 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000446/0.1224, allocations: 39.95 kB / 340.2 MB, free: 8.336 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002095/0.1226, allocations: 71.78 kB / 340.2 MB, free: 8.266 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.1228, allocations: 31.98 kB / 340.3 MB, free: 8.234 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.1229, allocations: 31.86 kB / 340.3 MB, free: 8.203 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.123, allocations: 43.83 kB / 340.3 MB, free: 8.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.526e-05/0.1231, allocations: 4 kB / 340.4 MB, free: 8.156 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.1231, allocations: 4 kB / 340.4 MB, free: 8.152 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.913e-05/0.1232, allocations: 15.92 kB / 340.4 MB, free: 8.137 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.504e-05/0.1232, allocations: 8 kB / 340.4 MB, free: 8.129 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.1234, allocations: 80.05 kB / 340.5 MB, free: 8.051 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1235, allocations: 0 / 340.5 MB, free: 8.051 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.1235, allocations: 4 kB / 340.5 MB, free: 8.047 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1235, allocations: 0 / 340.5 MB, free: 8.047 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008947/0.1244, allocations: 403 kB / 340.9 MB, free: 7.605 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.665e-05/0.1245, allocations: 12.03 kB / 340.9 MB, free: 7.594 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.951e-05/0.1246, allocations: 15.81 kB / 340.9 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.125, allocations: 198.9 kB / 341.1 MB, free: 7.344 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.125, allocations: 12 kB / 341.1 MB, free: 7.332 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.956e-05/0.1251, allocations: 12 kB / 341.1 MB, free: 7.32 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009641/0.1261, allocations: 238.5 kB / 341.3 MB, free: 7.062 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.1261, allocations: 3.984 kB / 341.3 MB, free: 7.059 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.1262, allocations: 8 kB / 341.3 MB, free: 7.051 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.1262, allocations: 3.938 kB / 341.3 MB, free: 7.047 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000601/0.1268, allocations: 99.81 kB / 341.4 MB, free: 6.949 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.128, allocations: 0.596 MB / 342 MB, free: 6.277 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006072/0.1286, allocations: 152 kB / 342.2 MB, free: 6.102 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.3e-05/0.1287, allocations: 8 kB / 342.2 MB, free: 6.094 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.1287, allocations: 30.56 kB / 342.2 MB, free: 6.055 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 3.447e-06/0.1288, allocations: 0 / 342.2 MB, free: 6.055 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.00117/0.1299, allocations: 193.5 kB / 342.4 MB, free: 5.859 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/0.1301, allocations: 106.8 kB / 342.5 MB, free: 5.73 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/0.1303, allocations: 133 kB / 342.7 MB, free: 5.594 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.1304, allocations: 29.64 kB / 342.7 MB, free: 5.559 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.1306, allocations: 178.2 kB / 342.9 MB, free: 5.383 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.922e-05/0.1306, allocations: 31.77 kB / 342.9 MB, free: 5.352 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.835e-05/0.1307, allocations: 4 kB / 342.9 MB, free: 5.348 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.1309, allocations: 318.8 kB / 343.2 MB, free: 5.027 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.1311, allocations: 39.97 kB / 343.2 MB, free: 4.988 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003841/0.1315, allocations: 136.1 kB / 343.4 MB, free: 4.809 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.1319, allocations: 67.91 kB / 343.4 MB, free: 4.742 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.1319, allocations: 0 / 343.4 MB, free: 4.742 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0008782/0.1328, allocations: 193.3 kB / 343.6 MB, free: 4.547 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.1329, allocations: 10.03 kB / 343.6 MB, free: 4.539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.1329, allocations: 4 kB / 343.6 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/0.1329, allocations: 4 kB / 343.6 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004086/0.1333, allocations: 47.91 kB / 343.7 MB, free: 4.484 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.1334, allocations: 4 kB / 343.7 MB, free: 4.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.1337, allocations: 32.14 kB / 343.7 MB, free: 4.449 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.811e-05/0.1337, allocations: 12 kB / 343.7 MB, free: 4.438 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001794/0.1339, allocations: 126.1 kB / 343.9 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003063/0.1342, allocations: 89.47 kB / 344 MB, free: 4.211 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.063e-05/0.1343, allocations: 12.72 kB / 344 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.1343, allocations: 4 kB / 344 MB, free: 4.191 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.1343, allocations: 0 / 344 MB, free: 4.191 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.1344, allocations: 3.984 kB / 344 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005282/0.1349, allocations: 205.5 kB / 344.2 MB, free: 3.938 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1349, allocations: 4 kB / 344.2 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004246/0.1354, allocations: 39.91 kB / 344.2 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-06/0.1354, allocations: 0 / 344.2 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.1354, allocations: 8 kB / 344.2 MB, free: 3.887 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.1354, allocations: 0 / 344.2 MB, free: 3.887 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.1355, allocations: 0 / 344.2 MB, free: 3.887 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.1366, allocations: 414.8 kB / 344.6 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.62e-05/0.1367, allocations: 85.05 kB / 344.7 MB, free: 3.348 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/0.1368, allocations: 8 kB / 344.7 MB, free: 3.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/0.1371, allocations: 11.98 kB / 344.7 MB, free: 3.328 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.291e-05/0.1372, allocations: 7.938 kB / 344.7 MB, free: 3.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.1372, allocations: 4 kB / 344.7 MB, free: 3.316 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001187/0.1374, allocations: 99.2 kB / 344.8 MB, free: 3.219 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.1374, allocations: 0 / 344.8 MB, free: 3.219 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007932/0.1382, allocations: 35.95 kB / 344.9 MB, free: 3.184 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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 Backend phase and start with SimCode phase: time 0.0001603/0.1384, allocations: 103.5 kB / 345 MB, free: 3.074 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007152/0.1391, allocations: 132.5 kB / 345.1 MB, free: 2.945 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.1391, allocations: 0 / 345.1 MB, free: 2.945 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002354/0.1394, allocations: 27.98 kB / 345.1 MB, free: 2.918 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007232/0.1401, allocations: 55.94 kB / 345.2 MB, free: 2.863 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.1415, allocations: 483.4 kB / 345.7 MB, free: 2.352 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.142, allocations: 0.7207 MB / 346.4 MB, free: 1.605 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.848e-05/0.1421, allocations: 15.44 kB / 346.4 MB, free: 1.59 MB / 282.7 MB Notification: Performance of SimCode: time 1.352e-06/0.1421, allocations: 0 / 346.4 MB, free: 1.59 MB / 282.7 MB Notification: Performance of Templates: time 0.005862/0.148, allocations: 1.461 MB / 347.9 MB, free: 136 kB / 282.7 MB