Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.961/1.961, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.254e-05/3.271e-05, allocations: 4 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 44.51 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4288/0.5412, allocations: 76.26 MB / 376.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.5415, allocations: 70.14 kB / 376.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06878/0.6103, allocations: 13.57 MB / 389.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6104, allocations: 0 / 389.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.263e-05/0.6104, allocations: 11.66 kB / 389.9 MB, free: 11.2 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.004436/0.6149, allocations: 1.089 MB / 391 MB, free: 10.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.6149, allocations: 11.88 kB / 391 MB, free: 10.63 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002324/0.6152, allocations: 74.39 kB / 391.1 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002858/0.6155, allocations: 81.89 kB / 391.1 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.6166, allocations: 483.8 kB / 391.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.879e-05/0.6167, allocations: 27.53 kB / 391.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002065/0.6169, allocations: 40.94 kB / 391.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00229/0.6192, allocations: 0.866 MB / 392.5 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.536e-05/0.6193, allocations: 11.44 kB / 392.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001681/0.6195, allocations: 15.62 kB / 392.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.6195, allocations: 11.75 kB / 392.6 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002638/0.6222, allocations: 1.042 MB / 393.6 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008503/0.6307, allocations: 2.402 MB / 396 MB, free: 9.641 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.6324, allocations: 0.6406 MB / 396.7 MB, free: 9.582 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.6337, allocations: 0.5006 MB / 397.2 MB, free: 9.562 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/0.6339, allocations: 11.64 kB / 397.2 MB, free: 9.562 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001697/0.6356, allocations: 0.7369 MB / 397.9 MB, free: 9.488 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.757e-06/0.6356, allocations: 0 / 397.9 MB, free: 9.488 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.009473/0.6451, allocations: 3.344 MB / 401.3 MB, free: 8.695 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/0.6452, allocations: 81.02 kB / 401.3 MB, free: 8.602 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009034/0.6461, allocations: 0.5275 MB / 401.9 MB, free: 8.426 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003424/0.6465, allocations: 47.41 kB / 401.9 MB, free: 8.391 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/0.6467, allocations: 291.1 kB / 402.2 MB, free: 8.246 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002652/0.647, allocations: 177.5 kB / 402.4 MB, free: 8.129 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.6472, allocations: 13.81 kB / 402.4 MB, free: 8.129 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.6473, allocations: 382.1 kB / 402.8 MB, free: 7.793 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.6486, allocations: 0.5131 MB / 403.3 MB, free: 7.738 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/0.65, allocations: 0.5947 MB / 403.9 MB, free: 7.594 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.6511, allocations: 442 kB / 404.3 MB, free: 7.523 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.6512, allocations: 0 / 404.3 MB, free: 7.523 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004971/0.6562, allocations: 1.684 MB / 406 MB, free: 7.199 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.6562, allocations: 3.875 kB / 406 MB, free: 7.199 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.749e-05/0.6563, allocations: 7.75 kB / 406 MB, free: 7.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007423/0.6637, allocations: 4.135 MB / 410.1 MB, free: 5.473 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009943/0.6648, allocations: 120.8 kB / 410.2 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.6753, allocations: 5.393 MB / 415.6 MB, free: 17.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002832/0.6782, allocations: 304 kB / 415.9 MB, free: 17.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002393/0.6785, allocations: 107.2 kB / 416 MB, free: 17.69 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.0004806/0.679, allocations: 143.8 kB / 416.2 MB, free: 17.58 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.6792, allocations: 70.03 kB / 416.3 MB, free: 17.54 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004603/0.6838, allocations: 1.487 MB / 417.7 MB, free: 17.16 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.6839, allocations: 7.812 kB / 417.7 MB, free: 17.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.6839, allocations: 0 / 417.7 MB, free: 17.16 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.6839, allocations: 3.984 kB / 417.8 MB, free: 17.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007204/0.6911, allocations: 2.53 MB / 420.3 MB, free: 16.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.6912, allocations: 0 / 420.3 MB, free: 16.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000956/0.6922, allocations: 100.9 kB / 420.4 MB, free: 16.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007724/0.6999, allocations: 4.151 MB / 424.5 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002391/0.7002, allocations: 38.8 kB / 424.6 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/0.7103, allocations: 5.108 MB / 429.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.7104, allocations: 3.812 kB / 429.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006929/0.7173, allocations: 2.247 MB / 431.9 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.7184, allocations: 319.9 kB / 432.2 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.7187, allocations: 17.53 kB / 432.3 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00304/0.7217, allocations: 310.3 kB / 432.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002864/0.7246, allocations: 0.6531 MB / 433.2 MB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000412/0.7251, allocations: 103.8 kB / 433.3 MB, free: 9.816 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001084/0.7262, allocations: 0.5121 MB / 433.8 MB, free: 9.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7262, allocations: 0 / 433.8 MB, free: 9.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001643/0.7279, allocations: 243.2 kB / 434.1 MB, free: 9.285 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.007977/0.7359, allocations: 3.135 MB / 437.2 MB, free: 6.664 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003998/0.7399, allocations: 1.328 MB / 438.5 MB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.437e-05/0.74, allocations: 4 kB / 438.5 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002604/0.7426, allocations: 0.8311 MB / 439.4 MB, free: 4.566 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009234/0.7436, allocations: 64.8 kB / 439.4 MB, free: 4.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009681/0.7533, allocations: 1.999 MB / 441.4 MB, free: 2.457 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007345/0.7541, allocations: 0.934 MB / 442.4 MB, free: 1.496 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004105/0.7545, allocations: 39.28 kB / 442.4 MB, free: 1.457 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004572/0.755, allocations: 199.3 kB / 442.6 MB, free: 1.262 MB / 330.7 MB Notification: Performance of SimCode: time 1.403e-06/0.755, allocations: 0 / 442.6 MB, free: 1.262 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07973/0.8347, allocations: 26.21 MB / 468.8 MB, free: 7 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000261/0.8351, allocations: 186 kB / 469 MB, free: 6.77 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.591/4.426, allocations: 0 / 469 MB, free: 6.77 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat