Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.477/2.477, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.659e-05/3.661e-05, allocations: 2.438 kB / 249.8 MB, free: 5.223 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1291, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5052/0.6344, allocations: 78.31 MB / 372.6 MB, free: 6.957 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.6347, allocations: 70.06 kB / 372.7 MB, free: 6.957 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08757/0.7223, allocations: 14.62 MB / 387.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.7224, allocations: 0 / 387.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.652e-05/0.7224, allocations: 15.62 kB / 387.3 MB, free: 18.5 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.005188/0.7277, allocations: 1.076 MB / 388.4 MB, free: 17.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.935e-05/0.7277, allocations: 15.59 kB / 388.4 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004754/0.7282, allocations: 81.78 kB / 388.5 MB, free: 17.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009839/0.7292, allocations: 418.3 kB / 388.9 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.615e-05/0.7293, allocations: 22.91 kB / 388.9 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002174/0.7295, allocations: 42.19 kB / 388.9 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002391/0.7319, allocations: 0.6778 MB / 389.6 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002091/0.7341, allocations: 0.6305 MB / 390.2 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.581e-05/0.7342, allocations: 0 / 390.2 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/0.7343, allocations: 0 / 390.2 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.409e-05/0.7344, allocations: 23.28 kB / 390.3 MB, free: 17.17 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008949/0.7433, allocations: 2.326 MB / 392.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.745, allocations: 0.583 MB / 393.2 MB, free: 15.87 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.746, allocations: 389.2 kB / 393.6 MB, free: 15.85 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001946/0.7462, allocations: 16.14 kB / 393.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001419/0.7477, allocations: 476.6 kB / 394 MB, free: 15.69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 5.761e-06/0.7477, allocations: 0 / 394 MB, free: 15.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.01062/0.7583, allocations: 2.629 MB / 396.7 MB, free: 14.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.7584, allocations: 64.34 kB / 396.7 MB, free: 14.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005742/0.759, allocations: 281.2 kB / 397 MB, free: 14.47 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002536/0.7593, allocations: 40.83 kB / 397 MB, free: 14.44 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003027/0.7596, allocations: 261.4 kB / 397.3 MB, free: 14.26 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005978/0.7602, allocations: 354.5 kB / 397.6 MB, free: 14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.7604, allocations: 3.984 kB / 397.7 MB, free: 14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002481/0.7606, allocations: 375 kB / 398 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001082/0.7617, allocations: 334 kB / 398.3 MB, free: 13.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/0.7629, allocations: 425.7 kB / 398.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.7641, allocations: 294.1 kB / 399 MB, free: 13.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.7642, allocations: 4 kB / 399 MB, free: 13.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004698/0.7689, allocations: 1.101 MB / 400.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.957e-05/0.769, allocations: 3.875 kB / 400.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.228e-05/0.769, allocations: 3.875 kB / 400.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/0.7709, allocations: 0.5379 MB / 400.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/0.7729, allocations: 206.6 kB / 400.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007616/0.7806, allocations: 3.237 MB / 404.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002838/0.7835, allocations: 222.1 kB / 404.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001915/0.7837, allocations: 38.98 kB / 404.4 MB, free: 10.5 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): 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.0005532/0.7843, allocations: 135.5 kB / 404.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003891/0.7882, allocations: 0.9427 MB / 405.5 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/0.7885, allocations: 74.41 kB / 405.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00438/0.7929, allocations: 1.113 MB / 406.6 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.7929, allocations: 11.5 kB / 406.7 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.793, allocations: 4 kB / 406.7 MB, free: 9.789 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.297e-05/0.793, allocations: 4.031 kB / 406.7 MB, free: 9.785 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007768/0.8008, allocations: 2.21 MB / 408.9 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/0.8008, allocations: 3.938 kB / 408.9 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/0.8029, allocations: 185.7 kB / 409.1 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/0.8049, allocations: 0.5083 MB / 409.6 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000259/0.8052, allocations: 26.41 kB / 409.6 MB, free: 8.453 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006992/0.8122, allocations: 3.035 MB / 412.6 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.517e-05/0.8122, allocations: 7.938 kB / 412.6 MB, free: 5.547 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006003/0.8183, allocations: 1.651 MB / 414.3 MB, free: 4.266 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008243/0.8191, allocations: 231.7 kB / 414.5 MB, free: 4.062 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003117/0.8195, allocations: 14.98 kB / 414.5 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002997/0.8225, allocations: 234.8 kB / 414.8 MB, free: 3.824 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00223/0.8247, allocations: 441.8 kB / 415.2 MB, free: 3.449 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002228/0.825, allocations: 43.77 kB / 415.2 MB, free: 3.414 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004432/0.8254, allocations: 230.7 kB / 415.5 MB, free: 3.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8255, allocations: 0 / 415.5 MB, free: 3.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001575/0.827, allocations: 211.9 kB / 415.7 MB, free: 3.023 MB / 314.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.006852/0.8339, allocations: 2.794 MB / 418.5 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004506/0.8385, allocations: 1.03 MB / 419.5 MB, free: 15.86 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.699e-05/0.8386, allocations: 4 kB / 419.5 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004617/0.8432, allocations: 0.6904 MB / 420.2 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002291/0.8456, allocations: 81.69 kB / 420.3 MB, free: 15.1 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/0.8599, allocations: 1.847 MB / 422.1 MB, free: 13.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001262/0.8613, allocations: 0.9517 MB / 423.1 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001184/0.8625, allocations: 65.36 kB / 423.1 MB, free: 12.14 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001129/0.8637, allocations: 239.3 kB / 423.4 MB, free: 11.91 MB / 330.7 MB Notification: Performance of SimCode: time 2.134e-06/0.8637, allocations: 4 kB / 423.4 MB, free: 11.9 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.125/0.9887, allocations: 19.46 MB / 442.8 MB, free: 8.477 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004404/0.9892, allocations: 144.8 kB / 443 MB, free: 8.285 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.376/5.365, allocations: 0 / 443 MB, free: 8.285 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat