Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint4,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint4",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.741/2.741, allocations: 235 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2105/2.952, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/3.258, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4652/3.724, allocations: 118.3 MB / 472.4 MB, free: 30.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003323/3.724, allocations: 84.2 kB / 472.5 MB, free: 30.24 MB / 378.7 MB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:8234:19-8234:30:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:8232:19-8232:29:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:8233:19-8233:29:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:8288:13-8288:24:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:8305:19-8305:30:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:8303:19-8303:29:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:8304:19-8304:29:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:8380:13-8380:24:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4594 * Number of variables: 4594 Notification: Performance of Generate backend data structure: time 1.761/5.485, allocations: 281.1 MB / 0.7359 GB, free: 44.52 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/5.485, allocations: 8 kB / 0.7359 GB, free: 44.51 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1915/5.677, allocations: 16.72 MB / 0.7522 GB, free: 30.71 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1023/5.779, allocations: 22.55 MB / 0.7743 GB, free: 8.516 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001381/5.78, allocations: 472 kB / 0.7747 GB, free: 8.055 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009834/5.79, allocations: 0.8783 MB / 0.7756 GB, free: 7.176 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.09018/5.881, allocations: 19.88 MB / 0.795 GB, free: 3.305 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.598/6.479, allocations: 27.85 MB / 0.8222 GB, free: 80.68 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001632/6.48, allocations: 175.5 kB / 0.8223 GB, free: 80.68 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00763/6.488, allocations: 57.22 kB / 0.8224 GB, free: 80.68 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008705/6.497, allocations: 2.74 MB / 0.8251 GB, free: 80.65 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3226/6.819, allocations: 134.2 MB / 0.9562 GB, free: 36.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03038/6.85, allocations: 11.69 MB / 0.9676 GB, free: 31.75 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03095/6.881, allocations: 11.13 MB / 0.9784 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1028/6.984, allocations: 30.32 MB / 1.008 GB, free: 9.488 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000122/6.984, allocations: 91.27 kB / 1.008 GB, free: 9.387 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=604): time 1.275e-05/6.984, allocations: 0 / 1.008 GB, free: 9.387 MB / 0.5105 GB Notification: Performance of matching and sorting (n=831): time 1.038/8.022, allocations: 99.95 MB / 1.106 GB, free: 115.2 MB / 0.5106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001764/8.022, allocations: 346.3 kB / 1.106 GB, free: 114.9 MB / 0.5106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03039/8.053, allocations: 8.928 MB / 1.115 GB, free: 111.9 MB / 0.5106 GB Notification: Performance of collectPreVariables (initialization): time 0.003007/8.056, allocations: 25.7 kB / 1.115 GB, free: 111.8 MB / 0.5106 GB Notification: Performance of collectInitialEqns (initialization): time 0.008628/8.064, allocations: 7.598 MB / 1.122 GB, free: 106.4 MB / 0.5106 GB Notification: Performance of collectInitialBindings (initialization): time 0.007635/8.072, allocations: 2.887 MB / 1.125 GB, free: 104.1 MB / 0.5106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004467/8.077, allocations: 2.875 kB / 1.125 GB, free: 104.1 MB / 0.5106 GB Notification: Performance of setup shared object (initialization): time 0.002649/8.079, allocations: 0.9656 MB / 1.126 GB, free: 103.6 MB / 0.5106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03102/8.11, allocations: 9.566 MB / 1.135 GB, free: 99.96 MB / 0.5106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0352/8.146, allocations: 16.88 MB / 1.152 GB, free: 83.33 MB / 0.5106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0344/8.18, allocations: 12.69 MB / 1.164 GB, free: 72.84 MB / 0.5106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002853/8.181, allocations: 72 kB / 1.164 GB, free: 72.77 MB / 0.5106 GB Notification: Performance of matching and sorting (n=2031) (initialization): time 0.4336/8.614, allocations: 34.01 MB / 1.197 GB, free: 104.1 MB / 0.5106 GB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/8.614, allocations: 8.625 kB / 1.198 GB, free: 104.1 MB / 0.5106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005274/8.615, allocations: 252.4 kB / 1.198 GB, free: 104.1 MB / 0.5106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07956/8.694, allocations: 10.04 MB / 1.208 GB, free: 104 MB / 0.5106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03395/8.728, allocations: 3.493 MB / 1.211 GB, free: 104 MB / 0.5106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1876/8.916, allocations: 46.24 MB / 1.256 GB, free: 100.6 MB / 0.5106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0314/8.948, allocations: 0.5755 MB / 1.257 GB, free: 100.6 MB / 0.5106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005813/8.953, allocations: 0.8874 MB / 1.258 GB, free: 100.5 MB / 0.5106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1152 * Number of states: 0 () * Number of discrete variables: 147 (cyl4.color[3],cyl4.color[2],cyl4.color[1],cyl4.body.sphereColor[3],cyl4.body.sphereColor[2],cyl4.body.sphereColor[1],cyl3.color[3],cyl3.color[2],cyl3.color[1],cyl3.body.sphereColor[3],cyl3.body.sphereColor[2],cyl3.body.sphereColor[1],absoluteSensor_1D.arrowColor[3],absoluteSensor_1D.arrowColor[2],absoluteSensor_1D.arrowColor[1],absoluteSensor_MBS.arrowColor[3],absoluteSensor_MBS.arrowColor[2],absoluteSensor_MBS.arrowColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[1],fixedTranslation8.color[3],fixedTranslation8.color[2],fixedTranslation8.color[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],fixedTranslation7.color[3],fixedTranslation7.color[2],fixedTranslation7.color[1],bodyShape2.color[3],bodyShape2.color[2],bodyShape2.color[1],bodyShape2.body.sphereColor[3],bodyShape2.body.sphereColor[2],bodyShape2.body.sphereColor[1],bodyShape2.frameTranslation.color[3],bodyShape2.frameTranslation.color[2],bodyShape2.frameTranslation.color[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],freeMotion2.arrowColor[3],freeMotion2.arrowColor[2],freeMotion2.arrowColor[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],bodyShape1.color[3],bodyShape1.color[2],bodyShape1.color[1],bodyShape1.body.sphereColor[3],bodyShape1.body.sphereColor[2],bodyShape1.body.sphereColor[1],bodyShape1.frameTranslation.color[3],bodyShape1.frameTranslation.color[2],bodyShape1.frameTranslation.color[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],freeMotion1.arrowColor[3],freeMotion1.arrowColor[2],freeMotion1.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1781): * Single equations (assignments): 1773 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(2,100.0%),(2,100.0%),(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: 2 {(21,57.1%) 111,(11,71.1%) 101} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01281/8.966, allocations: 0.8208 MB / 1.258 GB, free: 100.1 MB / 0.5106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008582/8.975, allocations: 1.096 MB / 1.259 GB, free: 100.1 MB / 0.5106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1753/9.15, allocations: 27.33 MB / 1.286 GB, free: 91.27 MB / 0.5106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003009/9.151, allocations: 79.53 kB / 1.286 GB, free: 91.27 MB / 0.5106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002126/9.151, allocations: 43.47 kB / 1.286 GB, free: 91.27 MB / 0.5106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002465/9.151, allocations: 41.94 kB / 1.286 GB, free: 91.27 MB / 0.5106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2348/9.386, allocations: 53.34 MB / 1.338 GB, free: 59.79 MB / 0.5106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001342/9.386, allocations: 7.938 kB / 1.338 GB, free: 59.78 MB / 0.5106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01851/9.405, allocations: 1.216 MB / 1.34 GB, free: 58.76 MB / 0.5106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06767/9.472, allocations: 8.891 MB / 1.348 GB, free: 52.27 MB / 0.5106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00307/9.476, allocations: 41.22 kB / 1.348 GB, free: 52.25 MB / 0.5106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4294/9.905, allocations: 44.55 MB / 1.392 GB, free: 106 MB / 0.5106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.265e-05/9.905, allocations: 5.906 kB / 1.392 GB, free: 106 MB / 0.5106 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1625/10.07, allocations: 39.62 MB / 1.43 GB, free: 98.71 MB / 0.5106 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.247/10.31, allocations: 53.65 MB / 1.483 GB, free: 76.09 MB / 0.5106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02065/10.34, allocations: 2.758 MB / 1.486 GB, free: 73.63 MB / 0.5106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009818/10.35, allocations: 26.84 kB / 1.486 GB, free: 73.61 MB / 0.5106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02766/10.37, allocations: 290.2 kB / 1.486 GB, free: 73.44 MB / 0.5106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007007/10.38, allocations: 405.8 kB / 1.486 GB, free: 73.21 MB / 0.5106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005028/10.39, allocations: 206.2 kB / 1.486 GB, free: 73.02 MB / 0.5106 GB Notification: Performance of sort global known variables: time 0.03041/10.42, allocations: 6.268 MB / 1.493 GB, free: 67.6 MB / 0.5106 GB Notification: Performance of remove unused functions: time 0.04577/10.46, allocations: 3.533 MB / 1.496 GB, free: 64.08 MB / 0.5106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 32 (freeMotion1.r_rel_a[1],freeMotion1.r_rel_a[2],freeMotion1.r_rel_a[3],freeMotion1.v_rel_a[1],freeMotion1.v_rel_a[2],freeMotion1.v_rel_a[3],freeMotion1.phi[1],freeMotion1.phi[2],freeMotion1.phi[3],freeMotion1.phi_d[1],freeMotion1.phi_d[2],freeMotion1.phi_d[3],revolute1.phi,revolute1.w,gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,freeMotion2.r_rel_a[1],freeMotion2.r_rel_a[2],freeMotion2.r_rel_a[3],freeMotion2.v_rel_a[1],freeMotion2.v_rel_a[2],freeMotion2.v_rel_a[3],freeMotion2.phi[1],freeMotion2.phi[2],freeMotion2.phi[3],freeMotion2.phi_d[1],freeMotion2.phi_d[2],freeMotion2.phi_d[3],revolute2.phi,revolute2.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (634): * Single equations (assignments): 628 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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: 2 {(11,71.1%) 87,(12,88.9%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005251/10.47, allocations: 266.4 kB / 1.496 GB, free: 63.92 MB / 0.5106 GB Notification: Performance of simCode: created initialization part: time 0.1116/10.58, allocations: 24.34 MB / 1.52 GB, free: 42.61 MB / 0.5106 GB Notification: Performance of simCode: created event and clocks part: time 1.768e-05/10.58, allocations: 0 / 1.52 GB, free: 42.61 MB / 0.5106 GB Notification: Performance of simCode: created simulation system equations: time 0.3264/10.91, allocations: 11.45 MB / 1.531 GB, free: 110.1 MB / 0.5106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0252/10.93, allocations: 1.426 MB / 1.533 GB, free: 110 MB / 0.5106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1533/11.08, allocations: 33.73 MB / 1.566 GB, free: 104.5 MB / 0.5106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.05356/11.14, allocations: 11.25 MB / 1.577 GB, free: 103.3 MB / 0.5106 GB Notification: Performance of SimCode: time 1.933e-06/11.14, allocations: 0 / 1.577 GB, free: 103.3 MB / 0.5106 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint4_res.mat does not exist to compare? outputFormat=mat