Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Translational_Examples_Friction",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.277/2.277, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.063e-05/3.032e-05, allocations: 3.469 kB / 249.8 MB, free: 5.277 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5324/0.6414, allocations: 75.59 MB / 369.9 MB, free: 7.234 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000337/0.6418, allocations: 76.89 kB / 370 MB, free: 7.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0926/0.7344, allocations: 13.48 MB / 383.4 MB, free: 19.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.7345, allocations: 0 / 383.4 MB, free: 19.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.456e-05/0.7346, allocations: 15.59 kB / 383.4 MB, free: 19.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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.007329/0.742, allocations: 1.08 MB / 384.5 MB, free: 19.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.713e-05/0.7421, allocations: 7.688 kB / 384.5 MB, free: 19.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005787/0.7427, allocations: 81.95 kB / 384.6 MB, free: 19.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001841/0.7445, allocations: 498.2 kB / 385.1 MB, free: 18.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.02e-05/0.7446, allocations: 15.56 kB / 385.1 MB, free: 18.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003123/0.745, allocations: 19.38 kB / 385.1 MB, free: 18.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004452/0.7494, allocations: 1.022 MB / 386.2 MB, free: 18.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003371/0.7529, allocations: 0.8197 MB / 387 MB, free: 18.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.956e-05/0.753, allocations: 7.891 kB / 387 MB, free: 18.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002589/0.7532, allocations: 11.11 kB / 387 MB, free: 18.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.171e-05/0.7533, allocations: 7.688 kB / 387 MB, free: 18.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01315/0.7665, allocations: 2.336 MB / 389.3 MB, free: 17.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/0.7689, allocations: 0.6192 MB / 390 MB, free: 17.2 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002012/0.771, allocations: 0.4899 MB / 390.4 MB, free: 17.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001943/0.7712, allocations: 10.09 kB / 390.5 MB, free: 17.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002217/0.7734, allocations: 0.7278 MB / 391.2 MB, free: 16.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.408e-06/0.7735, allocations: 0 / 391.2 MB, free: 16.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.01042/0.7839, allocations: 3.274 MB / 394.5 MB, free: 15.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.784, allocations: 93.8 kB / 394.6 MB, free: 15.67 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009467/0.785, allocations: 0.4979 MB / 395 MB, free: 15.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002956/0.7853, allocations: 33.42 kB / 395.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/0.7856, allocations: 282.5 kB / 395.4 MB, free: 15.31 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003283/0.7859, allocations: 170.8 kB / 395.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.7861, allocations: 0 / 395.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002199/0.7863, allocations: 376.5 kB / 395.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001335/0.7877, allocations: 0.5026 MB / 396.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.7891, allocations: 0.5871 MB / 397 MB, free: 14.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/0.7904, allocations: 441.2 kB / 397.4 MB, free: 14.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.7905, allocations: 0 / 397.4 MB, free: 14.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00542/0.7959, allocations: 1.629 MB / 399 MB, free: 14.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.796, allocations: 3.875 kB / 399 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.32e-05/0.796, allocations: 11.62 kB / 399.1 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009239/0.8053, allocations: 4.129 MB / 403.2 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.8065, allocations: 120.1 kB / 403.3 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01293/0.8194, allocations: 5.473 MB / 408.8 MB, free: 8.047 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003279/0.8227, allocations: 291 kB / 409.1 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/0.8231, allocations: 103.2 kB / 409.2 MB, free: 7.668 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): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005402/0.8236, allocations: 134.6 kB / 409.3 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005829/0.8295, allocations: 1.525 MB / 410.8 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003884/0.8299, allocations: 75.2 kB / 410.9 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005597/0.8355, allocations: 1.462 MB / 412.4 MB, free: 5.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-05/0.8356, allocations: 8 kB / 412.4 MB, free: 5.082 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.8356, allocations: 0 / 412.4 MB, free: 5.082 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.049e-05/0.8357, allocations: 3.984 kB / 412.4 MB, free: 5.078 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008931/0.8446, allocations: 2.441 MB / 414.8 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/0.8447, allocations: 0 / 414.8 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.8458, allocations: 95.95 kB / 414.9 MB, free: 2.996 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01031/0.8562, allocations: 4.151 MB / 419.1 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002602/0.8565, allocations: 35.14 kB / 419.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/0.8686, allocations: 5.143 MB / 424.2 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.185e-05/0.8687, allocations: 8.016 kB / 424.2 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008173/0.8769, allocations: 2.224 MB / 426.5 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001187/0.8781, allocations: 304.2 kB / 426.8 MB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003427/0.8785, allocations: 15.98 kB / 426.8 MB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003442/0.8819, allocations: 295.7 kB / 427.1 MB, free: 7.684 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003441/0.8854, allocations: 0.6665 MB / 427.7 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003475/0.8858, allocations: 87.97 kB / 427.8 MB, free: 6.93 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001071/0.8869, allocations: 487.1 kB / 428.3 MB, free: 6.457 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.8869, allocations: 4 kB / 428.3 MB, free: 6.453 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001692/0.8886, allocations: 223.9 kB / 428.5 MB, free: 6.234 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 32 * 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.008578/0.8972, allocations: 3.1 MB / 431.6 MB, free: 3.082 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004068/0.9013, allocations: 1.309 MB / 432.9 MB, free: 1.746 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/0.9014, allocations: 0 / 432.9 MB, free: 1.746 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00261/0.904, allocations: 0.8232 MB / 433.7 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009609/0.905, allocations: 51.84 kB / 433.8 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.9154, allocations: 1.965 MB / 435.8 MB, free: 14.83 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008237/0.9162, allocations: 0.9381 MB / 436.7 MB, free: 13.87 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005206/0.9168, allocations: 39.28 kB / 436.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005377/0.9173, allocations: 199.3 kB / 436.9 MB, free: 13.63 MB / 346.7 MB Notification: Performance of SimCode: time 1.342e-06/0.9173, allocations: 0 / 436.9 MB, free: 13.63 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1972/1.115, allocations: 23.34 MB / 460.3 MB, free: 6.215 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002606/1.115, allocations: 146.3 kB / 460.4 MB, free: 6.02 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.27/5.385, allocations: 0 / 460.4 MB, free: 6.02 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat