Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.624e-05/3.643e-05, allocations: 0 / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0929/0.09297, allocations: 44.51 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3877/0.4807, allocations: 73.17 MB / 373.1 MB, free: 22.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.481, allocations: 63.5 kB / 373.2 MB, free: 22.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02437/0.5054, allocations: 5.454 MB / 378.6 MB, free: 21.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.5055, allocations: 0 / 378.6 MB, free: 21.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.5055, allocations: 9.625 kB / 378.6 MB, free: 21.82 MB / 314.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.001547/0.5071, allocations: 0.599 MB / 379.2 MB, free: 21.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.5071, allocations: 11 kB / 379.2 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.915e-05/0.5072, allocations: 63.52 kB / 379.3 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.5073, allocations: 37.19 kB / 379.3 MB, free: 21.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003882/0.5077, allocations: 272.9 kB / 379.6 MB, free: 21.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.173e-05/0.5078, allocations: 24.75 kB / 379.6 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.956e-05/0.5079, allocations: 33.78 kB / 379.7 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008791/0.5088, allocations: 342.4 kB / 380 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.345e-05/0.5088, allocations: 1.688 kB / 380 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.284e-05/0.5089, allocations: 13.84 kB / 380 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.5089, allocations: 6.594 kB / 380 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009335/0.5099, allocations: 342.2 kB / 380.4 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003071/0.513, allocations: 1.125 MB / 381.5 MB, free: 20.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006927/0.5137, allocations: 280.2 kB / 381.8 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004536/0.5142, allocations: 176.3 kB / 381.9 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.752e-05/0.5143, allocations: 8.125 kB / 381.9 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.5143, allocations: 39.2 kB / 382 MB, free: 20.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.427e-06/0.5143, allocations: 7.875 kB / 382 MB, free: 20.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003858/0.5182, allocations: 1.414 MB / 383.4 MB, free: 19.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.5182, allocations: 58.44 kB / 383.4 MB, free: 19.87 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.5185, allocations: 189.8 kB / 383.6 MB, free: 19.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.534e-05/0.5186, allocations: 43.19 kB / 383.7 MB, free: 19.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.758e-05/0.5187, allocations: 204.6 kB / 383.9 MB, free: 19.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.5188, allocations: 156 kB / 384 MB, free: 19.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.981e-05/0.5189, allocations: 13.56 kB / 384 MB, free: 19.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.353e-05/0.519, allocations: 328.5 kB / 384.4 MB, free: 19.15 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000483/0.5195, allocations: 172 kB / 384.5 MB, free: 19.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005489/0.52, allocations: 254.6 kB / 384.8 MB, free: 19.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004082/0.5205, allocations: 144 kB / 384.9 MB, free: 19.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.5205, allocations: 0 / 384.9 MB, free: 19.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002182/0.5227, allocations: 0.6171 MB / 385.5 MB, free: 18.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.5227, allocations: 7.422 kB / 385.5 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/0.5228, allocations: 2.75 kB / 385.5 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/0.5239, allocations: 374.9 kB / 385.9 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005221/0.5244, allocations: 71.69 kB / 386 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.5258, allocations: 1.316 MB / 387.3 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008458/0.5267, allocations: 94.16 kB / 387.4 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.794e-05/0.5268, allocations: 23.25 kB / 387.4 MB, free: 17.88 MB / 314.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.0001959/0.527, allocations: 139.3 kB / 387.5 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.5271, allocations: 29.62 kB / 387.6 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00215/0.5293, allocations: 0.6254 MB / 388.2 MB, free: 17.65 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.5293, allocations: 5.062 kB / 388.2 MB, free: 17.65 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.5293, allocations: 0 / 388.2 MB, free: 17.65 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.5293, allocations: 7.219 kB / 388.2 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004024/0.5334, allocations: 1.297 MB / 389.5 MB, free: 17.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.5334, allocations: 5.5 kB / 389.5 MB, free: 17.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005536/0.534, allocations: 60.83 kB / 389.6 MB, free: 17.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009555/0.535, allocations: 349.5 kB / 389.9 MB, free: 17.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.79e-05/0.535, allocations: 20.84 kB / 389.9 MB, free: 17.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/0.5363, allocations: 1.259 MB / 391.2 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.5363, allocations: 3.906 kB / 391.2 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002347/0.5387, allocations: 0.8944 MB / 392.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000259/0.5389, allocations: 155.6 kB / 392.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.5391, allocations: 15.44 kB / 392.3 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005288/0.5396, allocations: 49.62 kB / 392.3 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002788/0.5399, allocations: 99.48 kB / 392.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.928e-05/0.54, allocations: 21.98 kB / 392.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000179/0.5402, allocations: 169.4 kB / 392.6 MB, free: 15.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5402, allocations: 3.906 kB / 392.6 MB, free: 15.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006404/0.5408, allocations: 101.5 kB / 392.7 MB, free: 15.61 MB / 314.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.003373/0.5442, allocations: 1.834 MB / 394.5 MB, free: 30.42 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.5456, allocations: 0.505 MB / 395 MB, free: 30.34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.5457, allocations: 4 kB / 395 MB, free: 30.33 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007159/0.5464, allocations: 261 kB / 395.3 MB, free: 30.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005809/0.547, allocations: 38.28 kB / 395.3 MB, free: 30.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003397/0.5504, allocations: 0.975 MB / 396.3 MB, free: 29.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.5508, allocations: 0.7889 MB / 397.1 MB, free: 29.14 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.551, allocations: 90.3 kB / 397.2 MB, free: 29.13 MB / 330.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5511, allocations: 0 / 397.2 MB, free: 29.13 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.789/3.34, allocations: 7.57 MB / 404.8 MB, free: 28.68 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat