Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.855/1.855, allocations: 171.2 MB / 183.8 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.205e-05/4.229e-05, allocations: 7.984 kB / 225.1 MB, free: 2.633 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.272, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.149/0.4211, allocations: 73.66 MB / 337.5 MB, free: 96 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.4215, allocations: 71.97 kB / 337.6 MB, free: 24 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07846/0.4999, allocations: 14.68 MB / 352.3 MB, free: 1.258 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.5, allocations: 0 / 352.3 MB, free: 1.258 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.857e-05/0.5001, allocations: 16 kB / 352.3 MB, free: 1.242 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.004804/0.5049, allocations: 1.073 MB / 353.3 MB, free: 128 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.5049, allocations: 8.031 kB / 353.3 MB, free: 120 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004072/0.5054, allocations: 118.6 kB / 353.5 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004339/0.5058, allocations: 95.25 kB / 353.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.5069, allocations: 415.1 kB / 354 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.981e-05/0.5071, allocations: 50 kB / 354 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002406/0.5073, allocations: 75.89 kB / 354.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002386/0.5097, allocations: 0.7297 MB / 354.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.973e-05/0.5098, allocations: 0 / 354.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/0.51, allocations: 31.98 kB / 354.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.51, allocations: 16 kB / 354.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002601/0.5126, allocations: 0.7497 MB / 355.6 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008732/0.5214, allocations: 2.447 MB / 358.1 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/0.5236, allocations: 0.6437 MB / 358.7 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001283/0.5249, allocations: 411.8 kB / 359.1 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001405/0.5251, allocations: 8.781 kB / 359.1 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001594/0.5267, allocations: 0.4964 MB / 359.6 MB, free: 9.645 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 5.42e-06/0.5268, allocations: 0 / 359.6 MB, free: 9.645 MB / 314.7 MB Notification: Performance of matching and sorting (n=106): time 0.01209/0.5389, allocations: 3.089 MB / 362.7 MB, free: 6.473 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.539, allocations: 64.41 kB / 362.8 MB, free: 6.398 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006635/0.5396, allocations: 331.1 kB / 363.1 MB, free: 6.074 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003011/0.54, allocations: 57.69 kB / 363.1 MB, free: 6.012 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.5402, allocations: 311.5 kB / 363.4 MB, free: 5.703 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005788/0.5408, allocations: 370.8 kB / 363.8 MB, free: 5.336 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.541, allocations: 20 kB / 363.8 MB, free: 5.316 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.5412, allocations: 358.7 kB / 364.2 MB, free: 4.957 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.5424, allocations: 374.6 kB / 364.5 MB, free: 4.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001339/0.5438, allocations: 468.9 kB / 365 MB, free: 4.117 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.5449, allocations: 324.9 kB / 365.3 MB, free: 3.801 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.545, allocations: 0 / 365.3 MB, free: 3.801 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004833/0.5498, allocations: 1.32 MB / 366.6 MB, free: 2.465 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.5499, allocations: 4 kB / 366.6 MB, free: 2.461 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.5499, allocations: 4 kB / 366.6 MB, free: 2.457 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002062/0.552, allocations: 0.6621 MB / 367.3 MB, free: 1.785 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00179/0.5538, allocations: 211.7 kB / 367.5 MB, free: 1.578 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2379/0.7918, allocations: 3.277 MB / 370.8 MB, free: 87.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002653/0.7946, allocations: 242.9 kB / 371 MB, free: 87.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002582/0.7949, allocations: 42.59 kB / 371.1 MB, free: 87.02 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.0003781/0.7953, allocations: 165.7 kB / 371.2 MB, free: 86.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002556/0.7955, allocations: 69.75 kB / 371.3 MB, free: 86.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003242/0.7959, allocations: 103.2 kB / 371.4 MB, free: 86.9 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.7959, allocations: 12.59 kB / 371.4 MB, free: 86.9 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.7959, allocations: 0.5938 kB / 371.4 MB, free: 86.9 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/0.7959, allocations: 9.625 kB / 371.4 MB, free: 86.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0073/0.8033, allocations: 2.502 MB / 373.9 MB, free: 86.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.8033, allocations: 0 / 373.9 MB, free: 86.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001684/0.805, allocations: 189.2 kB / 374.1 MB, free: 86.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001745/0.8068, allocations: 0.629 MB / 374.7 MB, free: 86.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002306/0.8071, allocations: 43.83 kB / 374.8 MB, free: 86.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004673/0.8117, allocations: 3.109 MB / 377.9 MB, free: 84.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/0.8118, allocations: 5.828 kB / 377.9 MB, free: 84.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00505/0.8169, allocations: 1.865 MB / 379.8 MB, free: 83.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000673/0.8176, allocations: 232.6 kB / 380 MB, free: 83.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.8179, allocations: 31.06 kB / 380 MB, free: 83.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002452/0.8203, allocations: 246.5 kB / 380.3 MB, free: 83.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001626/0.822, allocations: 435.2 kB / 380.7 MB, free: 83.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/0.8222, allocations: 48.88 kB / 380.7 MB, free: 83.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004279/0.8227, allocations: 259.3 kB / 381 MB, free: 83.28 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.21e-07/0.8227, allocations: 0 / 381 MB, free: 83.28 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001325/0.824, allocations: 252 kB / 381.2 MB, free: 83.25 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.005542/0.8296, allocations: 2.966 MB / 384.2 MB, free: 81.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002965/0.8327, allocations: 1.04 MB / 385.2 MB, free: 80.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.818e-06/0.8327, allocations: 3.469 kB / 385.2 MB, free: 80.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0019/0.8346, allocations: 0.6473 MB / 385.9 MB, free: 80.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.8359, allocations: 104.2 kB / 386 MB, free: 80.55 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007785/0.8437, allocations: 1.949 MB / 387.9 MB, free: 79.59 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004769/0.8443, allocations: 0.9549 MB / 388.9 MB, free: 78.88 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006806/0.845, allocations: 251.7 kB / 389.1 MB, free: 78.67 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.845, allocations: 0 / 389.1 MB, free: 78.67 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.235/4.08, allocations: 19.15 MB / 408.3 MB, free: 61.73 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat