Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Translational_Examples_Brake",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.708/1.708, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2089/1.917, allocations: 46.83 MB / 249.4 MB, free: 5.305 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09188/2.009, allocations: 44.5 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.286/2.295, allocations: 72.43 MB / 366.3 MB, free: 7.129 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/2.295, allocations: 73.91 kB / 366.4 MB, free: 7.129 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.02825/2.324, allocations: 5.82 MB / 372.2 MB, free: 6.309 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/2.324, allocations: 8.406 kB / 372.2 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/2.324, allocations: 35.03 kB / 372.3 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004179/2.324, allocations: 275.3 kB / 372.5 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/2.324, allocations: 15.06 kB / 372.6 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.897e-05/2.325, allocations: 15.62 kB / 372.6 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001012/2.326, allocations: 326.1 kB / 372.9 MB, free: 6.055 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009019/2.326, allocations: 314.2 kB / 373.2 MB, free: 6.012 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/2.326, allocations: 4.703 kB / 373.2 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.263e-05/2.327, allocations: 3.938 kB / 373.2 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/2.327, allocations: 3.969 kB / 373.2 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003838/2.33, allocations: 1.08 MB / 374.3 MB, free: 5.574 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005995/2.331, allocations: 227.8 kB / 374.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000446/2.332, allocations: 169.2 kB / 374.7 MB, free: 5.539 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.676e-05/2.332, allocations: 8.141 kB / 374.7 MB, free: 5.539 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/2.332, allocations: 41.48 kB / 374.7 MB, free: 5.496 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 3.717e-06/2.332, allocations: 7.938 kB / 374.7 MB, free: 5.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=47): time 0.005009/2.337, allocations: 1.341 MB / 376.1 MB, free: 4.949 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/2.337, allocations: 59.81 kB / 376.1 MB, free: 4.883 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002829/2.337, allocations: 177.1 kB / 376.3 MB, free: 20.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/2.337, allocations: 34.67 kB / 376.3 MB, free: 20.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.42e-05/2.337, allocations: 135.5 kB / 376.5 MB, free: 20.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001662/2.337, allocations: 151.8 kB / 376.6 MB, free: 20.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.303e-05/2.338, allocations: 3.875 kB / 376.6 MB, free: 20.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/2.338, allocations: 334.1 kB / 376.9 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005337/2.338, allocations: 167.2 kB / 377.1 MB, free: 20.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005617/2.339, allocations: 240.2 kB / 377.3 MB, free: 20.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006485/2.339, allocations: 145.1 kB / 377.5 MB, free: 20.15 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/2.339, allocations: 0 / 377.5 MB, free: 20.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002614/2.342, allocations: 0.5927 MB / 378.1 MB, free: 20.06 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/2.342, allocations: 3.906 kB / 378.1 MB, free: 20.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.705e-05/2.342, allocations: 4.641 kB / 378.1 MB, free: 20.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/2.343, allocations: 365.7 kB / 378.4 MB, free: 20.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000604/2.344, allocations: 78.81 kB / 378.5 MB, free: 20.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002147/2.346, allocations: 1.365 MB / 379.9 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/2.347, allocations: 100.4 kB / 380 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.901e-05/2.347, allocations: 21.83 kB / 380 MB, free: 18.95 MB / 314.7 MB 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.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: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003034/2.348, allocations: 125.4 kB / 380.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/2.348, allocations: 31.64 kB / 380.2 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/2.35, allocations: 0.5991 MB / 380.8 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/2.351, allocations: 3.812 kB / 380.8 MB, free: 18.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/2.351, allocations: 4.062 kB / 380.8 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.998e-06/2.351, allocations: 6.422 kB / 380.8 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00494/2.356, allocations: 1.222 MB / 382 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/2.356, allocations: 0 / 382 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006198/2.356, allocations: 64.59 kB / 382.1 MB, free: 18.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009785/2.357, allocations: 341.2 kB / 382.4 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.694e-05/2.357, allocations: 7.891 kB / 382.4 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001902/2.359, allocations: 1.311 MB / 383.7 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/2.359, allocations: 7.812 kB / 383.7 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002769/2.362, allocations: 0.8784 MB / 384.6 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003432/2.365, allocations: 1.442 MB / 386 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002867/2.366, allocations: 150.7 kB / 386.2 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/2.366, allocations: 15.73 kB / 386.2 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006694/2.367, allocations: 43.16 kB / 386.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002929/2.367, allocations: 101.8 kB / 386.3 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.338e-05/2.367, allocations: 34.09 kB / 386.4 MB, free: 15.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001801/2.367, allocations: 140.4 kB / 386.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001614/2.369, allocations: 85.78 kB / 386.6 MB, free: 15.64 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003194/2.369, allocations: 136.9 kB / 386.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00135/2.371, allocations: 0.4891 MB / 387.2 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/2.371, allocations: 3.938 kB / 387.2 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008477/2.371, allocations: 259.8 kB / 387.5 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005907/2.372, allocations: 29.84 kB / 387.5 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/2.374, allocations: 0.7007 MB / 388.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005699/2.375, allocations: 0.8234 MB / 389 MB, free: 14.19 MB / 314.7 MB Notification: Performance of SimCode: time 9.71e-07/2.375, allocations: 0 / 389 MB, free: 14.19 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat