Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.284/2.284, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.347e-05/3.36e-05, allocations: 0 / 284.4 MB, free: 8.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1131, allocations: 50.37 MB / 334.8 MB, free: 6.129 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.497/0.6101, allocations: 80.4 MB / 415.2 MB, free: 13.51 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.6104, allocations: 65.47 kB / 415.2 MB, free: 13.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01065/0.6211, allocations: 2.547 MB / 417.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6211, allocations: 0 / 417.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.6211, allocations: 4 kB / 417.8 MB, free: 11.29 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007001/0.6219, allocations: 406.2 kB / 418.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.6219, allocations: 12.03 kB / 418.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.869e-05/0.622, allocations: 42.38 kB / 418.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.633e-05/0.6221, allocations: 21.77 kB / 418.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.6223, allocations: 202.3 kB / 418.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.6224, allocations: 15.58 kB / 418.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.069e-05/0.6224, allocations: 15.56 kB / 418.5 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005162/0.623, allocations: 207.6 kB / 418.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.623, allocations: 4 kB / 418.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.672e-05/0.623, allocations: 7.5 kB / 418.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.6231, allocations: 8 kB / 418.7 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.6233, allocations: 57.55 kB / 418.8 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000885/0.6242, allocations: 0.6007 MB / 419.4 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/0.6245, allocations: 129.7 kB / 419.5 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.6247, allocations: 66.83 kB / 419.5 MB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.6248, allocations: 8.078 kB / 419.6 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.6248, allocations: 37.89 kB / 419.6 MB, free: 9.418 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.544e-06/0.6248, allocations: 0 / 419.6 MB, free: 9.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003538/0.6252, allocations: 106.2 kB / 419.7 MB, free: 9.324 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.528e-05/0.6253, allocations: 114.1 kB / 419.8 MB, free: 9.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.6254, allocations: 132.7 kB / 419.9 MB, free: 9.062 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.6255, allocations: 29.08 kB / 420 MB, free: 9.031 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.6256, allocations: 184.8 kB / 420.1 MB, free: 8.855 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.701e-05/0.6256, allocations: 26.47 kB / 420.2 MB, free: 8.836 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.917e-06/0.6257, allocations: 0 / 420.2 MB, free: 8.836 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.6258, allocations: 318.2 kB / 420.5 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.194e-05/0.6259, allocations: 26.19 kB / 420.5 MB, free: 8.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.6261, allocations: 122 kB / 420.6 MB, free: 8.344 MB / 346.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003022/0.6264, allocations: 141.3 kB / 420.8 MB, free: 8.199 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.6264, allocations: 0 / 420.8 MB, free: 8.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003707/0.6268, allocations: 156.8 kB / 420.9 MB, free: 8.062 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.6268, allocations: 12 kB / 420.9 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.6268, allocations: 4.094 kB / 420.9 MB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.621e-05/0.6269, allocations: 7.984 kB / 420.9 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.6272, allocations: 47.91 kB / 421 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.6272, allocations: 7.938 kB / 421 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.6274, allocations: 27.45 kB / 421 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.6275, allocations: 8 kB / 421 MB, free: 7.953 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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.0001195/0.6276, allocations: 127.6 kB / 421.2 MB, free: 7.828 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002198/0.6278, allocations: 91.08 kB / 421.2 MB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.887e-05/0.6279, allocations: 21.61 kB / 421.3 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.6279, allocations: 0 / 421.3 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.6279, allocations: 7.938 kB / 421.3 MB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.6279, allocations: 0 / 421.3 MB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003635/0.6283, allocations: 201.6 kB / 421.5 MB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.6283, allocations: 4 kB / 421.5 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004083/0.6288, allocations: 47.16 kB / 421.5 MB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.6288, allocations: 4 kB / 421.5 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.6288, allocations: 7.891 kB / 421.5 MB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.6288, allocations: 3.984 kB / 421.5 MB, free: 7.434 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.6288, allocations: 4 kB / 421.5 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005059/0.6294, allocations: 369.9 kB / 421.9 MB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.262e-05/0.6294, allocations: 85.05 kB / 422 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.6295, allocations: 7.984 kB / 422 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.6297, allocations: 11.75 kB / 422 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.638e-05/0.6298, allocations: 3.984 kB / 422 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.6298, allocations: 8 kB / 422 MB, free: 6.953 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.625e-05/0.6299, allocations: 107 kB / 422.1 MB, free: 6.859 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6299, allocations: 4.062 kB / 422.1 MB, free: 6.855 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00047/0.6304, allocations: 38.34 kB / 422.2 MB, free: 6.824 MB / 346.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.0008906/0.6313, allocations: 1.036 MB / 423.2 MB, free: 5.797 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002918/0.6316, allocations: 83.12 kB / 423.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.6316, allocations: 0 / 423.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.286e-05/0.6317, allocations: 23.17 kB / 423.3 MB, free: 5.715 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005202/0.6322, allocations: 57.78 kB / 423.4 MB, free: 5.672 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.6336, allocations: 382.3 kB / 423.7 MB, free: 5.277 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.634, allocations: 0.7245 MB / 424.5 MB, free: 4.527 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.6342, allocations: 37.42 kB / 424.5 MB, free: 4.512 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6342, allocations: 4 kB / 424.5 MB, free: 4.508 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.382/3.016, allocations: 2.183 MB / 426.7 MB, free: 2.352 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat does not exist to compare? outputFormat=mat