Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.788/1.788, allocations: 171.3 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.701e-05/3.719e-05, allocations: 8 kB / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3251, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1351/0.4603, allocations: 70.28 MB / 328.6 MB, free: 7.496 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.4606, allocations: 67.97 kB / 328.7 MB, free: 7.43 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07076/0.5314, allocations: 13.25 MB / 341.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5315, allocations: 0 / 341.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.629e-05/0.5315, allocations: 12 kB / 342 MB, free: 10.13 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.005502/0.5371, allocations: 1.122 MB / 343.1 MB, free: 8.961 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.927e-05/0.5371, allocations: 8.031 kB / 343.1 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005753/0.5377, allocations: 87.06 kB / 343.2 MB, free: 8.867 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.5395, allocations: 0.5807 MB / 343.7 MB, free: 8.242 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.338e-05/0.5396, allocations: 15.95 kB / 343.8 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000326/0.5399, allocations: 28 kB / 343.8 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005579/0.5455, allocations: 2.133 MB / 345.9 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004129/0.5497, allocations: 1.391 MB / 347.3 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.547e-05/0.5498, allocations: 8 kB / 347.3 MB, free: 4.645 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000192/0.55, allocations: 8 kB / 347.3 MB, free: 4.637 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.5501, allocations: 8 kB / 347.3 MB, free: 4.629 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01146/0.5615, allocations: 3.069 MB / 350.4 MB, free: 1.488 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002618/0.5642, allocations: 1.008 MB / 351.4 MB, free: 472 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002081/0.5663, allocations: 0.842 MB / 352.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001652/0.5665, allocations: 8.484 kB / 352.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002652/0.5692, allocations: 1.099 MB / 353.4 MB, free: 14.49 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 7.735e-06/0.5693, allocations: 0 / 353.4 MB, free: 14.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.01553/0.5848, allocations: 5.634 MB / 359 MB, free: 8.754 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.5849, allocations: 81.11 kB / 359.1 MB, free: 8.656 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001845/0.5868, allocations: 0.7533 MB / 359.8 MB, free: 7.895 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003965/0.5872, allocations: 45.69 kB / 359.9 MB, free: 7.844 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003326/0.5876, allocations: 288.3 kB / 360.2 MB, free: 7.555 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004274/0.588, allocations: 165.9 kB / 360.3 MB, free: 7.391 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/0.5882, allocations: 12 kB / 360.3 MB, free: 7.379 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002237/0.5884, allocations: 378.8 kB / 360.7 MB, free: 7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002447/0.5909, allocations: 1.028 MB / 361.7 MB, free: 5.973 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002616/0.5935, allocations: 1.115 MB / 362.8 MB, free: 4.824 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002408/0.596, allocations: 0.9447 MB / 363.8 MB, free: 3.879 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.596, allocations: 0 / 363.8 MB, free: 3.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.009072/0.6051, allocations: 3.243 MB / 367 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.366e-05/0.6052, allocations: 8 kB / 367 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.6052, allocations: 0 / 367 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2493/0.8546, allocations: 11.42 MB / 378.5 MB, free: 93.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.8557, allocations: 136.3 kB / 378.6 MB, free: 93.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01329/0.869, allocations: 7.362 MB / 386 MB, free: 88.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002867/0.872, allocations: 296.4 kB / 386.2 MB, free: 87.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003344/0.8723, allocations: 108 kB / 386.3 MB, free: 87.85 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.0006712/0.873, allocations: 151.7 kB / 386.5 MB, free: 87.7 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01239/0.8854, allocations: 2.832 MB / 389.3 MB, free: 84.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000635/0.8861, allocations: 79.45 kB / 389.4 MB, free: 84.85 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004156/0.8866, allocations: 98.61 kB / 389.5 MB, free: 84.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.8866, allocations: 4 kB / 389.5 MB, free: 84.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.8866, allocations: 4 kB / 389.5 MB, free: 84.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.8867, allocations: 4 kB / 389.5 MB, free: 84.74 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01576/0.9025, allocations: 4.42 MB / 393.9 MB, free: 80.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.601e-05/0.9025, allocations: 0 / 393.9 MB, free: 80.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.9039, allocations: 99.28 kB / 394 MB, free: 80.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02464/0.9285, allocations: 11.31 MB / 405.3 MB, free: 68.87 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002283/0.9288, allocations: 35.97 kB / 405.4 MB, free: 68.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01408/0.9429, allocations: 7.04 MB / 412.4 MB, free: 61.56 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/0.943, allocations: 0 / 412.4 MB, free: 61.56 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01295/0.956, allocations: 4.27 MB / 416.7 MB, free: 57.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/0.9573, allocations: 407.9 kB / 417.1 MB, free: 56.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003966/0.9577, allocations: 20 kB / 417.1 MB, free: 56.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002949/0.9607, allocations: 307.7 kB / 417.4 MB, free: 56.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002765/0.9635, allocations: 0.6666 MB / 418.1 MB, free: 55.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003181/0.9639, allocations: 91.97 kB / 418.2 MB, free: 55.76 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009447/0.9648, allocations: 0.5928 MB / 418.8 MB, free: 55.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.9649, allocations: 0 / 418.8 MB, free: 55.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001228/0.9661, allocations: 195 kB / 418.9 MB, free: 54.98 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.007748/0.9739, allocations: 6.037 MB / 425 MB, free: 48.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002514/0.9764, allocations: 1.616 MB / 426.6 MB, free: 47.26 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.9765, allocations: 4 kB / 426.6 MB, free: 47.26 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001651/0.9781, allocations: 0.9316 MB / 427.5 MB, free: 46.31 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008012/0.979, allocations: 60.05 kB / 427.6 MB, free: 46.26 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007756/0.9868, allocations: 2.112 MB / 429.7 MB, free: 44.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004779/0.9873, allocations: 0.9341 MB / 430.6 MB, free: 43.16 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004517/0.9878, allocations: 79.2 kB / 430.7 MB, free: 43.08 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004456/0.9882, allocations: 203.4 kB / 430.9 MB, free: 42.88 MB / 314.7 MB Notification: Performance of SimCode: time 9.02e-07/0.9882, allocations: 0 / 430.9 MB, free: 42.88 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07973/1.068, allocations: 19.25 MB / 450.2 MB, free: 23.64 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/1.068, allocations: 145.3 kB / 450.3 MB, free: 23.44 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.356/4.424, allocations: 0 / 450.3 MB, free: 23.44 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat