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.225/2.225, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.703e-05/4.724e-05, allocations: 5.406 kB / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 44.5 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4684/0.573, allocations: 78.98 MB / 378.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.5733, allocations: 71.08 kB / 379 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07046/0.6438, allocations: 14.73 MB / 393.7 MB, free: 10.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6439, allocations: 0 / 393.7 MB, free: 10.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.749e-05/0.6439, allocations: 16.16 kB / 393.7 MB, free: 10.99 MB / 314.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.0042/0.6481, allocations: 1.083 MB / 394.8 MB, free: 10.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.6482, allocations: 11.59 kB / 394.8 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002856/0.6485, allocations: 111 kB / 394.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003341/0.6488, allocations: 85.69 kB / 395 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007918/0.6496, allocations: 408.2 kB / 395.4 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.987e-05/0.6497, allocations: 52.03 kB / 395.5 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001867/0.6499, allocations: 71.94 kB / 395.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001889/0.6518, allocations: 0.7097 MB / 396.2 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.791e-05/0.6519, allocations: 10.73 kB / 396.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.652, allocations: 36.55 kB / 396.3 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.6521, allocations: 19.66 kB / 396.3 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001934/0.654, allocations: 0.7033 MB / 397 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007442/0.6615, allocations: 2.427 MB / 399.4 MB, free: 9.191 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.663, allocations: 0.6258 MB / 400.1 MB, free: 9.141 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009388/0.6639, allocations: 412.4 kB / 400.5 MB, free: 9.125 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001333/0.6641, allocations: 15.91 kB / 400.5 MB, free: 9.121 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.6653, allocations: 492.1 kB / 401 MB, free: 8.988 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 4.168e-06/0.6653, allocations: 0 / 401 MB, free: 8.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.009651/0.6749, allocations: 2.939 MB / 403.9 MB, free: 7.953 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.675, allocations: 67.86 kB / 404 MB, free: 7.887 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004883/0.6755, allocations: 311.2 kB / 404.3 MB, free: 7.758 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001911/0.6757, allocations: 53.08 kB / 404.3 MB, free: 7.727 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.6759, allocations: 311.2 kB / 404.6 MB, free: 7.488 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003523/0.6763, allocations: 366.9 kB / 405 MB, free: 7.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.721e-05/0.6764, allocations: 18.12 kB / 405 MB, free: 7.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.513e-05/0.6765, allocations: 360.2 kB / 405.4 MB, free: 6.898 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009511/0.6775, allocations: 352.8 kB / 405.7 MB, free: 6.891 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.6785, allocations: 444.5 kB / 406.1 MB, free: 6.812 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008126/0.6793, allocations: 309.4 kB / 406.4 MB, free: 6.762 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.6794, allocations: 3.938 kB / 406.4 MB, free: 6.758 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003637/0.683, allocations: 1.139 MB / 407.6 MB, free: 6.535 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.6831, allocations: 7.812 kB / 407.6 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.255e-05/0.6831, allocations: 11.95 kB / 407.6 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001505/0.6846, allocations: 0.5469 MB / 408.1 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001612/0.6863, allocations: 209.4 kB / 408.4 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005385/0.6917, allocations: 3.214 MB / 411.6 MB, free: 19.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002379/0.6941, allocations: 245.6 kB / 411.8 MB, free: 19.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.6943, allocations: 41.05 kB / 411.8 MB, free: 19.69 MB / 330.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.0003713/0.6947, allocations: 170.4 kB / 412 MB, free: 19.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/0.6949, allocations: 69.84 kB / 412.1 MB, free: 19.53 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.6984, allocations: 1.195 MB / 413.3 MB, free: 19.22 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/0.6984, allocations: 15.58 kB / 413.3 MB, free: 19.21 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.6984, allocations: 0 / 413.3 MB, free: 19.21 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/0.6985, allocations: 3.984 kB / 413.3 MB, free: 19.21 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006122/0.7046, allocations: 2.358 MB / 415.7 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.7047, allocations: 0 / 415.7 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/0.7063, allocations: 187 kB / 415.8 MB, free: 18.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001432/0.7077, allocations: 0.5172 MB / 416.4 MB, free: 18.02 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001946/0.708, allocations: 32.34 kB / 416.4 MB, free: 18.01 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004983/0.7129, allocations: 3.05 MB / 419.4 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.713, allocations: 11.97 kB / 419.4 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004511/0.7175, allocations: 1.712 MB / 421.2 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006352/0.7182, allocations: 227.9 kB / 421.4 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002191/0.7184, allocations: 35.25 kB / 421.4 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002371/0.7208, allocations: 254.4 kB / 421.7 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001559/0.7224, allocations: 439.2 kB / 422.1 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/0.7226, allocations: 40.81 kB / 422.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004091/0.723, allocations: 254.5 kB / 422.4 MB, free: 14.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.723, allocations: 0 / 422.4 MB, free: 14.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001282/0.7243, allocations: 251.3 kB / 422.6 MB, free: 14.36 MB / 330.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.005399/0.7297, allocations: 2.868 MB / 425.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003085/0.7329, allocations: 1.076 MB / 426.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/0.7329, allocations: 0 / 426.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001863/0.7348, allocations: 0.6514 MB / 427.2 MB, free: 12.31 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001167/0.736, allocations: 107.8 kB / 427.3 MB, free: 12.28 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007621/0.7436, allocations: 1.954 MB / 429.3 MB, free: 11.22 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006651/0.7444, allocations: 0.9477 MB / 430.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006458/0.745, allocations: 243.9 kB / 430.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.745, allocations: 3.875 kB / 430.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.048/3.793, allocations: 19.51 MB / 450 MB, free: 11.03 MB / 346.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