Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.813/1.813, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.781e-05/2.804e-05, allocations: 8 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3272, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1479/0.4751, allocations: 70.28 MB / 328.6 MB, free: 7.633 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/0.4755, allocations: 67.97 kB / 328.7 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08396/0.5595, allocations: 13.25 MB / 341.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5595, allocations: 0 / 341.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.945e-05/0.5596, allocations: 15.94 kB / 341.9 MB, free: 10.26 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.005275/0.5649, allocations: 1.118 MB / 343.1 MB, free: 9.094 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.343e-05/0.565, allocations: 12.03 kB / 343.1 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005263/0.5655, allocations: 83.06 kB / 343.1 MB, free: 9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/0.5673, allocations: 0.5809 MB / 343.7 MB, free: 8.375 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.462e-05/0.5674, allocations: 15.95 kB / 343.7 MB, free: 8.359 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002903/0.5677, allocations: 32 kB / 343.8 MB, free: 8.328 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00549/0.5732, allocations: 2.129 MB / 345.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004003/0.5773, allocations: 1.399 MB / 347.3 MB, free: 4.777 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.923e-05/0.5774, allocations: 4 kB / 347.3 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002064/0.5776, allocations: 11.98 kB / 347.3 MB, free: 4.762 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.5776, allocations: 8 kB / 347.3 MB, free: 4.754 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01192/0.5895, allocations: 3.057 MB / 350.4 MB, free: 1.625 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002659/0.5923, allocations: 1.009 MB / 351.4 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002093/0.5944, allocations: 0.8489 MB / 352.2 MB, free: 15.74 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001594/0.5946, allocations: 8.484 kB / 352.2 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00282/0.5975, allocations: 1.102 MB / 353.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 4.729e-06/0.5975, allocations: 0 / 353.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0161/0.6136, allocations: 5.626 MB / 359 MB, free: 8.883 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.257e-05/0.6138, allocations: 85.11 kB / 359.1 MB, free: 8.781 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/0.6156, allocations: 0.7533 MB / 359.8 MB, free: 8.02 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003883/0.616, allocations: 49.69 kB / 359.9 MB, free: 7.965 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003295/0.6164, allocations: 306.8 kB / 360.2 MB, free: 7.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004027/0.6168, allocations: 165.9 kB / 360.3 MB, free: 7.496 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.617, allocations: 11.94 kB / 360.3 MB, free: 7.484 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.6172, allocations: 338.8 kB / 360.7 MB, free: 7.145 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002461/0.6196, allocations: 1.021 MB / 361.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002688/0.6224, allocations: 1.119 MB / 362.8 MB, free: 4.973 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002462/0.6249, allocations: 0.933 MB / 363.7 MB, free: 4.039 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.625, allocations: 3.938 kB / 363.7 MB, free: 4.035 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.009104/0.6341, allocations: 3.209 MB / 367 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.6342, allocations: 8 kB / 367 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.6342, allocations: 0 / 367 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2817/0.916, allocations: 11.42 MB / 378.4 MB, free: 93.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.9171, allocations: 129.4 kB / 378.5 MB, free: 93.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01268/0.9298, allocations: 7.365 MB / 385.9 MB, free: 88.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002795/0.9326, allocations: 289.9 kB / 386.2 MB, free: 88.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003084/0.933, allocations: 108 kB / 386.3 MB, free: 88.28 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004344/0.9334, allocations: 150.6 kB / 386.4 MB, free: 88.13 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006733/0.9402, allocations: 2.847 MB / 389.3 MB, free: 85.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004018/0.9406, allocations: 75.31 kB / 389.3 MB, free: 85.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003006/0.941, allocations: 98.61 kB / 389.4 MB, free: 85.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.941, allocations: 8 kB / 389.4 MB, free: 85.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.941, allocations: 0 / 389.4 MB, free: 85.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.941, allocations: 3.984 kB / 389.4 MB, free: 85.17 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.9512, allocations: 4.418 MB / 393.9 MB, free: 80.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.9513, allocations: 0 / 393.9 MB, free: 80.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000925/0.9522, allocations: 91.28 kB / 393.9 MB, free: 80.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01595/0.9682, allocations: 11.32 MB / 405.3 MB, free: 69.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002493/0.9685, allocations: 39.95 kB / 405.3 MB, free: 69.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01155/0.98, allocations: 7.026 MB / 412.3 MB, free: 61.99 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.9801, allocations: 4.031 kB / 412.3 MB, free: 61.99 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009236/0.9893, allocations: 4.266 MB / 416.6 MB, free: 57.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001234/0.9906, allocations: 411.9 kB / 417 MB, free: 57.26 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003628/0.991, allocations: 24 kB / 417 MB, free: 57.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002793/0.9938, allocations: 307.2 kB / 417.3 MB, free: 56.94 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002681/0.9965, allocations: 0.6627 MB / 418 MB, free: 56.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002476/0.9968, allocations: 91.97 kB / 418.1 MB, free: 56.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009253/0.9977, allocations: 0.5967 MB / 418.7 MB, free: 55.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.9978, allocations: 0 / 418.7 MB, free: 55.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001179/0.9989, allocations: 191 kB / 418.9 MB, free: 55.4 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.007511/1.006, allocations: 6.044 MB / 424.9 MB, free: 49.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002421/1.009, allocations: 1.613 MB / 426.5 MB, free: 47.69 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/1.009, allocations: 0 / 426.5 MB, free: 47.69 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/1.01, allocations: 0.8993 MB / 427.4 MB, free: 46.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007407/1.011, allocations: 59.25 kB / 427.5 MB, free: 46.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007734/1.019, allocations: 2.147 MB / 429.6 MB, free: 44.54 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004629/1.019, allocations: 0.9412 MB / 430.6 MB, free: 43.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005006/1.02, allocations: 207.4 kB / 430.8 MB, free: 43.37 MB / 314.7 MB Notification: Performance of SimCode: time 1.473e-06/1.02, allocations: 4 kB / 430.8 MB, free: 43.37 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.147/4.167, allocations: 16.85 MB / 447.6 MB, free: 26.5 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat