Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.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.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",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.001013/0.001013, allocations: 179.4 kB / 8.52 MB, free: 1.832 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.204/1.204, allocations: 221.4 MB / 230.3 MB, free: 7.66 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.0009358/0.0009359, allocations: 85.73 kB / 281.2 MB, free: 5.473 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.1626/0.1626, allocations: 44.14 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1963/0.3589, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.4613, allocations: 61.91 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2925/0.7538, allocations: 106.7 MB / 0.5984 GB, free: 6.043 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.7541, allocations: 72.62 kB / 0.5984 GB, free: 5.973 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: 2101 * Number of variables: 2101 Notification: Performance of Generate backend data structure: time 0.5032/1.257, allocations: 121.9 MB / 0.7175 GB, free: 101 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/1.257, allocations: 15.75 kB / 0.7175 GB, free: 101 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02615/1.283, allocations: 6.59 MB / 0.7239 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01732/1.301, allocations: 6.719 MB / 0.7305 GB, free: 99.84 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002912/1.301, allocations: 194.6 kB / 0.7307 GB, free: 99.84 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002364/1.304, allocations: 358 kB / 0.731 GB, free: 99.83 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01528/1.319, allocations: 8.801 MB / 0.7396 GB, free: 99.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02565/1.345, allocations: 12.99 MB / 0.7523 GB, free: 96.29 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003822/1.345, allocations: 67.91 kB / 0.7524 GB, free: 96.29 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002093/1.347, allocations: 40.12 kB / 0.7524 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001724/1.349, allocations: 1.465 MB / 0.7538 GB, free: 96.04 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06933/1.418, allocations: 60.32 MB / 0.8127 GB, free: 53.16 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005871/1.424, allocations: 5.349 MB / 0.818 GB, free: 48.17 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003895/1.428, allocations: 3.757 MB / 0.8216 GB, free: 44.73 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01618/1.444, allocations: 10.13 MB / 0.8315 GB, free: 35.84 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.587e-05/1.444, allocations: 64.5 kB / 0.8316 GB, free: 35.77 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=228): time 5.57e-06/1.444, allocations: 0 / 0.8316 GB, free: 35.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=270): time 0.05136/1.496, allocations: 23.06 MB / 0.8541 GB, free: 16.07 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/1.496, allocations: 214.6 kB / 0.8543 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005522/1.501, allocations: 3.712 MB / 0.8579 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006758/1.502, allocations: 25.7 kB / 0.858 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001588/1.504, allocations: 3.737 MB / 0.8616 GB, free: 8.418 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001088/1.505, allocations: 0.9828 MB / 0.8626 GB, free: 7.422 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000402/1.505, allocations: 0 / 0.8626 GB, free: 7.422 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002984/1.505, allocations: 0.6161 MB / 0.8632 GB, free: 6.801 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003663/1.509, allocations: 2.943 MB / 0.866 GB, free: 3.855 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006529/1.516, allocations: 7.154 MB / 0.873 GB, free: 10.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007041/1.523, allocations: 4.575 MB / 0.8775 GB, free: 6.02 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.102e-05/1.523, allocations: 47.91 kB / 0.8775 GB, free: 5.973 MB / 0.5105 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.02134/1.544, allocations: 10.48 MB / 0.8878 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/1.544, allocations: 8 kB / 0.8878 GB, free: 11.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000163/1.544, allocations: 148 kB / 0.8879 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004314/1.549, allocations: 1.579 MB / 0.8895 GB, free: 9.758 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006655/1.555, allocations: 1.68 MB / 0.8911 GB, free: 8.074 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1743/1.73, allocations: 10.29 MB / 0.9012 GB, free: 170.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005707/1.736, allocations: 238.1 kB / 0.9014 GB, free: 170.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001269/1.737, allocations: 448.5 kB / 0.9018 GB, free: 170.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 683 * Number of states: 0 () * Number of discrete variables: 59 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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],frameTorque2.torqueArrow.arrowLine.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceArrow.arrowLine.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueArrow.arrowLine.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceArrow.arrowLine.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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.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 (891): * Single equations (assignments): 886 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001342/1.738, allocations: 497.4 kB / 0.9023 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008231/1.739, allocations: 418.3 kB / 0.9027 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009585/1.749, allocations: 5.792 MB / 0.9083 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.889e-05/1.749, allocations: 27.62 kB / 0.9084 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.918e-05/1.749, allocations: 12.03 kB / 0.9084 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-05/1.749, allocations: 13.44 kB / 0.9084 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02225/1.771, allocations: 12.21 MB / 0.9203 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.922e-05/1.771, allocations: 3.469 kB / 0.9203 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002521/1.774, allocations: 417.5 kB / 0.9207 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003669/1.777, allocations: 1.314 MB / 0.922 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005153/1.778, allocations: 9.562 kB / 0.922 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01188/1.79, allocations: 9.641 MB / 0.9314 GB, free: 167.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/1.79, allocations: 3.844 kB / 0.9314 GB, free: 167.1 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01391/1.804, allocations: 9.714 MB / 0.9409 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01676/1.821, allocations: 13.56 MB / 0.9542 GB, free: 160.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/1.822, allocations: 441.5 kB / 0.9546 GB, free: 159.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008466/1.822, allocations: 3.688 kB / 0.9546 GB, free: 159.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002157/1.825, allocations: 112 kB / 0.9547 GB, free: 159.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003479/1.825, allocations: 121.3 kB / 0.9548 GB, free: 159.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00024/1.825, allocations: 69.81 kB / 0.9549 GB, free: 159.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003475/1.829, allocations: 2.492 MB / 0.9573 GB, free: 158.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0071/1.836, allocations: 1.225 MB / 0.9585 GB, free: 158.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 207 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.0006876/1.837, allocations: 148.3 kB / 0.9586 GB, free: 158.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01068/1.847, allocations: 7.354 MB / 0.9658 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.847, allocations: 0 / 0.9658 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004544/1.852, allocations: 2.968 MB / 0.9687 GB, free: 155.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00274/1.855, allocations: 493.5 kB / 0.9692 GB, free: 155.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02522/1.88, allocations: 11.38 MB / 0.9803 GB, free: 151.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008668/1.889, allocations: 4.82 MB / 0.985 GB, free: 148.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.062e-06/1.889, allocations: 0 / 0.985 GB, free: 148.4 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1)