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.85/1.85, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.73e-05/2.729e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2622, allocations: 38.77 MB / 258.3 MB, free: 12.03 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.396, allocations: 72.98 MB / 331.3 MB, free: 4.82 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.3963, allocations: 71.97 kB / 331.4 MB, free: 4.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07294/0.4693, allocations: 14.56 MB / 345.9 MB, free: 6.105 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4693, allocations: 0 / 345.9 MB, free: 6.105 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.047e-05/0.4694, allocations: 20 kB / 345.9 MB, free: 6.086 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.004302/0.4737, allocations: 1.076 MB / 347 MB, free: 4.961 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.4738, allocations: 8.031 kB / 347 MB, free: 4.953 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000371/0.4742, allocations: 91.27 kB / 347.1 MB, free: 4.863 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009057/0.4751, allocations: 419.1 kB / 347.5 MB, free: 4.414 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.163e-05/0.4752, allocations: 24 kB / 347.6 MB, free: 4.391 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001773/0.4753, allocations: 40 kB / 347.6 MB, free: 4.352 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002241/0.4776, allocations: 0.7263 MB / 348.3 MB, free: 3.625 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001862/0.4795, allocations: 0.636 MB / 349 MB, free: 2.984 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.765e-05/0.4796, allocations: 15.83 kB / 349 MB, free: 2.969 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000143/0.4797, allocations: 4 kB / 349 MB, free: 2.965 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.4798, allocations: 16 kB / 349 MB, free: 2.949 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007397/0.4872, allocations: 2.319 MB / 351.3 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001693/0.4889, allocations: 0.6142 MB / 351.9 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009676/0.4899, allocations: 391.1 kB / 352.3 MB, free: 15.51 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001393/0.4901, allocations: 20.77 kB / 352.3 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001233/0.4913, allocations: 480.4 kB / 352.8 MB, free: 15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 4.368e-06/0.4913, allocations: 0 / 352.8 MB, free: 15 MB / 314.7 MB Notification: Performance of matching and sorting (n=106): time 0.009022/0.5004, allocations: 2.725 MB / 355.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.5005, allocations: 64.72 kB / 355.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005501/0.501, allocations: 309.1 kB / 355.9 MB, free: 11.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001902/0.5012, allocations: 37.69 kB / 355.9 MB, free: 11.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002782/0.5015, allocations: 319.4 kB / 356.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000449/0.502, allocations: 350.9 kB / 356.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.818e-05/0.5021, allocations: 7.984 kB / 356.6 MB, free: 11.1 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.5023, allocations: 346.8 kB / 356.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.5033, allocations: 354.6 kB / 357.3 MB, free: 10.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001158/0.5045, allocations: 452.9 kB / 357.7 MB, free: 9.949 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.5055, allocations: 302.3 kB / 358 MB, free: 9.656 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.5055, allocations: 4 kB / 358 MB, free: 9.652 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004344/0.5099, allocations: 1.249 MB / 359.3 MB, free: 8.387 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.5099, allocations: 7.984 kB / 359.3 MB, free: 8.379 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.5099, allocations: 4 kB / 359.3 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001902/0.5119, allocations: 0.6465 MB / 359.9 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/0.5135, allocations: 207.7 kB / 360.1 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006327/0.5198, allocations: 3.306 MB / 363.4 MB, free: 4.043 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002309/0.5222, allocations: 219.9 kB / 363.6 MB, free: 3.828 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.5224, allocations: 47.94 kB / 363.7 MB, free: 3.781 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: massWithStopAndFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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.0004281/0.5228, allocations: 131.5 kB / 363.8 MB, free: 3.648 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003339/0.5261, allocations: 1.014 MB / 364.8 MB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/0.5264, allocations: 75.11 kB / 364.9 MB, free: 2.539 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003076/0.5267, allocations: 82.95 kB / 365 MB, free: 2.453 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/0.5267, allocations: 15.98 kB / 365 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.5267, allocations: 4 kB / 365 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.5268, allocations: 3.984 kB / 365 MB, free: 2.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006387/0.5332, allocations: 2.282 MB / 367.3 MB, free: 60 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.5332, allocations: 4 kB / 367.3 MB, free: 56 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2233/0.7566, allocations: 178.9 kB / 367.5 MB, free: 90.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/0.7588, allocations: 0.6299 MB / 368.1 MB, free: 90.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002356/0.7591, allocations: 22.7 kB / 368.1 MB, free: 90.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005033/0.7642, allocations: 3.102 MB / 371.2 MB, free: 88.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.7642, allocations: 2.781 kB / 371.2 MB, free: 88.11 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004668/0.7689, allocations: 1.734 MB / 373 MB, free: 87.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005937/0.7695, allocations: 228.9 kB / 373.2 MB, free: 87.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.7698, allocations: 15.81 kB / 373.2 MB, free: 87.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002244/0.772, allocations: 236.1 kB / 373.4 MB, free: 87.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001648/0.7737, allocations: 434.7 kB / 373.9 MB, free: 87.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/0.7739, allocations: 44.66 kB / 373.9 MB, free: 87.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003462/0.7742, allocations: 233.9 kB / 374.1 MB, free: 87.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7743, allocations: 1.125 kB / 374.1 MB, free: 87.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001229/0.7755, allocations: 213.1 kB / 374.3 MB, free: 87.56 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.004684/0.7802, allocations: 2.797 MB / 377.1 MB, free: 86.19 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.7826, allocations: 1.003 MB / 378.1 MB, free: 86.06 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.7826, allocations: 0 / 378.1 MB, free: 86.06 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.7841, allocations: 0.6324 MB / 378.8 MB, free: 85.86 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.7851, allocations: 87.38 kB / 378.9 MB, free: 85.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006606/0.7918, allocations: 1.866 MB / 380.7 MB, free: 85.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.7922, allocations: 0.9488 MB / 381.7 MB, free: 84.35 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006027/0.7929, allocations: 248.1 kB / 381.9 MB, free: 84.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.7929, allocations: 0 / 381.9 MB, free: 84.18 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.973/3.766, allocations: 19.09 MB / 401 MB, free: 71.61 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