Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.886/1.886, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.35e-05/3.36e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.265, allocations: 38.76 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.3899, allocations: 67.85 MB / 331.7 MB, free: 5.926 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/0.3902, allocations: 67.95 kB / 331.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02591/0.4161, allocations: 5.373 MB / 337.1 MB, free: 476 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4162, allocations: 0 / 337.1 MB, free: 476 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.55e-05/0.4162, allocations: 8 kB / 337.1 MB, free: 468 kB / 282.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.00176/0.418, allocations: 0.6074 MB / 337.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.418, allocations: 8.031 kB / 337.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/0.4182, allocations: 70.53 kB / 337.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.4183, allocations: 31.62 kB / 337.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004516/0.4188, allocations: 263.5 kB / 338.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.499e-05/0.4188, allocations: 24.56 kB / 338.1 MB, free: 15.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.419, allocations: 39.88 kB / 338.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000994/0.42, allocations: 356.8 kB / 338.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.925e-05/0.42, allocations: 7.984 kB / 338.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.821e-05/0.4201, allocations: 8 kB / 338.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.4201, allocations: 8 kB / 338.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.4212, allocations: 382.1 kB / 338.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003514/0.4247, allocations: 1.143 MB / 340 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007614/0.4256, allocations: 272.7 kB / 340.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005172/0.4261, allocations: 184.8 kB / 340.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.753e-05/0.4262, allocations: 15.89 kB / 340.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.4263, allocations: 39.22 kB / 340.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 3.266e-06/0.4263, allocations: 0 / 340.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004934/0.4312, allocations: 1.591 MB / 342.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.4313, allocations: 59.41 kB / 342.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.4317, allocations: 212.9 kB / 342.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.4318, allocations: 37.7 kB / 342.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.432, allocations: 207.3 kB / 342.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002055/0.4322, allocations: 157.9 kB / 342.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.842e-05/0.4323, allocations: 8 kB / 342.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.4324, allocations: 330.8 kB / 343.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005977/0.433, allocations: 201.1 kB / 343.3 MB, free: 9.914 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006562/0.4337, allocations: 272.8 kB / 343.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004726/0.4342, allocations: 165.5 kB / 343.7 MB, free: 9.461 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.4342, allocations: 4 kB / 343.8 MB, free: 9.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002666/0.4369, allocations: 0.7721 MB / 344.5 MB, free: 8.672 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.437, allocations: 4 kB / 344.5 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.437, allocations: 4 kB / 344.5 MB, free: 8.664 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/0.4384, allocations: 0.5013 MB / 345 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005689/0.439, allocations: 75.91 kB / 345.1 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001866/0.4409, allocations: 1.374 MB / 346.5 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008646/0.4418, allocations: 99.98 kB / 346.6 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.051e-05/0.4419, allocations: 23.98 kB / 346.6 MB, free: 6.535 MB / 298.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): 47 * 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 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002141/0.4421, allocations: 129.3 kB / 346.7 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.4423, allocations: 31.67 kB / 346.8 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.4424, allocations: 51.08 kB / 346.8 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.4425, allocations: 4 kB / 346.8 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.4425, allocations: 0 / 346.8 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.4425, allocations: 3.984 kB / 346.8 MB, free: 6.312 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004869/0.4474, allocations: 1.471 MB / 348.3 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.4474, allocations: 0 / 348.3 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005589/0.448, allocations: 59.91 kB / 348.3 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001342/0.4494, allocations: 489.3 kB / 348.8 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.293e-05/0.4495, allocations: 15.97 kB / 348.8 MB, free: 4.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001688/0.4512, allocations: 1.323 MB / 350.2 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/0.4512, allocations: 8.016 kB / 350.2 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003163/0.4544, allocations: 1.076 MB / 351.2 MB, free: 1.676 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003294/0.4548, allocations: 156.7 kB / 351.4 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.4549, allocations: 16 kB / 351.4 MB, free: 1.488 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005515/0.4555, allocations: 55.89 kB / 351.5 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000318/0.4558, allocations: 103.7 kB / 351.6 MB, free: 1.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.963e-05/0.4559, allocations: 27.97 kB / 351.6 MB, free: 1.305 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002328/0.4561, allocations: 157.4 kB / 351.8 MB, free: 1.148 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4562, allocations: 4 kB / 351.8 MB, free: 1.145 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006837/0.4569, allocations: 104 kB / 351.9 MB, free: 1.043 MB / 298.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.003797/0.4607, allocations: 2.03 MB / 353.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.4624, allocations: 490.2 kB / 354.4 MB, free: 14.47 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/0.4624, allocations: 4 kB / 354.4 MB, free: 14.47 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008667/0.4633, allocations: 259.8 kB / 354.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006293/0.4639, allocations: 45.25 kB / 354.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003966/0.4679, allocations: 0.9908 MB / 355.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.4684, allocations: 0.788 MB / 356.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.4687, allocations: 91.41 kB / 356.5 MB, free: 12.22 MB / 314.7 MB Notification: Performance of SimCode: time 1.202e-06/0.4687, allocations: 0 / 356.5 MB, free: 12.22 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.83/3.299, allocations: 7.205 MB / 363.7 MB, free: 5.008 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat