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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.724/1.724, allocations: 194.9 MB / 202.6 MB, free: 6.883 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2664/1.991, allocations: 46.82 MB / 249.4 MB, free: 5.363 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09402/2.085, allocations: 44.51 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3063/2.391, allocations: 78.22 MB / 372.1 MB, free: 7.164 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/2.391, allocations: 71.34 kB / 372.2 MB, free: 7.164 MB / 298.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.08155/2.473, allocations: 15.71 MB / 387.9 MB, free: 2.254 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/2.473, allocations: 15.38 kB / 387.9 MB, free: 2.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003744/2.473, allocations: 84.94 kB / 388 MB, free: 2.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008425/2.474, allocations: 411.8 kB / 388.4 MB, free: 1.879 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.632e-05/2.474, allocations: 23.12 kB / 388.4 MB, free: 1.879 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/2.475, allocations: 41.66 kB / 388.5 MB, free: 1.879 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002223/2.477, allocations: 0.6787 MB / 389.2 MB, free: 1.805 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002183/2.479, allocations: 0.6284 MB / 389.8 MB, free: 1.629 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.154e-05/2.479, allocations: 7.891 kB / 389.8 MB, free: 1.621 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/2.479, allocations: 3.875 kB / 389.8 MB, free: 1.621 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.186e-05/2.479, allocations: 15.47 kB / 389.8 MB, free: 1.621 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008116/2.487, allocations: 2.355 MB / 392.2 MB, free: 372 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/2.489, allocations: 438.8 kB / 392.6 MB, free: 332 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/2.49, allocations: 387.3 kB / 393 MB, free: 304 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/2.49, allocations: 21.8 kB / 393 MB, free: 300 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/2.491, allocations: 474.9 kB / 393.5 MB, free: 148 kB / 298.7 MB Notification: Performance of pre-optimization done (n=89): time 4.499e-06/2.491, allocations: 0 / 393.5 MB, free: 148 kB / 298.7 MB Notification: Performance of matching and sorting (n=109): time 0.01114/2.503, allocations: 2.591 MB / 396 MB, free: 15.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/2.503, allocations: 63.19 kB / 396.1 MB, free: 15.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005451/2.503, allocations: 281.7 kB / 396.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002246/2.503, allocations: 38.47 kB / 396.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/2.504, allocations: 224.5 kB / 396.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004719/2.504, allocations: 356.9 kB / 397 MB, free: 14.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/2.504, allocations: 0 / 397 MB, free: 14.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001962/2.504, allocations: 369 kB / 397.3 MB, free: 14.15 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/2.506, allocations: 337.1 kB / 397.7 MB, free: 14.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/2.507, allocations: 427.8 kB / 398.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/2.508, allocations: 291.9 kB / 398.4 MB, free: 14.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/2.508, allocations: 7.984 kB / 398.4 MB, free: 14.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004977/2.513, allocations: 1.093 MB / 399.5 MB, free: 13.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/2.513, allocations: 13.05 kB / 399.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-05/2.513, allocations: 3.469 kB / 399.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001894/2.515, allocations: 0.5317 MB / 400 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002021/2.517, allocations: 211.8 kB / 400.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006646/2.524, allocations: 2.903 MB / 403.1 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004695/2.529, allocations: 246.4 kB / 403.4 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005018/2.529, allocations: 38.83 kB / 403.4 MB, free: 11.14 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.0007306/2.53, allocations: 148.9 kB / 403.6 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004011/2.53, allocations: 70.11 kB / 403.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005941/2.536, allocations: 1.116 MB / 404.7 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.17e-05/2.536, allocations: 10.75 kB / 404.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/2.536, allocations: 8 kB / 404.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.517e-05/2.536, allocations: 3.984 kB / 404.8 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00779/2.544, allocations: 2.179 MB / 406.9 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/2.544, allocations: 2.156 kB / 407 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001989/2.546, allocations: 199.9 kB / 407.1 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001752/2.548, allocations: 0.5006 MB / 407.6 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001642/2.548, allocations: 22.39 kB / 407.7 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00467/2.553, allocations: 2.833 MB / 410.5 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/2.553, allocations: 6.688 kB / 410.5 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005636/2.559, allocations: 1.652 MB / 412.2 MB, free: 5.867 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007221/2.566, allocations: 2.49 MB / 414.6 MB, free: 3.961 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007202/2.567, allocations: 226.5 kB / 414.9 MB, free: 3.758 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002762/2.567, allocations: 18.73 kB / 414.9 MB, free: 3.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003025/2.57, allocations: 267.4 kB / 415.2 MB, free: 3.488 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006609/2.571, allocations: 197.2 kB / 415.3 MB, free: 3.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/2.571, allocations: 46.97 kB / 415.4 MB, free: 3.285 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003783/2.571, allocations: 216 kB / 415.6 MB, free: 3.113 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002244/2.574, allocations: 211.9 kB / 415.8 MB, free: 2.906 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.0004644/2.574, allocations: 161.8 kB / 416 MB, free: 2.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003324/2.577, allocations: 1.012 MB / 417 MB, free: 2.012 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/2.577, allocations: 0 / 417 MB, free: 2.012 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002578/2.58, allocations: 0.6443 MB / 417.6 MB, free: 1.473 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/2.582, allocations: 93.77 kB / 417.7 MB, free: 1.383 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007224/2.589, allocations: 1.572 MB / 419.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/2.59, allocations: 1.024 MB / 420.3 MB, free: 14.7 MB / 330.7 MB Notification: Performance of SimCode: time 1.302e-06/2.59, allocations: 0 / 420.3 MB, free: 14.7 MB / 330.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