Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.812/1.812, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.982e-05/3.956e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2656, allocations: 38.77 MB / 263.9 MB, free: 9.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1606/0.4262, allocations: 73.65 MB / 337.5 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004/0.4266, allocations: 79.97 kB / 337.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1001/0.5267, allocations: 14.68 MB / 352.3 MB, free: 1.219 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5268, allocations: 0 / 352.3 MB, free: 1.219 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.785e-05/0.5268, allocations: 12 kB / 352.3 MB, free: 1.207 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.005808/0.5327, allocations: 1.08 MB / 353.4 MB, free: 84 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.5327, allocations: 11.97 kB / 353.4 MB, free: 72 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003417/0.5331, allocations: 110.5 kB / 353.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004591/0.5336, allocations: 91.27 kB / 353.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.5348, allocations: 415.1 kB / 354 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.535, allocations: 54 kB / 354 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003108/0.5353, allocations: 71.91 kB / 354.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003135/0.5385, allocations: 0.7258 MB / 354.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.61e-05/0.5385, allocations: 4 kB / 354.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002084/0.5388, allocations: 28 kB / 354.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.032e-05/0.5388, allocations: 20 kB / 354.9 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003379/0.5422, allocations: 0.7496 MB / 355.6 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/0.5536, allocations: 2.451 MB / 358.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002818/0.5565, allocations: 0.6389 MB / 358.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/0.5583, allocations: 411.8 kB / 359.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001654/0.5585, allocations: 16.77 kB / 359.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002073/0.5606, allocations: 0.4886 MB / 359.6 MB, free: 9.605 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 5.871e-06/0.5607, allocations: 3.938 kB / 359.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of matching and sorting (n=106): time 0.01792/0.5786, allocations: 3.084 MB / 362.7 MB, free: 6.438 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.732e-05/0.5787, allocations: 64.41 kB / 362.8 MB, free: 6.363 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000869/0.5796, allocations: 335.1 kB / 363.1 MB, free: 6.035 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004134/0.5801, allocations: 57.7 kB / 363.2 MB, free: 5.973 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003629/0.5804, allocations: 269 kB / 363.4 MB, free: 5.703 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006541/0.5811, allocations: 366.9 kB / 363.8 MB, free: 5.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.5813, allocations: 20 kB / 363.8 MB, free: 5.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002786/0.5816, allocations: 378.8 kB / 364.2 MB, free: 4.941 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001635/0.5832, allocations: 378.5 kB / 364.5 MB, free: 4.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001812/0.5851, allocations: 464.9 kB / 365 MB, free: 4.102 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.5865, allocations: 328.9 kB / 365.3 MB, free: 3.781 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.5865, allocations: 0 / 365.3 MB, free: 3.781 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.006985/0.5935, allocations: 1.342 MB / 366.7 MB, free: 2.422 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.133e-05/0.5936, allocations: 4 kB / 366.7 MB, free: 2.418 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/0.5937, allocations: 4 kB / 366.7 MB, free: 2.414 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003099/0.5968, allocations: 0.666 MB / 367.3 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00236/0.5992, allocations: 223.6 kB / 367.5 MB, free: 1.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3219/0.9211, allocations: 3.268 MB / 370.8 MB, free: 87.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002722/0.9239, allocations: 243.8 kB / 371.1 MB, free: 87.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002996/0.9243, allocations: 37.25 kB / 371.1 MB, free: 87.08 MB / 314.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): 112 * 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 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000386/0.9247, allocations: 167.9 kB / 371.3 MB, free: 86.97 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002802/0.925, allocations: 69.06 kB / 371.3 MB, free: 86.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003281/0.9253, allocations: 105 kB / 371.4 MB, free: 86.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-05/0.9253, allocations: 10.81 kB / 371.4 MB, free: 86.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.9254, allocations: 0 / 371.4 MB, free: 86.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-05/0.9254, allocations: 9.891 kB / 371.4 MB, free: 86.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007085/0.9325, allocations: 2.501 MB / 373.9 MB, free: 86.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.705e-05/0.9325, allocations: 8.391 kB / 374 MB, free: 86.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/0.9342, allocations: 179.6 kB / 374.1 MB, free: 86.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001752/0.936, allocations: 0.6383 MB / 374.8 MB, free: 86.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002698/0.9363, allocations: 37.7 kB / 374.8 MB, free: 86.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004811/0.9411, allocations: 3.105 MB / 377.9 MB, free: 84.15 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.9412, allocations: 12.58 kB / 377.9 MB, free: 84.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005199/0.9464, allocations: 1.858 MB / 379.8 MB, free: 83.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007401/0.9472, allocations: 227.1 kB / 380 MB, free: 83.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002404/0.9475, allocations: 37.92 kB / 380 MB, free: 83.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002572/0.9501, allocations: 249.6 kB / 380.3 MB, free: 83.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001669/0.9518, allocations: 429.1 kB / 380.7 MB, free: 83.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002303/0.952, allocations: 48.48 kB / 380.7 MB, free: 83.46 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004245/0.9525, allocations: 262.9 kB / 381 MB, free: 83.33 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.9525, allocations: 0 / 381 MB, free: 83.33 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001341/0.9538, allocations: 252.8 kB / 381.3 MB, free: 83.3 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (89): * Single equations (assignments): 86 * 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.005659/0.9595, allocations: 2.981 MB / 384.2 MB, free: 81.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003028/0.9626, allocations: 1.036 MB / 385.3 MB, free: 80.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.9627, allocations: 3.875 kB / 385.3 MB, free: 80.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00219/0.9649, allocations: 0.691 MB / 386 MB, free: 80.61 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.9662, allocations: 96.33 kB / 386.1 MB, free: 80.58 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007683/0.9739, allocations: 1.921 MB / 388 MB, free: 79.64 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/0.9744, allocations: 0.9496 MB / 388.9 MB, free: 78.93 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000674/0.9751, allocations: 78.05 kB / 389 MB, free: 78.88 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005177/0.9757, allocations: 240 kB / 389.2 MB, free: 78.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.352e-06/0.9757, allocations: 4 kB / 389.2 MB, free: 78.66 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06209/1.038, allocations: 20.19 MB / 409.4 MB, free: 60.76 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002663/1.038, allocations: 184 kB / 409.6 MB, free: 60.53 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.408/4.447, allocations: 3.938 kB / 409.6 MB, free: 60.53 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat