Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_Torque2",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(ModelicaTest): time 2.545/2.545, allocations: 235.1 MB / 242 MB, free: 9.738 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1746/2.719, allocations: 57.2 MB / 299.2 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/3.008, allocations: 54.84 MB / 354.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4449/3.453, allocations: 104.6 MB / 458.6 MB, free: 35.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003682/3.453, allocations: 74.08 kB / 458.7 MB, free: 35.14 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4454 * Number of variables: 4454 Notification: Performance of Generate backend data structure: time 1.546/4.999, allocations: 244.8 MB / 0.687 GB, free: 46.08 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/4.999, allocations: 9.625 kB / 0.687 GB, free: 46.08 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1105/5.11, allocations: 12.38 MB / 0.6991 GB, free: 45.16 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05585/5.166, allocations: 13.41 MB / 0.7122 GB, free: 43.65 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001004/5.167, allocations: 417.8 kB / 0.7126 GB, free: 43.65 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007727/5.175, allocations: 0.7521 MB / 0.7133 GB, free: 43.64 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06011/5.235, allocations: 18.09 MB / 0.731 GB, free: 40.12 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09774/5.333, allocations: 26.56 MB / 0.7569 GB, free: 15.11 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001213/5.334, allocations: 152 kB / 0.7571 GB, free: 15.03 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0075/5.341, allocations: 64 kB / 0.7571 GB, free: 14.96 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007553/5.349, allocations: 3.051 MB / 0.7601 GB, free: 12.48 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.734/6.083, allocations: 124 MB / 0.8813 GB, free: 57.63 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03212/6.115, allocations: 11.47 MB / 0.8925 GB, free: 56.33 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01834/6.134, allocations: 8.191 MB / 0.9005 GB, free: 56.26 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06946/6.203, allocations: 22.23 MB / 0.9222 GB, free: 52.34 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001204/6.203, allocations: 98.73 kB / 0.9223 GB, free: 52.29 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=510): time 1.043e-05/6.203, allocations: 3.781 kB / 0.9223 GB, free: 52.29 MB / 0.5105 GB Notification: Performance of matching and sorting (n=596): time 0.2862/6.49, allocations: 56.83 MB / 0.9778 GB, free: 29.85 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002028/6.49, allocations: 376.3 kB / 0.9781 GB, free: 29.46 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03117/6.521, allocations: 8.299 MB / 0.9862 GB, free: 26.55 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002564/6.524, allocations: 26.98 kB / 0.9863 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.01164/6.535, allocations: 7.869 MB / 0.9939 GB, free: 20.64 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005828/6.541, allocations: 2.156 MB / 0.996 GB, free: 19.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003207/6.545, allocations: 3.938 kB / 0.996 GB, free: 19.03 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001964/6.547, allocations: 0.9763 MB / 0.997 GB, free: 18.44 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02123/6.568, allocations: 6.6 MB / 1.003 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2755/6.843, allocations: 15.26 MB / 1.018 GB, free: 108 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02918/6.873, allocations: 9.973 MB / 1.028 GB, free: 108 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003952/6.873, allocations: 87.91 kB / 1.028 GB, free: 108 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2067) (initialization): time 0.08293/6.956, allocations: 22.76 MB / 1.05 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.595e-05/6.956, allocations: 3.844 kB / 1.05 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007266/6.957, allocations: 305.2 kB / 1.051 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01765/6.975, allocations: 3.144 MB / 1.054 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03314/7.008, allocations: 3.742 MB / 1.057 GB, free: 107 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05572/7.064, allocations: 20.51 MB / 1.077 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02514/7.089, allocations: 0.5265 MB / 1.078 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005252/7.094, allocations: 0.9127 MB / 1.079 GB, free: 101.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1397 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1947): * Single equations (assignments): 1940 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008981/7.103, allocations: 0.8925 MB / 1.08 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004645/7.108, allocations: 0.9029 MB / 1.081 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0547/7.162, allocations: 13.45 MB / 1.094 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002305/7.163, allocations: 59.75 kB / 1.094 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.921e-05/7.163, allocations: 14.12 kB / 1.094 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001771/7.163, allocations: 36.48 kB / 1.094 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1095/7.273, allocations: 27.35 MB / 1.121 GB, free: 92.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.455e-05/7.273, allocations: 1.406 kB / 1.121 GB, free: 92.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01495/7.288, allocations: 1.041 MB / 1.122 GB, free: 92.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01632/7.304, allocations: 2.62 MB / 1.124 GB, free: 91.65 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001883/7.306, allocations: 20.64 kB / 1.124 GB, free: 91.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05782/7.364, allocations: 19.26 MB / 1.143 GB, free: 80.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.35e-05/7.364, allocations: 4 kB / 1.143 GB, free: 80.51 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.09354/7.457, allocations: 21.69 MB / 1.164 GB, free: 61.41 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3708/7.828, allocations: 31.24 MB / 1.195 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009771/7.838, allocations: 1.884 MB / 1.196 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006874/7.845, allocations: 4.938 kB / 1.196 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01739/7.863, allocations: 216.3 kB / 1.197 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002787/7.865, allocations: 274.7 kB / 1.197 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002088/7.868, allocations: 146.7 kB / 1.197 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.01976/7.887, allocations: 5.633 MB / 1.203 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.03015/7.918, allocations: 2.639 MB / 1.205 GB, free: 105.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (507): * Single equations (assignments): 500 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002598/7.92, allocations: 191 kB / 1.205 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0572/7.978, allocations: 16.24 MB / 1.221 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/7.978, allocations: 3.219 kB / 1.221 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02205/8, allocations: 6.572 MB / 1.228 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0123/8.012, allocations: 0.9386 MB / 1.229 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09716/8.109, allocations: 25.1 MB / 1.253 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03734/8.147, allocations: 9.61 MB / 1.262 GB, free: 99.06 MB / 0.5105 GB Notification: Performance of SimCode: time 2.255e-06/8.147, allocations: 0 / 1.262 GB, free: 99.06 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat