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 1.892/1.892, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.118e-05/3.128e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09224/0.0923, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4254/0.5177, allocations: 78.96 MB / 378.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/0.5181, allocations: 73.59 kB / 379 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06899/0.5871, allocations: 14.73 MB / 393.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5872, allocations: 0 / 393.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.474e-05/0.5872, allocations: 11.59 kB / 393.7 MB, free: 11.41 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.004046/0.5913, allocations: 1.084 MB / 394.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.5914, allocations: 7.75 kB / 394.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002793/0.5916, allocations: 113.5 kB / 394.9 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003339/0.592, allocations: 85.94 kB / 395 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008009/0.5928, allocations: 413.1 kB / 395.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.876e-05/0.5929, allocations: 51.72 kB / 395.4 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/0.5931, allocations: 76.34 kB / 395.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001911/0.595, allocations: 0.7206 MB / 396.2 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.456e-05/0.5951, allocations: 7.75 kB / 396.2 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000129/0.5952, allocations: 28.47 kB / 396.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.5953, allocations: 19.59 kB / 396.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002047/0.5973, allocations: 0.7078 MB / 397 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007709/0.6051, allocations: 2.436 MB / 399.4 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.6067, allocations: 0.6279 MB / 400.1 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.6077, allocations: 408.2 kB / 400.5 MB, free: 9.504 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001529/0.6079, allocations: 16.27 kB / 400.5 MB, free: 9.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/0.6092, allocations: 0.492 MB / 401 MB, free: 9.344 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 4.188e-06/0.6092, allocations: 0 / 401 MB, free: 9.344 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.009599/0.6188, allocations: 2.94 MB / 403.9 MB, free: 8.305 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.6189, allocations: 64.12 kB / 404 MB, free: 8.242 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004886/0.6194, allocations: 309.6 kB / 404.3 MB, free: 8.113 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002122/0.6196, allocations: 65.19 kB / 404.3 MB, free: 8.074 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.6198, allocations: 308.3 kB / 404.6 MB, free: 7.836 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003396/0.6202, allocations: 364.5 kB / 405 MB, free: 7.582 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.444e-05/0.6203, allocations: 20.91 kB / 405 MB, free: 7.582 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.178e-05/0.6204, allocations: 357.6 kB / 405.4 MB, free: 7.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009675/0.6214, allocations: 349.4 kB / 405.7 MB, free: 7.242 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/0.6224, allocations: 461.7 kB / 406.2 MB, free: 7.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008193/0.6233, allocations: 309.2 kB / 406.5 MB, free: 7.109 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.6233, allocations: 0 / 406.5 MB, free: 7.109 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003685/0.627, allocations: 1.145 MB / 407.6 MB, free: 6.883 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.6271, allocations: 5.406 kB / 407.6 MB, free: 6.883 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.747e-05/0.6271, allocations: 7.781 kB / 407.6 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001498/0.6286, allocations: 0.5398 MB / 408.2 MB, free: 6.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001547/0.6302, allocations: 213.6 kB / 408.4 MB, free: 6.684 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005257/0.6355, allocations: 3.23 MB / 411.6 MB, free: 4.121 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002347/0.6379, allocations: 234.4 kB / 411.8 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/0.6381, allocations: 42.22 kB / 411.9 MB, free: 4.043 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): 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.0003547/0.6385, allocations: 178.1 kB / 412 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.6387, allocations: 70.16 kB / 412.1 MB, free: 3.875 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003509/0.6422, allocations: 1.201 MB / 413.3 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.6422, allocations: 11.66 kB / 413.3 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.6423, allocations: 0 / 413.3 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.818e-05/0.6423, allocations: 3.984 kB / 413.3 MB, free: 3.551 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00633/0.6486, allocations: 2.351 MB / 415.7 MB, free: 18.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.6487, allocations: 4.25 kB / 415.7 MB, free: 18.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/0.6502, allocations: 186.6 kB / 415.9 MB, free: 18.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001406/0.6517, allocations: 0.5069 MB / 416.4 MB, free: 18.37 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001866/0.6519, allocations: 39.33 kB / 416.4 MB, free: 18.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005013/0.6569, allocations: 3.057 MB / 419.5 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.657, allocations: 0 / 419.5 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004568/0.6615, allocations: 1.728 MB / 421.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006635/0.6623, allocations: 226.6 kB / 421.4 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002113/0.6625, allocations: 30.81 kB / 421.4 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002329/0.6648, allocations: 254.8 kB / 421.7 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001638/0.6665, allocations: 429.7 kB / 422.1 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001783/0.6667, allocations: 46.42 kB / 422.2 MB, free: 14.83 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004296/0.6672, allocations: 247.5 kB / 422.4 MB, free: 14.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6672, allocations: 3.938 kB / 422.4 MB, free: 14.72 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001214/0.6684, allocations: 256.8 kB / 422.7 MB, free: 14.71 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.005214/0.6736, allocations: 2.866 MB / 425.5 MB, free: 13.08 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002928/0.6766, allocations: 1.089 MB / 426.6 MB, free: 12.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.6767, allocations: 0 / 426.6 MB, free: 12.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001826/0.6785, allocations: 0.6673 MB / 427.3 MB, free: 12.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.6797, allocations: 101.8 kB / 427.4 MB, free: 12.62 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007598/0.6873, allocations: 1.971 MB / 429.3 MB, free: 11.54 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006282/0.688, allocations: 0.9476 MB / 430.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007275/0.6887, allocations: 246.3 kB / 430.5 MB, free: 10.56 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6888, allocations: 0 / 430.5 MB, free: 10.56 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.935/3.624, allocations: 19.56 MB / 450.1 MB, free: 10.96 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