Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadModel(Modelica): time 2.102/2.102, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.148e-05/3.143e-05, allocations: 4 kB / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1252, allocations: 50.42 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00303/0.1283, allocations: 1.664 MB / 346.6 MB, free: 7.277 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.1297, allocations: 0.5067 MB / 347.1 MB, free: 6.766 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.1299, allocations: 15.94 kB / 347.2 MB, free: 6.75 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.925e-05/0.13, allocations: 7.922 kB / 347.2 MB, free: 6.742 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.1302, allocations: 31.88 kB / 347.2 MB, free: 6.711 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003723/0.1306, allocations: 55.88 kB / 347.3 MB, free: 6.656 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001687/0.1308, allocations: 71.78 kB / 347.3 MB, free: 6.586 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.1309, allocations: 31.84 kB / 347.4 MB, free: 6.555 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.938e-05/0.131, allocations: 31.92 kB / 347.4 MB, free: 6.523 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.1312, allocations: 47.81 kB / 347.4 MB, free: 6.477 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.044e-05/0.1312, allocations: 4 kB / 347.4 MB, free: 6.473 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.1312, allocations: 4 kB / 347.4 MB, free: 6.469 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.187e-05/0.1313, allocations: 27.86 kB / 347.5 MB, free: 6.441 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.347e-05/0.1314, allocations: 15.94 kB / 347.5 MB, free: 6.426 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.1315, allocations: 92.02 kB / 347.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.1315, allocations: 0 / 347.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.1316, allocations: 4 kB / 347.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.1316, allocations: 0 / 347.6 MB, free: 6.332 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007805/0.1324, allocations: 419 kB / 348 MB, free: 5.875 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.1324, allocations: 11.97 kB / 348 MB, free: 5.863 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.557e-05/0.1325, allocations: 23.67 kB / 348 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.1328, allocations: 214.7 kB / 348.2 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.1329, allocations: 12 kB / 348.2 MB, free: 5.578 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.837e-05/0.1329, allocations: 12 kB / 348.3 MB, free: 5.566 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007978/0.1337, allocations: 255.1 kB / 348.5 MB, free: 5.293 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.1338, allocations: 4 kB / 348.5 MB, free: 5.289 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.1338, allocations: 15.89 kB / 348.5 MB, free: 5.273 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1338, allocations: 0 / 348.5 MB, free: 5.273 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004523/0.1343, allocations: 91.94 kB / 348.6 MB, free: 5.184 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008885/0.1352, allocations: 0.5998 MB / 349.2 MB, free: 4.512 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005308/0.1358, allocations: 151.9 kB / 349.4 MB, free: 4.336 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.534e-05/0.1358, allocations: 7.984 kB / 349.4 MB, free: 4.328 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.1359, allocations: 34.56 kB / 349.4 MB, free: 4.285 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 5.219e-06/0.1359, allocations: 4 kB / 349.4 MB, free: 4.281 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008683/0.1368, allocations: 197.5 kB / 349.6 MB, free: 4.082 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.1369, allocations: 119 kB / 349.7 MB, free: 3.941 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.1371, allocations: 146.3 kB / 349.9 MB, free: 3.793 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.1371, allocations: 29.7 kB / 349.9 MB, free: 3.758 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.1372, allocations: 178.7 kB / 350.1 MB, free: 3.582 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/0.1373, allocations: 23.7 kB / 350.1 MB, free: 3.559 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.1373, allocations: 4 kB / 350.1 MB, free: 3.555 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1374, allocations: 318.8 kB / 350.4 MB, free: 3.234 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002476/0.1377, allocations: 48.72 kB / 350.4 MB, free: 3.188 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002765/0.138, allocations: 140.9 kB / 350.6 MB, free: 3.004 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002424/0.1383, allocations: 59.91 kB / 350.6 MB, free: 2.945 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1383, allocations: 0 / 350.6 MB, free: 2.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006383/0.1389, allocations: 201.2 kB / 350.8 MB, free: 2.742 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.139, allocations: 12.41 kB / 350.9 MB, free: 2.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.139, allocations: 4 kB / 350.9 MB, free: 2.727 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.693e-05/0.139, allocations: 11.94 kB / 350.9 MB, free: 2.715 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003102/0.1393, allocations: 47.97 kB / 350.9 MB, free: 2.668 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.1394, allocations: 7.938 kB / 350.9 MB, free: 2.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.1396, allocations: 23.83 kB / 350.9 MB, free: 2.637 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.1396, allocations: 12 kB / 351 MB, free: 2.625 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001737/0.1398, allocations: 140.2 kB / 351.1 MB, free: 2.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/0.14, allocations: 89.53 kB / 351.2 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.1402, allocations: 24.7 kB / 351.2 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.1402, allocations: 4 kB / 351.2 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.1402, allocations: 0 / 351.2 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.1402, allocations: 240 / 351.2 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003787/0.1406, allocations: 213.5 kB / 351.4 MB, free: 2.102 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.1406, allocations: 4 kB / 351.4 MB, free: 2.098 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003568/0.141, allocations: 39.97 kB / 351.5 MB, free: 2.059 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.141, allocations: 4 kB / 351.5 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.141, allocations: 7.984 kB / 351.5 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.1411, allocations: 0 / 351.5 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.1411, allocations: 0 / 351.5 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009571/0.142, allocations: 422.7 kB / 351.9 MB, free: 1.602 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.1422, allocations: 109 kB / 352 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.397e-05/0.1422, allocations: 0 / 352 MB, free: 1.477 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.1425, allocations: 24.05 kB / 352 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.1425, allocations: 4 kB / 352 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.1425, allocations: 4 kB / 352 MB, free: 1.445 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001327/0.1427, allocations: 117.2 kB / 352.1 MB, free: 1.332 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1427, allocations: 0 / 352.1 MB, free: 1.332 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004296/0.1431, allocations: 31.86 kB / 352.2 MB, free: 1.301 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 (15): * Single equations (assignments): 15 * 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.0001511/0.1433, allocations: 115.2 kB / 352.3 MB, free: 1.176 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005703/0.1439, allocations: 124.6 kB / 352.4 MB, free: 1.055 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1439, allocations: 0 / 352.4 MB, free: 1.055 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.1441, allocations: 40.12 kB / 352.4 MB, free: 1.016 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000519/0.1446, allocations: 59.89 kB / 352.5 MB, free: 0.957 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001174/0.1458, allocations: 0.5268 MB / 353 MB, free: 396 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.1462, allocations: 0.7206 MB / 353.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.354e-05/0.1463, allocations: 23.44 kB / 353.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.1463, allocations: 0 / 353.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of Templates: time 0.004672/0.151, allocations: 1.566 MB / 355.3 MB, free: 14.05 MB / 298.7 MB