Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.098/2.098, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.579e-05/2.587e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3069, allocations: 44.49 MB / 294.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.4542, allocations: 78.3 MB / 372.5 MB, free: 3.668 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.4546, allocations: 63.97 kB / 372.6 MB, free: 3.605 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07529/0.5299, allocations: 14.62 MB / 387.2 MB, free: 4.914 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.53, allocations: 0 / 387.2 MB, free: 4.914 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.158e-05/0.53, allocations: 12 kB / 387.2 MB, free: 4.902 MB / 330.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.004443/0.5345, allocations: 1.088 MB / 388.3 MB, free: 3.766 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.5346, allocations: 8.031 kB / 388.3 MB, free: 3.758 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004865/0.5351, allocations: 87.06 kB / 388.4 MB, free: 3.672 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.5362, allocations: 411.2 kB / 388.8 MB, free: 3.227 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.301e-05/0.5363, allocations: 24 kB / 388.8 MB, free: 3.203 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/0.5365, allocations: 47.91 kB / 388.8 MB, free: 3.156 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002319/0.5389, allocations: 0.6758 MB / 389.5 MB, free: 2.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.541, allocations: 0.6281 MB / 390.2 MB, free: 1.848 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.214e-05/0.5411, allocations: 4 kB / 390.2 MB, free: 1.844 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.5412, allocations: 4 kB / 390.2 MB, free: 1.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.74e-05/0.5412, allocations: 20 kB / 390.2 MB, free: 1.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00815/0.5494, allocations: 2.326 MB / 392.5 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/0.5511, allocations: 0.5879 MB / 393.1 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001146/0.5523, allocations: 383.8 kB / 393.5 MB, free: 14.4 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001992/0.5525, allocations: 12.78 kB / 393.5 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.5538, allocations: 476.4 kB / 393.9 MB, free: 13.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=89): time 5.07e-06/0.5539, allocations: 3.938 kB / 393.9 MB, free: 13.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=109): time 0.009364/0.5632, allocations: 2.626 MB / 396.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.5633, allocations: 64.72 kB / 396.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000512/0.5639, allocations: 281.3 kB / 396.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002147/0.5641, allocations: 41.7 kB / 397 MB, free: 10.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002716/0.5644, allocations: 307.5 kB / 397.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005136/0.5649, allocations: 358.8 kB / 397.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.699e-05/0.565, allocations: 0 / 397.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.5652, allocations: 350.8 kB / 397.9 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009942/0.5662, allocations: 338.6 kB / 398.3 MB, free: 9.457 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.5673, allocations: 428.8 kB / 398.7 MB, free: 9.023 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.5684, allocations: 290.3 kB / 399 MB, free: 8.742 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.5684, allocations: 0 / 399 MB, free: 8.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004081/0.5725, allocations: 1.081 MB / 400.1 MB, free: 7.645 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.5726, allocations: 7.984 kB / 400.1 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.966e-05/0.5726, allocations: 4 kB / 400.1 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001676/0.5743, allocations: 0.5372 MB / 400.6 MB, free: 7.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001698/0.576, allocations: 203.7 kB / 400.8 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006448/0.5825, allocations: 3.236 MB / 404 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002343/0.5849, allocations: 223.8 kB / 404.3 MB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001909/0.5851, allocations: 35.98 kB / 404.3 MB, free: 3.227 MB / 346.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): 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.0004499/0.5856, allocations: 141.9 kB / 404.4 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003371/0.589, allocations: 0.9403 MB / 405.4 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002652/0.5893, allocations: 71.2 kB / 405.4 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003916/0.5932, allocations: 1.126 MB / 406.6 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.469e-05/0.5933, allocations: 12 kB / 406.6 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5933, allocations: 0 / 406.6 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.132e-05/0.5934, allocations: 7.984 kB / 406.6 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006959/0.6003, allocations: 2.198 MB / 408.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.6004, allocations: 4 kB / 408.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/0.6021, allocations: 179.8 kB / 409 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001606/0.6037, allocations: 0.5099 MB / 409.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001876/0.6039, allocations: 23.95 kB / 409.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005521/0.6095, allocations: 3.037 MB / 412.5 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.356e-05/0.6095, allocations: 4.031 kB / 412.5 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004937/0.6145, allocations: 1.666 MB / 414.2 MB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006731/0.6152, allocations: 232 kB / 414.4 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002377/0.6155, allocations: 16 kB / 414.5 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002376/0.6179, allocations: 235.8 kB / 414.7 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001786/0.6197, allocations: 436.4 kB / 415.1 MB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001858/0.6199, allocations: 43.95 kB / 415.2 MB, free: 7.938 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003938/0.6203, allocations: 227 kB / 415.4 MB, free: 7.715 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6203, allocations: 4 kB / 415.4 MB, free: 7.711 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001312/0.6216, allocations: 211.9 kB / 415.6 MB, free: 7.504 MB / 362.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.005783/0.6274, allocations: 2.794 MB / 418.4 MB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003012/0.6305, allocations: 1.03 MB / 419.4 MB, free: 3.566 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/0.6306, allocations: 0 / 419.4 MB, free: 3.566 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002013/0.6326, allocations: 0.6398 MB / 420 MB, free: 2.918 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.6339, allocations: 85.8 kB / 420.1 MB, free: 2.832 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008189/0.6421, allocations: 1.872 MB / 422 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2505/0.8927, allocations: 0.9447 MB / 422.9 MB, free: 106.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009062/0.8936, allocations: 245 kB / 423.2 MB, free: 106.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.513e-06/0.8936, allocations: 0.5625 kB / 423.2 MB, free: 106.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.02/3.914, allocations: 19.45 MB / 442.6 MB, free: 101.4 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat