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 2.015/2.015, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.563e-05/3.574e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.282, allocations: 38.76 MB / 263.9 MB, free: 9.82 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.129/0.4111, allocations: 70.95 MB / 334.8 MB, free: 2.766 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.4115, allocations: 79.94 kB / 334.9 MB, free: 2.688 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07319/0.4847, allocations: 13.33 MB / 348.2 MB, free: 5.312 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4847, allocations: 0 / 348.2 MB, free: 5.312 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.917e-05/0.4848, allocations: 8 kB / 348.2 MB, free: 5.305 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.005452/0.4903, allocations: 1.118 MB / 349.4 MB, free: 4.137 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.4903, allocations: 8.031 kB / 349.4 MB, free: 4.129 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004863/0.4908, allocations: 82.53 kB / 349.4 MB, free: 4.039 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003956/0.4913, allocations: 87.25 kB / 349.5 MB, free: 3.953 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001703/0.493, allocations: 0.5885 MB / 350.1 MB, free: 3.324 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.275e-05/0.4931, allocations: 28.78 kB / 350.1 MB, free: 3.297 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002735/0.4934, allocations: 47.94 kB / 350.2 MB, free: 3.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003933/0.4973, allocations: 1.446 MB / 351.6 MB, free: 1.785 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.424e-05/0.4974, allocations: 3.906 kB / 351.6 MB, free: 1.781 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002104/0.4976, allocations: 24 kB / 351.7 MB, free: 1.758 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.4977, allocations: 8 kB / 351.7 MB, free: 1.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005821/0.5035, allocations: 2.16 MB / 353.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01322/0.5168, allocations: 3.14 MB / 357 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003101/0.5199, allocations: 1.036 MB / 358 MB, free: 11.31 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002565/0.5225, allocations: 0.8606 MB / 358.9 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001517/0.5228, allocations: 4.5 kB / 358.9 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00334/0.5261, allocations: 1.118 MB / 360 MB, free: 9.301 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 5.441e-06/0.5262, allocations: 0 / 360 MB, free: 9.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.01659/0.5428, allocations: 5.736 MB / 365.7 MB, free: 3.461 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.461e-05/0.5429, allocations: 89.02 kB / 365.8 MB, free: 3.355 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002021/0.5449, allocations: 0.7924 MB / 366.6 MB, free: 2.559 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004382/0.5454, allocations: 53.7 kB / 366.7 MB, free: 2.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003461/0.5458, allocations: 292.3 kB / 366.9 MB, free: 2.211 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003939/0.5462, allocations: 173.9 kB / 367.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001815/0.5464, allocations: 20 kB / 367.1 MB, free: 2.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002248/0.5466, allocations: 382.7 kB / 367.5 MB, free: 1.637 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002717/0.5494, allocations: 1.044 MB / 368.6 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2346/0.784, allocations: 1.129 MB / 369.7 MB, free: 93.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002926/0.787, allocations: 0.969 MB / 370.7 MB, free: 93.26 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/0.7871, allocations: 0 / 370.7 MB, free: 93.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.008142/0.7952, allocations: 3.308 MB / 374 MB, free: 93.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.7953, allocations: 8.156 kB / 374 MB, free: 93.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.7953, allocations: 0 / 374 MB, free: 93.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01721/0.8126, allocations: 11.43 MB / 385.4 MB, free: 86.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/0.8137, allocations: 134.8 kB / 385.5 MB, free: 86.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0131/0.8269, allocations: 7.092 MB / 392.6 MB, free: 79.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003071/0.83, allocations: 314.3 kB / 392.9 MB, free: 79.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003676/0.8304, allocations: 112 kB / 393 MB, free: 79.01 MB / 314.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): 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.0004011/0.8308, allocations: 150.3 kB / 393.2 MB, free: 78.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000314/0.8311, allocations: 75.69 kB / 393.3 MB, free: 78.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003168/0.8315, allocations: 118.3 kB / 393.4 MB, free: 78.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.617e-06/0.8315, allocations: 4 kB / 393.4 MB, free: 78.69 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.8315, allocations: 0 / 393.4 MB, free: 78.69 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.8315, allocations: 0 / 393.4 MB, free: 78.69 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/0.8428, allocations: 4.51 MB / 397.9 MB, free: 74.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/0.8429, allocations: 1.406 kB / 397.9 MB, free: 74.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009916/0.8439, allocations: 91.94 kB / 398 MB, free: 74.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01728/0.8612, allocations: 11.33 MB / 409.3 MB, free: 62.69 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003162/0.8615, allocations: 40.73 kB / 409.4 MB, free: 62.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01238/0.8739, allocations: 6.821 MB / 416.2 MB, free: 55.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.874, allocations: 0 / 416.2 MB, free: 55.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01029/0.8843, allocations: 4.29 MB / 420.5 MB, free: 51.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001594/0.886, allocations: 408.1 kB / 420.9 MB, free: 50.8 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004633/0.8865, allocations: 28 kB / 420.9 MB, free: 50.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003265/0.8898, allocations: 311.7 kB / 421.2 MB, free: 50.47 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002754/0.8926, allocations: 0.6666 MB / 421.9 MB, free: 49.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004022/0.893, allocations: 99.09 kB / 422 MB, free: 49.71 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001181/0.8942, allocations: 0.628 MB / 422.6 MB, free: 49.08 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.12e-07/0.8942, allocations: 0 / 422.6 MB, free: 49.08 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001916/0.8962, allocations: 217.5 kB / 422.8 MB, free: 48.88 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.007832/0.904, allocations: 6.06 MB / 428.9 MB, free: 42.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002817/0.9069, allocations: 1.643 MB / 430.5 MB, free: 41.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/0.907, allocations: 0 / 430.5 MB, free: 41.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001763/0.9088, allocations: 0.9486 MB / 431.4 MB, free: 40.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008517/0.9097, allocations: 59.42 kB / 431.5 MB, free: 40.1 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008587/0.9183, allocations: 2.148 MB / 433.7 MB, free: 37.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004953/0.9188, allocations: 0.9338 MB / 434.6 MB, free: 36.97 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004981/0.9193, allocations: 71.27 kB / 434.7 MB, free: 36.9 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004506/0.9198, allocations: 203.4 kB / 434.9 MB, free: 36.7 MB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.9198, allocations: 4 kB / 434.9 MB, free: 36.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0796/0.9994, allocations: 20.45 MB / 455.3 MB, free: 16.3 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002396/0.9998, allocations: 181.8 kB / 455.5 MB, free: 16.07 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.431/4.431, allocations: 3.938 kB / 455.5 MB, free: 16.07 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