Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Translational_Examples_Friction",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.747/1.747, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2524/1.999, allocations: 46.82 MB / 249.4 MB, free: 5.297 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09102/2.09, allocations: 44.51 MB / 293.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2874/2.378, allocations: 75.52 MB / 369.4 MB, free: 7.113 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/2.378, allocations: 71.66 kB / 369.5 MB, free: 7.113 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.07948/2.458, allocations: 14.67 MB / 384.2 MB, free: 3.207 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/2.458, allocations: 7.656 kB / 384.2 MB, free: 3.207 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000437/2.458, allocations: 81.53 kB / 384.2 MB, free: 3.164 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/2.459, allocations: 494 kB / 384.7 MB, free: 2.848 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.343e-05/2.459, allocations: 11.66 kB / 384.7 MB, free: 2.848 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002068/2.46, allocations: 23.47 kB / 384.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003151/2.463, allocations: 1.076 MB / 385.8 MB, free: 2.695 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002356/2.465, allocations: 0.8554 MB / 386.7 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.608e-05/2.465, allocations: 0 / 386.7 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001738/2.465, allocations: 7.844 kB / 386.7 MB, free: 2.426 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/2.465, allocations: 11.41 kB / 386.7 MB, free: 2.426 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009895/2.475, allocations: 2.427 MB / 389.1 MB, free: 1.375 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/2.477, allocations: 0.6016 MB / 389.7 MB, free: 1.281 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00137/2.478, allocations: 0.5142 MB / 390.3 MB, free: 1.215 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/2.478, allocations: 7.734 kB / 390.3 MB, free: 1.215 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002034/2.481, allocations: 0.7589 MB / 391 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 5.3e-06/2.481, allocations: 7.984 kB / 391 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of matching and sorting (n=51): time 0.01229/2.493, allocations: 3.425 MB / 394.5 MB, free: 15.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.97e-05/2.493, allocations: 85.95 kB / 394.5 MB, free: 15.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/2.494, allocations: 0.4971 MB / 395 MB, free: 15.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003815/2.494, allocations: 39.02 kB / 395.1 MB, free: 15.56 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/2.495, allocations: 205.9 kB / 395.3 MB, free: 15.41 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003134/2.495, allocations: 160.1 kB / 395.4 MB, free: 15.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/2.495, allocations: 1.375 kB / 395.4 MB, free: 15.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002003/2.495, allocations: 381.8 kB / 395.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001771/2.497, allocations: 0.531 MB / 396.3 MB, free: 14.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001863/2.499, allocations: 0.6147 MB / 397 MB, free: 14.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/2.501, allocations: 468.2 kB / 397.4 MB, free: 14.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/2.501, allocations: 1.375 kB / 397.4 MB, free: 14.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006601/2.507, allocations: 1.715 MB / 399.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/2.507, allocations: 4.375 kB / 399.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.332e-05/2.507, allocations: 8.688 kB / 399.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00995/2.517, allocations: 3.965 MB / 403.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/2.519, allocations: 127.4 kB / 403.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009845/2.529, allocations: 4.888 MB / 408.1 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003636/2.532, allocations: 323.7 kB / 408.4 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004047/2.533, allocations: 103.4 kB / 408.5 MB, free: 7.723 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.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: stop1.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: supportFriction.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: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005652/2.533, allocations: 138.9 kB / 408.7 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/2.534, allocations: 71.16 kB / 408.7 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006549/2.54, allocations: 1.62 MB / 410.4 MB, free: 6.188 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.11e-05/2.54, allocations: 4 kB / 410.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/2.54, allocations: 3.938 kB / 410.4 MB, free: 6.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/2.54, allocations: 3.984 kB / 410.4 MB, free: 6.176 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009196/2.549, allocations: 2.541 MB / 412.9 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/2.55, allocations: 3.938 kB / 412.9 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/2.551, allocations: 107.3 kB / 413 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009573/2.56, allocations: 3.991 MB / 417 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002464/2.561, allocations: 30.72 kB / 417 MB, free: 304 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0095/2.57, allocations: 4.816 MB / 421.9 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/2.57, allocations: 80 / 421.9 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00821/2.578, allocations: 2.337 MB / 424.2 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01059/2.589, allocations: 3.368 MB / 427.6 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/2.59, allocations: 320 kB / 427.9 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00033/2.591, allocations: 15.94 kB / 427.9 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003762/2.594, allocations: 340.1 kB / 428.2 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009382/2.595, allocations: 219.5 kB / 428.4 MB, free: 5.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002699/2.596, allocations: 91.95 kB / 428.5 MB, free: 5.828 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.001066/2.597, allocations: 499 kB / 429 MB, free: 5.344 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002429/2.599, allocations: 204 kB / 429.2 MB, free: 5.145 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * 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 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005671/2.6, allocations: 158.8 kB / 429.4 MB, free: 4.984 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004183/2.604, allocations: 1.324 MB / 430.7 MB, free: 3.633 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/2.604, allocations: 4.125 kB / 430.7 MB, free: 3.629 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002597/2.607, allocations: 0.7765 MB / 431.5 MB, free: 2.832 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/2.608, allocations: 54.16 kB / 431.5 MB, free: 2.785 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007772/2.615, allocations: 1.566 MB / 433.1 MB, free: 1.176 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/2.617, allocations: 0.9746 MB / 434.1 MB, free: 184 kB / 330.7 MB Notification: Performance of SimCode: time 1.273e-06/2.617, allocations: 4 kB / 434.1 MB, free: 180 kB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat