Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.855/1.855, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.275e-05, allocations: 0 / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09163/0.0917, allocations: 44.5 MB / 299.9 MB, free: 6.559 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4728/0.5645, allocations: 76.25 MB / 376.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.5648, allocations: 69.38 kB / 376.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07264/0.6375, allocations: 13.57 MB / 389.8 MB, free: 11.15 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6376, allocations: 0 / 389.8 MB, free: 11.15 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.754e-05/0.6376, allocations: 11.62 kB / 389.8 MB, free: 11.15 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.004781/0.6424, allocations: 1.093 MB / 390.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.6425, allocations: 7.75 kB / 390.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00032/0.6428, allocations: 71.34 kB / 391 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002983/0.6431, allocations: 89.56 kB / 391.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.6443, allocations: 487.4 kB / 391.6 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.743e-05/0.6443, allocations: 31.16 kB / 391.6 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/0.6445, allocations: 49.25 kB / 391.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002195/0.6468, allocations: 0.8687 MB / 392.5 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.83e-05/0.6468, allocations: 7.891 kB / 392.5 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001526/0.647, allocations: 17.91 kB / 392.5 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.647, allocations: 7.844 kB / 392.5 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002776/0.6498, allocations: 1.043 MB / 393.6 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008601/0.6585, allocations: 2.405 MB / 396 MB, free: 9.578 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001692/0.6602, allocations: 0.639 MB / 396.6 MB, free: 9.523 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001352/0.6616, allocations: 0.5065 MB / 397.1 MB, free: 9.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001559/0.6618, allocations: 7.047 kB / 397.1 MB, free: 9.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001768/0.6636, allocations: 0.749 MB / 397.9 MB, free: 9.422 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.837e-06/0.6636, allocations: 0 / 397.9 MB, free: 9.422 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.009336/0.673, allocations: 3.33 MB / 401.2 MB, free: 8.734 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.6731, allocations: 88.64 kB / 401.3 MB, free: 8.637 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008542/0.6739, allocations: 0.5341 MB / 401.8 MB, free: 8.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003103/0.6743, allocations: 47.23 kB / 401.9 MB, free: 8.449 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.6745, allocations: 313 kB / 402.2 MB, free: 8.246 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/0.6747, allocations: 170.1 kB / 402.4 MB, free: 8.133 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.6748, allocations: 13.09 kB / 402.4 MB, free: 8.133 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.338e-05/0.6749, allocations: 336.5 kB / 402.7 MB, free: 7.809 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.6762, allocations: 0.5088 MB / 403.2 MB, free: 7.762 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.6776, allocations: 0.6059 MB / 403.8 MB, free: 7.613 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.6787, allocations: 444.7 kB / 404.2 MB, free: 7.539 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.6787, allocations: 0 / 404.2 MB, free: 7.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00478/0.6835, allocations: 1.643 MB / 405.9 MB, free: 7.238 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.6836, allocations: 3.875 kB / 405.9 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.977e-05/0.6836, allocations: 11.5 kB / 405.9 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007359/0.691, allocations: 4.124 MB / 410 MB, free: 5.516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009934/0.6921, allocations: 126.6 kB / 410.2 MB, free: 5.484 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.7025, allocations: 5.399 MB / 415.6 MB, free: 17.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002791/0.7054, allocations: 302.3 kB / 415.8 MB, free: 17.74 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002753/0.7057, allocations: 100.5 kB / 415.9 MB, free: 17.73 MB / 330.7 MB 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.0004324/0.7061, allocations: 142.9 kB / 416.1 MB, free: 17.62 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002361/0.7064, allocations: 74.12 kB / 416.2 MB, free: 17.58 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004574/0.711, allocations: 1.493 MB / 417.7 MB, free: 17.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.711, allocations: 3.875 kB / 417.7 MB, free: 17.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.7111, allocations: 0 / 417.7 MB, free: 17.2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-05/0.7111, allocations: 3.984 kB / 417.7 MB, free: 17.2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007335/0.7184, allocations: 2.527 MB / 420.2 MB, free: 16.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.7185, allocations: 7.812 kB / 420.2 MB, free: 16.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009791/0.7195, allocations: 101.3 kB / 420.3 MB, free: 16.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0077/0.7272, allocations: 4.148 MB / 424.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002314/0.7275, allocations: 42.05 kB / 424.5 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01014/0.7376, allocations: 5.109 MB / 429.6 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.7377, allocations: 3.938 kB / 429.6 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006691/0.7444, allocations: 2.255 MB / 431.8 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.7455, allocations: 315.8 kB / 432.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002654/0.7458, allocations: 22.25 kB / 432.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002984/0.7488, allocations: 305.7 kB / 432.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002838/0.7517, allocations: 0.661 MB / 433.1 MB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003492/0.7521, allocations: 92.86 kB / 433.2 MB, free: 9.848 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009932/0.7531, allocations: 0.5099 MB / 433.7 MB, free: 9.707 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7531, allocations: 7.812 kB / 433.7 MB, free: 9.703 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001463/0.7546, allocations: 233.6 kB / 434 MB, free: 9.672 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.008051/0.7627, allocations: 3.132 MB / 437.1 MB, free: 7.062 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003979/0.7667, allocations: 1.358 MB / 438.5 MB, free: 5.801 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/0.7668, allocations: 0 / 438.5 MB, free: 5.801 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002272/0.7691, allocations: 0.7975 MB / 439.3 MB, free: 4.977 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009125/0.77, allocations: 67.48 kB / 439.3 MB, free: 4.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009575/0.7796, allocations: 2.044 MB / 441.4 MB, free: 2.805 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007357/0.7804, allocations: 0.934 MB / 442.3 MB, free: 1.844 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005797/0.781, allocations: 199.4 kB / 442.5 MB, free: 1.648 MB / 330.7 MB Notification: Performance of SimCode: time 1.332e-06/0.781, allocations: 0 / 442.5 MB, free: 1.648 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.992/3.773, allocations: 18.45 MB / 461 MB, free: 15.15 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat