Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.103/2.103, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.439e-05/3.451e-05, allocations: 6.031 kB / 292.2 MB, free: 8.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1106, allocations: 50.41 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4502/0.5609, allocations: 79.11 MB / 421.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.5612, allocations: 70.33 kB / 421.8 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02649/0.5877, allocations: 5.653 MB / 427.5 MB, free: 9.723 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5878, allocations: 0 / 427.5 MB, free: 9.723 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.32e-05/0.5878, allocations: 8 kB / 427.5 MB, free: 9.715 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001677/0.5895, allocations: 0.5901 MB / 428.1 MB, free: 9.098 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.5895, allocations: 8.031 kB / 428.1 MB, free: 9.09 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.5897, allocations: 67.34 kB / 428.1 MB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/0.5898, allocations: 39.28 kB / 428.2 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.5903, allocations: 268.1 kB / 428.4 MB, free: 8.715 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.299e-05/0.5903, allocations: 22.81 kB / 428.5 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.5904, allocations: 33.91 kB / 428.5 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009141/0.5914, allocations: 341 kB / 428.8 MB, free: 8.441 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.5914, allocations: 0 / 428.8 MB, free: 8.441 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.202e-05/0.5915, allocations: 17.52 kB / 428.8 MB, free: 8.434 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.5915, allocations: 8 kB / 428.8 MB, free: 8.426 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009478/0.5924, allocations: 338.5 kB / 429.2 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003463/0.5959, allocations: 1.134 MB / 430.3 MB, free: 7.195 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007057/0.5967, allocations: 275.6 kB / 430.6 MB, free: 7.004 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000457/0.5972, allocations: 172.8 kB / 430.8 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.323e-05/0.5973, allocations: 8 kB / 430.8 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.5973, allocations: 34.62 kB / 430.8 MB, free: 6.855 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 3.707e-06/0.5973, allocations: 4 kB / 430.8 MB, free: 6.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.0042/0.6015, allocations: 1.415 MB / 432.2 MB, free: 5.629 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.6016, allocations: 67.8 kB / 432.3 MB, free: 5.551 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.6019, allocations: 189.6 kB / 432.5 MB, free: 5.387 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.554e-05/0.602, allocations: 41.52 kB / 432.5 MB, free: 5.352 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.6022, allocations: 204.4 kB / 432.7 MB, free: 5.164 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/0.6024, allocations: 169.3 kB / 432.9 MB, free: 5.023 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.647e-05/0.6025, allocations: 6.375 kB / 432.9 MB, free: 5.023 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.6026, allocations: 332.4 kB / 433.2 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000503/0.6031, allocations: 176.3 kB / 433.4 MB, free: 4.598 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005722/0.6037, allocations: 240.5 kB / 433.6 MB, free: 4.414 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004103/0.6041, allocations: 138.8 kB / 433.7 MB, free: 4.328 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.6041, allocations: 4 kB / 433.7 MB, free: 4.324 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002253/0.6064, allocations: 0.6119 MB / 434.4 MB, free: 3.859 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.6065, allocations: 8.109 kB / 434.4 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.548e-05/0.6065, allocations: 8 kB / 434.4 MB, free: 3.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/0.6077, allocations: 373.3 kB / 434.7 MB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005433/0.6083, allocations: 74.84 kB / 434.8 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/0.61, allocations: 1.303 MB / 436.1 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000911/0.611, allocations: 95.73 kB / 436.2 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.204e-05/0.6111, allocations: 26.69 kB / 436.2 MB, free: 2.145 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000233/0.6113, allocations: 134.4 kB / 436.4 MB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.6114, allocations: 31.61 kB / 436.4 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/0.6137, allocations: 0.6263 MB / 437 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.6138, allocations: 7.984 kB / 437 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.6138, allocations: 0 / 437 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.6138, allocations: 3.984 kB / 437 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004362/0.6182, allocations: 1.289 MB / 438.3 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.6182, allocations: 4 kB / 438.3 MB, free: 404 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005524/0.6188, allocations: 63.41 kB / 438.4 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001/0.6198, allocations: 341.3 kB / 438.7 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.395e-05/0.6199, allocations: 23.09 kB / 438.7 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.6215, allocations: 1.256 MB / 440 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/0.6215, allocations: 4.156 kB / 440 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002648/0.6242, allocations: 0.8927 MB / 440.9 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003106/0.6245, allocations: 151.4 kB / 441 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.6247, allocations: 26.23 kB / 441.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005646/0.6252, allocations: 47.03 kB / 441.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003108/0.6256, allocations: 109.9 kB / 441.2 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.836e-05/0.6256, allocations: 19.55 kB / 441.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002357/0.6259, allocations: 156.9 kB / 441.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6259, allocations: 3.938 kB / 441.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006959/0.6266, allocations: 105.4 kB / 441.5 MB, free: 13.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003356/0.63, allocations: 1.825 MB / 443.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.6316, allocations: 0.4999 MB / 443.8 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.6316, allocations: 2.75 kB / 443.8 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008456/0.6325, allocations: 259.7 kB / 444.1 MB, free: 11.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005993/0.6331, allocations: 36.78 kB / 444.1 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004063/0.6372, allocations: 0.9727 MB / 445.1 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004215/0.6376, allocations: 0.7881 MB / 445.9 MB, free: 9.574 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002307/0.6379, allocations: 85.34 kB / 446 MB, free: 9.543 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/0.6379, allocations: 0 / 446 MB, free: 9.543 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.889/3.527, allocations: 7.568 MB / 453.5 MB, free: 2.023 MB / 362.7 MB