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 2.086/2.086, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.373e-05/4.398e-05, allocations: 1.406 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1136, allocations: 44.51 MB / 300 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4398/0.5534, allocations: 76.25 MB / 376.2 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.5538, allocations: 69.67 kB / 376.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06858/0.6224, allocations: 13.57 MB / 389.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.6225, allocations: 0 / 389.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.828e-05/0.6226, allocations: 15.22 kB / 389.9 MB, free: 11.16 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.004814/0.6274, allocations: 1.088 MB / 391 MB, free: 10.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.6275, allocations: 7.875 kB / 391 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004282/0.6279, allocations: 71.67 kB / 391 MB, free: 10.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003468/0.6283, allocations: 81.92 kB / 391.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001273/0.6295, allocations: 494 kB / 391.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.625e-05/0.6296, allocations: 27.78 kB / 391.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.6298, allocations: 37.62 kB / 391.7 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00224/0.6321, allocations: 0.8738 MB / 392.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/0.6322, allocations: 0 / 392.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/0.6323, allocations: 25.69 kB / 392.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.6324, allocations: 7.75 kB / 392.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002746/0.6351, allocations: 1.044 MB / 393.6 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008578/0.6437, allocations: 2.399 MB / 396 MB, free: 9.602 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.6454, allocations: 0.6507 MB / 396.7 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.6467, allocations: 0.5026 MB / 397.2 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001336/0.6468, allocations: 7.75 kB / 397.2 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001727/0.6486, allocations: 0.7485 MB / 397.9 MB, free: 9.441 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.667e-06/0.6486, allocations: 4 kB / 397.9 MB, free: 9.438 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.009997/0.6586, allocations: 3.33 MB / 401.3 MB, free: 8.645 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.6587, allocations: 88.77 kB / 401.3 MB, free: 8.547 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000923/0.6597, allocations: 0.5309 MB / 401.9 MB, free: 8.367 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000428/0.6601, allocations: 45.83 kB / 401.9 MB, free: 8.336 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002511/0.6604, allocations: 288.7 kB / 402.2 MB, free: 8.188 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002668/0.6607, allocations: 176 kB / 402.4 MB, free: 8.074 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.6608, allocations: 14.44 kB / 402.4 MB, free: 8.074 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.6609, allocations: 386.1 kB / 402.8 MB, free: 7.734 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/0.6623, allocations: 0.5094 MB / 403.3 MB, free: 7.684 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001378/0.6637, allocations: 0.5972 MB / 403.9 MB, free: 7.543 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.6648, allocations: 446.1 kB / 404.3 MB, free: 7.465 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.6649, allocations: 0 / 404.3 MB, free: 7.465 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005134/0.67, allocations: 1.688 MB / 406 MB, free: 7.141 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.308e-05/0.6701, allocations: 5.625 kB / 406 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.527e-05/0.6702, allocations: 11.78 kB / 406 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008548/0.6787, allocations: 4.131 MB / 410.1 MB, free: 5.414 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.6798, allocations: 112.3 kB / 410.3 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01086/0.6907, allocations: 5.399 MB / 415.6 MB, free: 17.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002976/0.6937, allocations: 300.7 kB / 415.9 MB, free: 17.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003017/0.6941, allocations: 105 kB / 416 MB, free: 17.64 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.0004601/0.6946, allocations: 150.5 kB / 416.2 MB, free: 17.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002553/0.6948, allocations: 73.48 kB / 416.3 MB, free: 17.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004672/0.6995, allocations: 1.48 MB / 417.7 MB, free: 17.11 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/0.6996, allocations: 7.656 kB / 417.8 MB, free: 17.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.6996, allocations: 3.938 kB / 417.8 MB, free: 17.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/0.6996, allocations: 3.984 kB / 417.8 MB, free: 17.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007431/0.7071, allocations: 2.523 MB / 420.3 MB, free: 16.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/0.7072, allocations: 3.875 kB / 420.3 MB, free: 16.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009809/0.7081, allocations: 97.41 kB / 420.4 MB, free: 16.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008712/0.7169, allocations: 4.149 MB / 424.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002212/0.7171, allocations: 42.14 kB / 424.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01026/0.7274, allocations: 5.117 MB / 429.7 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.7275, allocations: 0 / 429.7 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00675/0.7343, allocations: 2.247 MB / 431.9 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/0.7353, allocations: 313.9 kB / 432.2 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002569/0.7356, allocations: 24.09 kB / 432.3 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002833/0.7384, allocations: 312.4 kB / 432.6 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002754/0.7412, allocations: 0.6578 MB / 433.2 MB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002276/0.7415, allocations: 91.81 kB / 433.3 MB, free: 9.762 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001076/0.7426, allocations: 0.5071 MB / 433.8 MB, free: 9.434 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7426, allocations: 0 / 433.8 MB, free: 9.434 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001431/0.744, allocations: 243.5 kB / 434.1 MB, free: 9.215 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.008402/0.7524, allocations: 3.136 MB / 437.2 MB, free: 6.602 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003947/0.7565, allocations: 1.357 MB / 438.6 MB, free: 5.332 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/0.7565, allocations: 4 kB / 438.6 MB, free: 5.328 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002392/0.7589, allocations: 0.8457 MB / 439.4 MB, free: 4.457 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008549/0.7598, allocations: 62.92 kB / 439.5 MB, free: 4.395 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00892/0.7687, allocations: 2.006 MB / 441.5 MB, free: 2.336 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007666/0.7695, allocations: 0.934 MB / 442.4 MB, free: 1.375 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003715/0.7699, allocations: 43.2 kB / 442.4 MB, free: 1.332 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004465/0.7704, allocations: 195.4 kB / 442.6 MB, free: 1.141 MB / 330.7 MB Notification: Performance of SimCode: time 1.232e-06/0.7704, allocations: 0 / 442.6 MB, free: 1.141 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07949/0.8499, allocations: 26.26 MB / 468.9 MB, free: 6.824 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003961/0.8504, allocations: 179.6 kB / 469.1 MB, free: 6.602 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.432/4.282, allocations: 4 kB / 469.1 MB, free: 6.598 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