Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.976/1.976, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.186e-05/3.173e-05, allocations: 5.562 kB / 292.2 MB, free: 8.762 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1194, allocations: 50.42 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4559/0.5753, allocations: 81.03 MB / 423.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.5757, allocations: 69.78 kB / 423.7 MB, free: 13.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03422/0.6099, allocations: 7.435 MB / 431.2 MB, free: 6.805 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.61, allocations: 0 / 431.2 MB, free: 6.805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.23e-05/0.61, allocations: 12 kB / 431.2 MB, free: 6.793 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.001388/0.6114, allocations: 0.5669 MB / 431.7 MB, free: 6.203 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.6115, allocations: 8.031 kB / 431.7 MB, free: 6.195 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000113/0.6116, allocations: 68.91 kB / 431.8 MB, free: 6.137 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.6118, allocations: 43.47 kB / 431.9 MB, free: 6.094 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009463/0.6127, allocations: 356.8 kB / 432.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.337e-05/0.6128, allocations: 24.92 kB / 432.2 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.614e-05/0.6129, allocations: 23.56 kB / 432.3 MB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.6145, allocations: 0.6574 MB / 432.9 MB, free: 5.168 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.6145, allocations: 0 / 432.9 MB, free: 5.168 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.664e-05/0.6146, allocations: 12.81 kB / 432.9 MB, free: 5.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.6146, allocations: 8 kB / 432.9 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004402/0.6151, allocations: 153 kB / 433.1 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.6163, allocations: 0.7734 MB / 433.9 MB, free: 4.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.6175, allocations: 0.5323 MB / 434.4 MB, free: 3.789 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004797/0.6179, allocations: 218.5 kB / 434.6 MB, free: 3.633 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008423/0.6188, allocations: 0.5971 MB / 435.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/0.6189, allocations: 41.7 kB / 435.2 MB, free: 2.863 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.787e-06/0.6189, allocations: 0 / 435.2 MB, free: 2.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0009401/0.6198, allocations: 318.4 kB / 435.5 MB, free: 2.617 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001622/0.62, allocations: 191.6 kB / 435.7 MB, free: 2.406 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003398/0.6204, allocations: 216 kB / 435.9 MB, free: 2.223 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.342e-05/0.6204, allocations: 32.58 kB / 436 MB, free: 2.191 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.6206, allocations: 206 kB / 436.2 MB, free: 2.012 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.161e-05/0.6206, allocations: 48.48 kB / 436.2 MB, free: 1.977 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/0.6207, allocations: 9.75 kB / 436.2 MB, free: 1.973 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.6208, allocations: 333.2 kB / 436.6 MB, free: 1.648 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.621, allocations: 69.31 kB / 436.6 MB, free: 1.602 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004387/0.6215, allocations: 399.4 kB / 437 MB, free: 1.086 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003164/0.6218, allocations: 147.4 kB / 437.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.6218, allocations: 4 kB / 437.2 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009307/0.6228, allocations: 415.1 kB / 437.6 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.6228, allocations: 12 kB / 437.6 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/0.6229, allocations: 12 kB / 437.6 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4e-05/0.6229, allocations: 19.95 kB / 437.6 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006643/0.6236, allocations: 119.1 kB / 437.7 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.442e-05/0.6236, allocations: 31.86 kB / 437.8 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004098/0.6241, allocations: 49.3 kB / 437.8 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.043e-05/0.6241, allocations: 31.38 kB / 437.8 MB, free: 372 kB / 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.0002077/0.6243, allocations: 149.8 kB / 438 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007793/0.6251, allocations: 303.8 kB / 438.3 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008019/0.6259, allocations: 314.4 kB / 438.6 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/0.626, allocations: 7.953 kB / 438.6 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.626, allocations: 11.92 kB / 438.6 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.626, allocations: 3.938 kB / 438.6 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005337/0.6266, allocations: 333.1 kB / 438.9 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.6266, allocations: 0 / 438.9 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007895/0.6274, allocations: 107.8 kB / 439 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-05/0.6274, allocations: 4 kB / 439 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.6275, allocations: 14.5 kB / 439.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.6275, allocations: 0 / 439.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.6275, allocations: 7.953 kB / 439.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.6288, allocations: 0.712 MB / 439.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.6289, allocations: 115.4 kB / 439.9 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.291e-05/0.629, allocations: 15.06 kB / 439.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004049/0.6294, allocations: 30.84 kB / 439.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.705e-05/0.6295, allocations: 4 kB / 439.9 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.307e-05/0.6295, allocations: 14.81 kB / 440 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002397/0.6298, allocations: 179.4 kB / 440.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6298, allocations: 0 / 440.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007669/0.6306, allocations: 80.41 kB / 440.2 MB, free: 14.32 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.00174/0.6323, allocations: 1.486 MB / 441.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007949/0.6332, allocations: 290.4 kB / 442 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.6332, allocations: 4.062 kB / 442 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.827e-05/0.6332, allocations: 15.86 kB / 442 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.6344, allocations: 260.5 kB / 442.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00287/0.6373, allocations: 0.6972 MB / 443 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004734/0.6379, allocations: 0.8195 MB / 443.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/0.6381, allocations: 114.7 kB / 443.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6382, allocations: 0 / 443.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.624/3.262, allocations: 5.652 MB / 449.5 MB, free: 5.402 MB / 362.7 MB