Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Blocks_Examples_NoiseExamples_ActuatorWithNoise",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.746/1.746, allocations: 194.9 MB / 202.6 MB, free: 6.91 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2422/1.989, allocations: 46.83 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08957/2.078, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3473/2.426, allocations: 118.4 MB / 412.3 MB, free: 3.867 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/2.426, allocations: 81.89 kB / 412.4 MB, free: 3.828 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: 811 * Number of variables: 811 Notification: Performance of Generate backend data structure: time 0.3565/2.782, allocations: 80.97 MB / 493.4 MB, free: 10.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/2.783, allocations: 8 kB / 493.4 MB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003243/2.786, allocations: 459 kB / 493.8 MB, free: 9.723 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009686/2.796, allocations: 2.55 MB / 496.4 MB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007709/2.796, allocations: 267.1 kB / 496.6 MB, free: 6.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001156/2.797, allocations: 187.9 kB / 496.8 MB, free: 6.656 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01228/2.81, allocations: 3.328 MB / 0.4884 GB, free: 3.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1886/2.998, allocations: 3.661 MB / 0.492 GB, free: 42.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002624/2.999, allocations: 14.56 kB / 0.492 GB, free: 42.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00112/3, allocations: 7.312 kB / 0.492 GB, free: 42.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001742/3, allocations: 138.7 kB / 0.4921 GB, free: 42.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03579/3.036, allocations: 13.36 MB / 0.5052 GB, free: 39.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003825/3.04, allocations: 1.33 MB / 0.5065 GB, free: 39.47 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003069/3.043, allocations: 1.208 MB / 0.5077 GB, free: 39.46 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004749/3.043, allocations: 229.5 kB / 0.5079 GB, free: 39.27 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002782/3.046, allocations: 1.197 MB / 0.5091 GB, free: 39.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=196): time 5.269e-06/3.046, allocations: 0 / 0.5091 GB, free: 39.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=249): time 0.03269/3.079, allocations: 9.476 MB / 0.5183 GB, free: 37.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/3.079, allocations: 183.7 kB / 0.5185 GB, free: 37.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003852/3.083, allocations: 1.643 MB / 0.5201 GB, free: 37.52 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005852/3.084, allocations: 36.33 kB / 0.5201 GB, free: 37.49 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/3.085, allocations: 1.152 MB / 0.5213 GB, free: 37 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001094/3.086, allocations: 0.8038 MB / 0.522 GB, free: 36.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002603/3.086, allocations: 0 / 0.522 GB, free: 36.46 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002022/3.086, allocations: 414.6 kB / 0.5224 GB, free: 36.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003193/3.089, allocations: 1.244 MB / 0.5236 GB, free: 36.15 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00358/3.093, allocations: 1.865 MB / 0.5255 GB, free: 35.49 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004086/3.097, allocations: 1.534 MB / 0.527 GB, free: 35.44 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.631e-05/3.097, allocations: 3.969 kB / 0.527 GB, free: 35.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=352) (initialization): time 0.0102/3.107, allocations: 3.658 MB / 0.5305 GB, free: 35.16 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/3.107, allocations: 9.031 kB / 0.5306 GB, free: 35.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.957e-05/3.108, allocations: 21.47 kB / 0.5306 GB, free: 35.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002151/3.11, allocations: 497.3 kB / 0.531 GB, free: 35.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006048/3.116, allocations: 0.6792 MB / 0.5317 GB, free: 35.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00759/3.123, allocations: 4.239 MB / 0.5358 GB, free: 32.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004105/3.128, allocations: 121.4 kB / 0.536 GB, free: 32.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004269/3.128, allocations: 118.2 kB / 0.5361 GB, free: 32.37 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gearbox.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gearbox.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition1,$PRE.motor.uniformNoise.state[1],motor.uniformNoise.state[1],$PRE.motor.uniformNoise.state[2],motor.uniformNoise.state[2],$PRE.motor.uniformNoise.state[3],motor.uniformNoise.state[3],$PRE.motor.uniformNoise.state[4],motor.uniformNoise.state[4],$PRE.motor.uniformNoise.r,motor.uniformNoise.r,$PRE.motor.uniformNoise.r_raw,motor.uniformNoise.r_raw,gearbox.lossyGear.tau_aPos,gearbox.lossyGear.startForward,gearbox.lossyGear.startBackward,gearbox.lossyGear.locked,$PRE.gearbox.lossyGear.mode,gearbox.lossyGear.mode,gearbox.lossyGear.ideal,motor.uniformNoise.localSeed,motor.uniformNoise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (321): * Single equations (assignments): 315 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0007579/3.129, allocations: 183.3 kB / 0.5363 GB, free: 32.24 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006804/3.129, allocations: 245.8 kB / 0.5365 GB, free: 32.12 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009999/3.139, allocations: 3.409 MB / 0.5398 GB, free: 30.79 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-05/3.14, allocations: 24.09 kB / 0.5398 GB, free: 30.79 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/3.14, allocations: 0 / 0.5398 GB, free: 30.79 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.249e-05/3.14, allocations: 16.81 kB / 0.5399 GB, free: 30.79 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02491/3.165, allocations: 8.921 MB / 0.5486 GB, free: 26.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.719e-05/3.165, allocations: 10.58 kB / 0.5486 GB, free: 26.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004542/3.169, allocations: 476.3 kB / 0.549 GB, free: 26.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003045/3.172, allocations: 0.6503 MB / 0.5497 GB, free: 26.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003319/3.173, allocations: 21.56 kB / 0.5497 GB, free: 26.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/3.185, allocations: 7.13 MB / 0.5567 GB, free: 21.63 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005835/3.191, allocations: 3.093 MB / 0.5597 GB, free: 19.61 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01399/3.205, allocations: 5.332 MB / 0.5649 GB, free: 17.2 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01744/3.223, allocations: 7.603 MB / 0.5723 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002092/3.225, allocations: 0.6252 MB / 0.5729 GB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006983/3.226, allocations: 15.22 kB / 0.5729 GB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002996/3.229, allocations: 114.4 kB / 0.573 GB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004907/3.229, allocations: 149.2 kB / 0.5732 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000256/3.229, allocations: 77.22 kB / 0.5733 GB, free: 13.13 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002705/3.232, allocations: 1.219 MB / 0.5744 GB, free: 12.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004988/3.237, allocations: 0.7603 MB / 0.5752 GB, free: 12.54 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 ($STATESET1.x,controller.speed_PI.x,controller.positionToSpeed.x,controller.position_PI.x,gearbox.phi_rel,gearbox.w_rel,slewRateLimiter.y,rodMass.s,rodMass.v,elastoGap.s_rel,elastoGap.v_rel) * Number of discrete variables: 12 ($whenCondition1,motor.uniformNoise.state[1],motor.uniformNoise.state[2],motor.uniformNoise.state[3],motor.uniformNoise.state[4],motor.uniformNoise.r,motor.uniformNoise.r_raw,gearbox.lossyGear.tau_aPos,gearbox.lossyGear.startForward,gearbox.lossyGear.startBackward,gearbox.lossyGear.locked,gearbox.lossyGear.mode) * Number of discrete states: 5 (motor.uniformNoise.state[1],motor.uniformNoise.state[2],motor.uniformNoise.state[3],motor.uniformNoise.state[4],gearbox.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(3,100.0%) 11} * Non-linear torn systems: 1 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.001586/3.239, allocations: 0.5673 MB / 0.5757 GB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00857/3.247, allocations: 3.473 MB / 0.5791 GB, free: 10.86 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/3.247, allocations: 3.875 kB / 0.5791 GB, free: 10.86 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005796/3.253, allocations: 2.06 MB / 0.5811 GB, free: 9.867 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004806/3.258, allocations: 452.3 kB / 0.5816 GB, free: 9.758 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0192/3.277, allocations: 5.897 MB / 0.5873 GB, free: 7.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004824/3.282, allocations: 2.67 MB / 0.5899 GB, free: 6.242 MB / 394.7 MB Notification: Performance of SimCode: time 1.383e-06/3.282, allocations: 0 / 0.5899 GB, free: 6.242 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Blocks.Examples.NoiseExamples.ActuatorWithNoise_res.mat does not exist to compare? outputFormat=mat