Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",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.623/1.623, allocations: 194.9 MB / 202.6 MB, free: 6.883 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2311/1.854, allocations: 46.84 MB / 249.4 MB, free: 5.316 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/1.94, allocations: 44.51 MB / 293.9 MB, free: 10.85 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2849/2.225, allocations: 88.17 MB / 382.1 MB, free: 5.312 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/2.225, allocations: 87.22 kB / 382.2 MB, free: 5.297 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.1438/2.369, allocations: 39.26 MB / 421.4 MB, free: 172 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/2.369, allocations: 8 kB / 421.5 MB, free: 164 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006465/2.37, allocations: 182.1 kB / 421.6 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001868/2.372, allocations: 0.7971 MB / 422.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004121/2.372, allocations: 180 kB / 422.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003465/2.372, allocations: 103.9 kB / 422.7 MB, free: 15.1 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004193/2.377, allocations: 1.302 MB / 424 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004041/2.381, allocations: 1.342 MB / 425.3 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-05/2.381, allocations: 4 kB / 425.4 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002135/2.381, allocations: 3.906 kB / 425.4 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.231e-05/2.381, allocations: 36 kB / 425.4 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01615/2.397, allocations: 5.813 MB / 431.2 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/2.399, allocations: 0.5772 MB / 431.8 MB, free: 7.195 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/2.4, allocations: 460.6 kB / 432.2 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/2.4, allocations: 12.72 kB / 432.2 MB, free: 6.727 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001499/2.402, allocations: 0.5671 MB / 432.8 MB, free: 6.117 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 4.398e-06/2.402, allocations: 0 / 432.8 MB, free: 6.117 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.02298/2.425, allocations: 5.339 MB / 438.1 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/2.425, allocations: 303.7 kB / 438.4 MB, free: 340 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/2.426, allocations: 0.6128 MB / 439.1 MB, free: 15.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001831/2.427, allocations: 29.7 kB / 439.1 MB, free: 15.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006003/2.427, allocations: 0.5674 MB / 439.7 MB, free: 15.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005376/2.428, allocations: 398.1 kB / 440 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/2.428, allocations: 3.938 kB / 440 MB, free: 14.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002387/2.428, allocations: 410.6 kB / 440.4 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001927/2.43, allocations: 0.625 MB / 441.1 MB, free: 13.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00227/2.432, allocations: 0.9195 MB / 442 MB, free: 12.63 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001901/2.434, allocations: 0.6116 MB / 442.6 MB, free: 12.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/2.434, allocations: 0 / 442.6 MB, free: 12.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005119/2.44, allocations: 1.629 MB / 444.2 MB, free: 10.37 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/2.44, allocations: 7.938 kB / 444.2 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.023e-05/2.44, allocations: 12 kB / 444.3 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000635/2.44, allocations: 178.5 kB / 444.4 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003641/2.444, allocations: 379.5 kB / 444.8 MB, free: 9.797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004461/2.448, allocations: 3.99 MB / 448.8 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003241/2.452, allocations: 191.8 kB / 449 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/2.452, allocations: 55.98 kB / 449 MB, free: 5.215 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 (axis.gear.bearingFriction.free,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * 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: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005794/2.453, allocations: 155 kB / 449.2 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003148/2.453, allocations: 98.78 kB / 449.3 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004546/2.457, allocations: 1.391 MB / 450.7 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/2.458, allocations: 15.94 kB / 450.7 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/2.458, allocations: 0 / 450.7 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/2.458, allocations: 7.984 kB / 450.7 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/2.469, allocations: 3.938 MB / 454.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/2.469, allocations: 15.91 kB / 454.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00256/2.472, allocations: 288 kB / 454.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009502/2.473, allocations: 321.5 kB / 455.2 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/2.473, allocations: 16 kB / 455.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00251/2.476, allocations: 2.05 MB / 457.3 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-05/2.476, allocations: 11.94 kB / 457.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00553/2.481, allocations: 2.464 MB / 459.8 MB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00725/2.489, allocations: 3.447 MB / 463.2 MB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008577/2.489, allocations: 323.7 kB / 463.5 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003273/2.49, allocations: 24 kB / 463.6 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002208/2.492, allocations: 147.9 kB / 463.7 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000588/2.493, allocations: 176.3 kB / 463.9 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001549/2.493, allocations: 47.98 kB / 463.9 MB, free: 5.234 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.001045/2.494, allocations: 467.2 kB / 464.4 MB, free: 4.781 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002678/2.497, allocations: 303.9 kB / 464.7 MB, free: 4.484 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 7 (axis.gear.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.controller.PI.x,load.w) * Number of discrete variables: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 112 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004548/2.497, allocations: 170.8 kB / 464.9 MB, free: 4.305 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004409/2.501, allocations: 1.656 MB / 466.5 MB, free: 2.613 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/2.501, allocations: 5.812 kB / 466.5 MB, free: 2.609 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003013/2.504, allocations: 0.885 MB / 467.4 MB, free: 1.711 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/2.506, allocations: 127.2 kB / 467.5 MB, free: 1.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008653/2.515, allocations: 2.386 MB / 469.9 MB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002111/2.517, allocations: 1.303 MB / 471.2 MB, free: 13.72 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/2.517, allocations: 0 / 471.2 MB, free: 13.72 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat does not exist to compare? outputFormat=mat