Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.76/1.76, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.591e-05/3.618e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3009, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1877/0.4887, allocations: 70.02 MB / 328.3 MB, free: 7.816 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/0.489, allocations: 71.97 kB / 328.4 MB, free: 7.746 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03493/0.524, allocations: 7.339 MB / 335.7 MB, free: 388 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.524, allocations: 0 / 335.7 MB, free: 388 kB / 282.7 MB Notification: Performance of Transformations before backend: time 3.351e-05/0.5241, allocations: 8 kB / 335.8 MB, free: 380 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002084/0.5262, allocations: 0.7029 MB / 336.5 MB, free: 15.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.5262, allocations: 8.031 kB / 336.5 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.5264, allocations: 47.44 kB / 336.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006185/0.5271, allocations: 318.1 kB / 336.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.921e-05/0.5271, allocations: 16 kB / 336.8 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.5272, allocations: 27.89 kB / 336.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001245/0.5285, allocations: 421.4 kB / 337.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.5296, allocations: 394 kB / 337.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.064e-05/0.5297, allocations: 0 / 337.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.525e-05/0.5297, allocations: 4 kB / 337.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.5298, allocations: 11.94 kB / 337.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003496/0.5333, allocations: 1.084 MB / 338.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.5343, allocations: 352 kB / 339.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006318/0.535, allocations: 230.1 kB / 339.3 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.567e-05/0.5351, allocations: 8.422 kB / 339.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.5351, allocations: 39 kB / 339.4 MB, free: 12.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.878e-06/0.5352, allocations: 0 / 339.4 MB, free: 12.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.005323/0.5405, allocations: 1.646 MB / 341 MB, free: 10.85 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.5406, allocations: 55.97 kB / 341.1 MB, free: 10.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003512/0.5409, allocations: 214.3 kB / 341.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.578e-05/0.5411, allocations: 37.69 kB / 341.3 MB, free: 10.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.5412, allocations: 243.6 kB / 341.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002308/0.5415, allocations: 181.4 kB / 341.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.5415, allocations: 0 / 341.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.5417, allocations: 342.8 kB / 342.1 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005464/0.5423, allocations: 209.5 kB / 342.3 MB, free: 9.562 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005965/0.5429, allocations: 252.7 kB / 342.5 MB, free: 9.312 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000633/0.5435, allocations: 184.4 kB / 342.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.5435, allocations: 0 / 342.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002799/0.5463, allocations: 0.7864 MB / 343.5 MB, free: 8.332 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.5464, allocations: 4 kB / 343.5 MB, free: 8.328 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.5464, allocations: 4 kB / 343.5 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/0.5479, allocations: 0.5052 MB / 344 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007578/0.5487, allocations: 107.8 kB / 344.1 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002024/0.5507, allocations: 1.421 MB / 345.5 MB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009695/0.5517, allocations: 96.06 kB / 345.6 MB, free: 6.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.573e-05/0.5518, allocations: 23.98 kB / 345.6 MB, free: 6.117 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002921/0.5521, allocations: 136.8 kB / 345.8 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002114/0.5543, allocations: 0.6335 MB / 346.4 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.5544, allocations: 35.62 kB / 346.4 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001771/0.5546, allocations: 51.42 kB / 346.5 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.5546, allocations: 4 kB / 346.5 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.5546, allocations: 3.938 kB / 346.5 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.5547, allocations: 7.984 kB / 346.5 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004457/0.5591, allocations: 1.431 MB / 347.9 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.5592, allocations: 4 kB / 347.9 MB, free: 3.719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007777/0.56, allocations: 87.83 kB / 348 MB, free: 3.633 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001393/0.5614, allocations: 497.4 kB / 348.5 MB, free: 3.141 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.054e-05/0.5615, allocations: 23.97 kB / 348.5 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001856/0.5634, allocations: 1.394 MB / 349.9 MB, free: 1.672 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.5634, allocations: 0 / 349.9 MB, free: 1.672 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00287/0.5663, allocations: 1.089 MB / 351 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000344/0.5667, allocations: 160.6 kB / 351.2 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.5668, allocations: 19.98 kB / 351.2 MB, free: 328 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007773/0.5676, allocations: 67.94 kB / 351.3 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003482/0.568, allocations: 116.1 kB / 351.4 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.64e-05/0.5681, allocations: 27.97 kB / 351.4 MB, free: 116 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002761/0.5684, allocations: 166 kB / 351.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5684, allocations: 0 / 351.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006926/0.5691, allocations: 108 kB / 351.7 MB, free: 15.84 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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 Backend phase and start with SimCode phase: time 0.003453/0.5725, allocations: 2.015 MB / 353.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.5741, allocations: 0.5093 MB / 354.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.5742, allocations: 4 kB / 354.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008702/0.575, allocations: 285.5 kB / 354.5 MB, free: 12.97 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000766/0.5758, allocations: 57.75 kB / 354.5 MB, free: 12.92 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006444/0.5823, allocations: 1.419 MB / 356 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005267/0.5829, allocations: 0.8402 MB / 356.8 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003665/0.5832, allocations: 131.4 kB / 356.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5833, allocations: 0 / 356.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.08/3.664, allocations: 9.406 MB / 366.3 MB, free: 1.039 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat