Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForceAndTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForceAndTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) [: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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 183.1 kB / 8.52 MB, free: 1.789 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.168/1.168, allocations: 221.4 MB / 230.3 MB, free: 7.629 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009704/0.0009701, allocations: 85.67 kB / 281.2 MB, free: 5.449 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.161/0.161, allocations: 44.15 MB / 376.1 MB, free: 3.086 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1765/0.3376, allocations: 68.03 MB / 444.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0914/0.429, allocations: 61.91 MB / 0.4942 GB, free: 1.363 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2695/0.6985, allocations: 107.5 MB / 0.5991 GB, free: 4.957 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002056/0.6987, allocations: 79.94 kB / 0.5992 GB, free: 4.879 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2857 * Number of variables: 2857 Notification: Performance of Generate backend data structure: time 0.5648/1.264, allocations: 164.6 MB / 0.76 GB, free: 98.45 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/1.264, allocations: 17.53 kB / 0.76 GB, free: 98.45 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03497/1.299, allocations: 9.27 MB / 0.769 GB, free: 96.89 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02282/1.321, allocations: 9.025 MB / 0.7778 GB, free: 93.62 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003288/1.322, allocations: 268.2 kB / 0.7781 GB, free: 93.62 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00225/1.324, allocations: 493.1 kB / 0.7786 GB, free: 93.61 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01948/1.344, allocations: 11.65 MB / 0.7899 GB, free: 86.12 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02527/1.369, allocations: 17.44 MB / 0.807 GB, free: 67.13 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002862/1.369, allocations: 99.12 kB / 0.8071 GB, free: 67.03 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001059/1.37, allocations: 48 kB / 0.8071 GB, free: 66.98 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001685/1.372, allocations: 1.906 MB / 0.809 GB, free: 65.08 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07394/1.446, allocations: 81.66 MB / 0.8887 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00867/1.455, allocations: 7.093 MB / 0.8956 GB, free: 6.605 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005936/1.461, allocations: 5.096 MB / 0.9006 GB, free: 1.508 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2726/1.733, allocations: 12.71 MB / 0.913 GB, free: 177.6 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/1.733, allocations: 66.5 kB / 0.9131 GB, free: 177.5 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=295): time 5.37e-06/1.733, allocations: 0 / 0.9131 GB, free: 177.5 MB / 0.5262 GB Notification: Performance of matching and sorting (n=361): time 0.0647/1.798, allocations: 34.03 MB / 0.9463 GB, free: 171.1 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/1.798, allocations: 275.8 kB / 0.9466 GB, free: 170.9 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00688/1.805, allocations: 5.157 MB / 0.9516 GB, free: 169 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0006823/1.806, allocations: 29.45 kB / 0.9517 GB, free: 169 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002042/1.808, allocations: 5.045 MB / 0.9566 GB, free: 165.2 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001299/1.809, allocations: 1.311 MB / 0.9579 GB, free: 164.3 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004517/1.81, allocations: 0 / 0.9579 GB, free: 164.3 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0003734/1.81, allocations: 0.7354 MB / 0.9586 GB, free: 163.8 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004792/1.815, allocations: 4.016 MB / 0.9625 GB, free: 162.4 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006459/1.821, allocations: 9.629 MB / 0.9719 GB, free: 153.5 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007237/1.828, allocations: 6.167 MB / 0.9779 GB, free: 151.6 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.003e-05/1.829, allocations: 58.72 kB / 0.978 GB, free: 151.6 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1284) (initialization): time 0.02487/1.853, allocations: 14.4 MB / 0.992 GB, free: 144.7 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/1.853, allocations: 10.41 kB / 0.9921 GB, free: 144.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003162/1.854, allocations: 203.9 kB / 0.9923 GB, free: 144.5 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005835/1.86, allocations: 2.329 MB / 0.9945 GB, free: 142.7 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008165/1.868, allocations: 2.265 MB / 0.9967 GB, free: 140.7 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01853/1.886, allocations: 15.47 MB / 1.012 GB, free: 126.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007988/1.894, allocations: 314.5 kB / 1.012 GB, free: 126.6 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001931/1.896, allocations: 0.5875 MB / 1.013 GB, free: 126 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 909 * Number of states: 0 () * Number of discrete variables: 87 (forceAndTorque2.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque2.torqueArrow.headAtOrigin,forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque2.forceArrow.headAtOrigin,forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],forceAndTorque1.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque1.torqueArrow.headAtOrigin,forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque1.forceArrow.headAtOrigin,forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (1188): * Single equations (assignments): 1182 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002831/1.899, allocations: 0.6173 MB / 1.013 GB, free: 125.4 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001497/1.901, allocations: 0.5631 MB / 1.014 GB, free: 124.8 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01474/1.915, allocations: 8.366 MB / 1.022 GB, free: 118.1 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.115e-05/1.916, allocations: 32 kB / 1.022 GB, free: 118 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.944e-05/1.916, allocations: 16 kB / 1.022 GB, free: 118 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.05e-05/1.916, allocations: 14.81 kB / 1.022 GB, free: 118 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0303/1.946, allocations: 17.1 MB / 1.039 GB, free: 104.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/1.946, allocations: 0 / 1.039 GB, free: 104.2 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003279/1.949, allocations: 0.5919 MB / 1.039 GB, free: 103.7 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005225/1.955, allocations: 1.977 MB / 1.041 GB, free: 102.3 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005227/1.955, allocations: 15.88 kB / 1.041 GB, free: 102.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01715/1.972, allocations: 14.42 MB / 1.055 GB, free: 89.22 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.972, allocations: 0 / 1.055 GB, free: 89.22 MB / 0.5262 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01792/1.99, allocations: 13.53 MB / 1.069 GB, free: 75.75 MB / 0.5262 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0212/2.011, allocations: 18.7 MB / 1.087 GB, free: 56.95 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/2.013, allocations: 0.5757 MB / 1.087 GB, free: 56.34 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001379/2.015, allocations: 7.938 kB / 1.087 GB, free: 56.34 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003027/2.018, allocations: 150.1 kB / 1.088 GB, free: 56.19 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004553/2.018, allocations: 166.6 kB / 1.088 GB, free: 56.03 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000295/2.018, allocations: 88 kB / 1.088 GB, free: 55.95 MB / 0.5262 GB Notification: Performance of sort global known variables: time 0.004751/2.023, allocations: 3.488 MB / 1.091 GB, free: 52.46 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.00895/2.032, allocations: 1.673 MB / 1.093 GB, free: 50.79 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (286): * Single equations (assignments): 280 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.0006647/2.033, allocations: 172.9 kB / 1.093 GB, free: 50.62 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0136/2.046, allocations: 10.15 MB / 1.103 GB, free: 40.48 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/2.046, allocations: 6.734 kB / 1.103 GB, free: 40.48 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.006197/2.053, allocations: 4.165 MB / 1.107 GB, free: 36.28 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00377/2.056, allocations: 0.6829 MB / 1.108 GB, free: 35.62 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1799/2.236, allocations: 15.8 MB / 1.123 GB, free: 164.9 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008501/2.245, allocations: 6.374 MB / 1.129 GB, free: 164 MB / 0.5262 GB Notification: Performance of SimCode: time 1.262e-06/2.245, allocations: 0 / 1.129 GB, free: 164 MB / 0.5262 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForceAndTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForceAndTorque.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe 2>&1)