Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.192/2.192, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.173e-05/3.18e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 50.42 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4542/0.558, allocations: 85.87 MB / 428.5 MB, free: 8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/0.5584, allocations: 70.47 kB / 428.6 MB, free: 7.965 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07556/0.634, allocations: 15.12 MB / 443.7 MB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.634, allocations: 0 / 443.7 MB, free: 10.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.701e-05/0.6341, allocations: 12 kB / 443.7 MB, free: 10.84 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.004401/0.6385, allocations: 1.082 MB / 444.8 MB, free: 9.766 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.6386, allocations: 8.031 kB / 444.8 MB, free: 9.758 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002427/0.6388, allocations: 112.6 kB / 444.9 MB, free: 9.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003462/0.6392, allocations: 83.06 kB / 445 MB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008936/0.6401, allocations: 416.5 kB / 445.4 MB, free: 9.199 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.163e-05/0.6402, allocations: 55.61 kB / 445.4 MB, free: 9.164 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002118/0.6404, allocations: 72.91 kB / 445.5 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.6425, allocations: 0.7062 MB / 446.2 MB, free: 8.641 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.22e-05/0.6425, allocations: 7.906 kB / 446.2 MB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.6427, allocations: 29.25 kB / 446.2 MB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.6427, allocations: 20 kB / 446.3 MB, free: 8.605 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002145/0.6448, allocations: 0.7052 MB / 447 MB, free: 8.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007748/0.6526, allocations: 2.438 MB / 449.4 MB, free: 6.086 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.6543, allocations: 0.6132 MB / 450 MB, free: 5.699 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/0.6554, allocations: 424.1 kB / 450.4 MB, free: 5.449 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001355/0.6555, allocations: 12.78 kB / 450.4 MB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00133/0.6568, allocations: 498 kB / 450.9 MB, free: 5.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 7.043e-06/0.6569, allocations: 0 / 450.9 MB, free: 5.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.01626/0.6731, allocations: 2.941 MB / 453.9 MB, free: 2.727 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.168e-05/0.6733, allocations: 64.34 kB / 453.9 MB, free: 2.652 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005792/0.6738, allocations: 311.5 kB / 454.2 MB, free: 2.398 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002015/0.6741, allocations: 58.08 kB / 454.3 MB, free: 2.355 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.6743, allocations: 309.6 kB / 454.6 MB, free: 2.098 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004869/0.6748, allocations: 371.7 kB / 455 MB, free: 1.781 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.849e-05/0.6749, allocations: 25.81 kB / 455 MB, free: 1.773 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.6751, allocations: 347.1 kB / 455.3 MB, free: 1.441 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.6762, allocations: 359.8 kB / 455.7 MB, free: 1.234 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.6773, allocations: 440 kB / 456.1 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009047/0.6783, allocations: 310.1 kB / 456.4 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.6783, allocations: 0 / 456.4 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004165/0.6825, allocations: 1.145 MB / 457.6 MB, free: 15.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/0.6825, allocations: 8 kB / 457.6 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.79e-05/0.6826, allocations: 0 / 457.6 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00172/0.6843, allocations: 0.5527 MB / 458.1 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001644/0.686, allocations: 195.8 kB / 458.3 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006395/0.6924, allocations: 3.224 MB / 461.5 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002481/0.6949, allocations: 239.9 kB / 461.8 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001718/0.6951, allocations: 39.98 kB / 461.8 MB, free: 11.16 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.0004062/0.6955, allocations: 171.9 kB / 462 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.6958, allocations: 71.25 kB / 462 MB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00397/0.6998, allocations: 1.189 MB / 463.2 MB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.527e-05/0.6998, allocations: 15.95 kB / 463.2 MB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.6998, allocations: 0 / 463.2 MB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-05/0.6999, allocations: 7.969 kB / 463.3 MB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006785/0.7067, allocations: 2.349 MB / 465.6 MB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.7067, allocations: 7.953 kB / 465.6 MB, free: 7.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001675/0.7084, allocations: 188 kB / 465.8 MB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001632/0.7101, allocations: 0.5179 MB / 466.3 MB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001698/0.7103, allocations: 35.97 kB / 466.4 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005717/0.716, allocations: 3.042 MB / 469.4 MB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/0.716, allocations: 4.125 kB / 469.4 MB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005133/0.7212, allocations: 1.708 MB / 471.1 MB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006652/0.7219, allocations: 232.1 kB / 471.3 MB, free: 1.184 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002261/0.7221, allocations: 35.97 kB / 471.4 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002448/0.7246, allocations: 255.7 kB / 471.6 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001692/0.7263, allocations: 436.1 kB / 472 MB, free: 484 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001763/0.7265, allocations: 51.95 kB / 472.1 MB, free: 432 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004454/0.727, allocations: 245.2 kB / 472.3 MB, free: 184 kB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.727, allocations: 3.938 kB / 472.3 MB, free: 180 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.001334/0.7283, allocations: 248 kB / 472.6 MB, free: 15.93 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.005921/0.7343, allocations: 2.874 MB / 475.5 MB, free: 12.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003111/0.7375, allocations: 1.069 MB / 476.5 MB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/0.7375, allocations: 4 kB / 476.5 MB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001897/0.7394, allocations: 0.6458 MB / 477.2 MB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.7406, allocations: 114.2 kB / 477.3 MB, free: 11.11 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007766/0.7484, allocations: 1.955 MB / 479.2 MB, free: 9.082 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006569/0.7491, allocations: 0.9476 MB / 480.2 MB, free: 8.109 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006484/0.7497, allocations: 243.3 kB / 480.4 MB, free: 7.871 MB / 394.7 MB Notification: Performance of SimCode: time 1.332e-06/0.7497, allocations: 0 / 480.4 MB, free: 7.871 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.201/3.95, allocations: 19.51 MB / 499.9 MB, free: 4.332 MB / 410.7 MB