Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.393/2.393, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.43e-05/4.428e-05, allocations: 4 kB / 292.2 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.118, allocations: 50.41 MB / 342.6 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5887/0.7068, allocations: 85.8 MB / 428.4 MB, free: 8.141 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/0.7071, allocations: 70.28 kB / 428.5 MB, free: 8.105 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08058/0.7877, allocations: 15.13 MB / 443.6 MB, free: 10.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.7878, allocations: 0 / 443.6 MB, free: 10.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.838e-05/0.7879, allocations: 12 kB / 443.7 MB, free: 10.98 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.004752/0.7926, allocations: 1.079 MB / 444.7 MB, free: 9.902 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.7927, allocations: 8.031 kB / 444.7 MB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003663/0.7931, allocations: 109.9 kB / 444.8 MB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004134/0.7935, allocations: 87.06 kB / 444.9 MB, free: 9.734 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001123/0.7947, allocations: 412.9 kB / 445.3 MB, free: 9.344 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.635e-05/0.7948, allocations: 55.44 kB / 445.4 MB, free: 9.309 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002587/0.7951, allocations: 73.16 kB / 445.5 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00247/0.7976, allocations: 0.7067 MB / 446.2 MB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.038e-05/0.7977, allocations: 11.91 kB / 446.2 MB, free: 8.773 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/0.7979, allocations: 25 kB / 446.2 MB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/0.7979, allocations: 16 kB / 446.2 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002621/0.8005, allocations: 0.7084 MB / 446.9 MB, free: 8.277 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009206/0.8098, allocations: 2.439 MB / 449.4 MB, free: 6.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001986/0.8118, allocations: 0.6148 MB / 450 MB, free: 5.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001308/0.8132, allocations: 412.6 kB / 450.4 MB, free: 5.602 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001572/0.8134, allocations: 16.33 kB / 450.4 MB, free: 5.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001546/0.815, allocations: 0.4888 MB / 450.9 MB, free: 5.238 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 5.992e-06/0.815, allocations: 0 / 450.9 MB, free: 5.238 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.01172/0.8268, allocations: 2.941 MB / 453.8 MB, free: 2.875 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/0.8269, allocations: 64.34 kB / 453.9 MB, free: 2.801 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006055/0.8275, allocations: 313.7 kB / 454.2 MB, free: 2.547 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003294/0.8279, allocations: 50.7 kB / 454.3 MB, free: 2.508 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/0.8281, allocations: 269.1 kB / 454.5 MB, free: 2.297 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006135/0.8288, allocations: 369.4 kB / 454.9 MB, free: 1.984 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.8289, allocations: 30.11 kB / 454.9 MB, free: 1.973 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.8291, allocations: 368.3 kB / 455.3 MB, free: 1.629 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.8303, allocations: 358.6 kB / 455.6 MB, free: 1.281 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/0.8317, allocations: 444.9 kB / 456 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.8329, allocations: 304.9 kB / 456.3 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.8329, allocations: 0 / 456.3 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004641/0.8376, allocations: 1.17 MB / 457.5 MB, free: 15.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/0.8377, allocations: 12 kB / 457.5 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.734e-05/0.8377, allocations: 3.984 kB / 457.5 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001858/0.8396, allocations: 0.5411 MB / 458.1 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/0.8414, allocations: 199.8 kB / 458.3 MB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006656/0.8481, allocations: 3.228 MB / 461.5 MB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002617/0.8508, allocations: 235.8 kB / 461.7 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002757/0.8511, allocations: 43.97 kB / 461.8 MB, free: 10.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000441/0.8516, allocations: 168 kB / 461.9 MB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002612/0.8518, allocations: 71.25 kB / 462 MB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004333/0.8562, allocations: 1.193 MB / 463.2 MB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.723e-05/0.8563, allocations: 15.95 kB / 463.2 MB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.8563, allocations: 0 / 463.2 MB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.782e-05/0.8563, allocations: 3.984 kB / 463.2 MB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008022/0.8644, allocations: 2.349 MB / 465.6 MB, free: 6.953 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.72e-05/0.8645, allocations: 7.953 kB / 465.6 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/0.8663, allocations: 195.9 kB / 465.8 MB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00177/0.8681, allocations: 0.5099 MB / 466.3 MB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003104/0.8685, allocations: 35.95 kB / 466.3 MB, free: 6.199 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005823/0.8743, allocations: 3.046 MB / 469.4 MB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/0.8744, allocations: 3.938 kB / 469.4 MB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005684/0.8801, allocations: 1.708 MB / 471.1 MB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000854/0.881, allocations: 228.2 kB / 471.3 MB, free: 0.9141 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002958/0.8813, allocations: 32 kB / 471.3 MB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002734/0.8841, allocations: 259.7 kB / 471.6 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001848/0.886, allocations: 432.1 kB / 472 MB, free: 212 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003642/0.8864, allocations: 43.97 kB / 472 MB, free: 168 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005054/0.8869, allocations: 249.2 kB / 472.3 MB, free: 15.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.8869, allocations: 3.938 kB / 472.3 MB, free: 15.91 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001648/0.8886, allocations: 252 kB / 472.5 MB, free: 15.67 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * 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 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.006651/0.8953, allocations: 2.879 MB / 475.4 MB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003736/0.8991, allocations: 1.065 MB / 476.5 MB, free: 11.61 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/0.8992, allocations: 4 kB / 476.5 MB, free: 11.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00265/0.9018, allocations: 0.7005 MB / 477.2 MB, free: 10.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001477/0.9034, allocations: 106.9 kB / 477.3 MB, free: 10.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008974/0.9124, allocations: 1.922 MB / 479.2 MB, free: 8.812 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000707/0.9132, allocations: 0.9515 MB / 480.2 MB, free: 7.836 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007075/0.9139, allocations: 69.38 kB / 480.2 MB, free: 7.766 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006821/0.9146, allocations: 243.3 kB / 480.5 MB, free: 7.527 MB / 394.7 MB Notification: Performance of SimCode: time 1.243e-06/0.9146, allocations: 0 / 480.5 MB, free: 7.527 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07236/0.987, allocations: 20.5 MB / 0.4892 GB, free: 3.184 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003023/0.9874, allocations: 185 kB / 0.4894 GB, free: 2.957 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.536/4.524, allocations: 0 / 0.4894 GB, free: 2.957 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat