Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.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.ForcesAndTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForcesAndTorques",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.0009671/0.0009671, allocations: 169 kB / 8.513 MB, free: 1.852 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.159/1.159, allocations: 221.4 MB / 230.3 MB, free: 7.699 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.0009673/0.0009672, allocations: 90.22 kB / 281.2 MB, free: 5.508 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.1615/0.1615, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1845/0.346, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09783/0.4438, allocations: 61.92 MB / 0.4942 GB, free: 1.5 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2703/0.7141, allocations: 110.1 MB / 0.6017 GB, free: 2.586 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000173/0.7143, allocations: 79.23 kB / 0.6018 GB, free: 2.512 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: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.5144/1.229, allocations: 140.2 MB / 0.7387 GB, free: 84.23 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/1.229, allocations: 13.97 kB / 0.7387 GB, free: 84.23 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02469/1.254, allocations: 6.813 MB / 0.7454 GB, free: 83.72 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0162/1.27, allocations: 7.355 MB / 0.7525 GB, free: 82.78 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/1.27, allocations: 229.3 kB / 0.7528 GB, free: 82.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001379/1.271, allocations: 426 kB / 0.7532 GB, free: 82.77 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01397/1.285, allocations: 10.17 MB / 0.7631 GB, free: 82.74 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02199/1.307, allocations: 15.32 MB / 0.7781 GB, free: 78.57 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002544/1.308, allocations: 95.09 kB / 0.7782 GB, free: 78.52 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008133/1.308, allocations: 42.75 kB / 0.7782 GB, free: 78.52 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002147/1.311, allocations: 1.74 MB / 0.7799 GB, free: 78.19 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06531/1.376, allocations: 74.5 MB / 0.8526 GB, free: 5.984 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005754/1.382, allocations: 6.337 MB / 0.8588 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0044/1.386, allocations: 4.122 MB / 0.8629 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01595/1.402, allocations: 11.25 MB / 0.8738 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/1.402, allocations: 64.28 kB / 0.8739 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=250): time 5.04e-06/1.402, allocations: 0 / 0.8739 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=292): time 0.05434/1.457, allocations: 26.8 MB / 0.9001 GB, free: 4.77 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.296e-05/1.457, allocations: 235.6 kB / 0.9003 GB, free: 4.492 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1715/1.628, allocations: 4.842 MB / 0.905 GB, free: 197.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006439/1.629, allocations: 28.38 kB / 0.9051 GB, free: 197.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.002425/1.631, allocations: 4.583 MB / 0.9095 GB, free: 195.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001088/1.632, allocations: 1.082 MB / 0.9106 GB, free: 195.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005164/1.633, allocations: 0 / 0.9106 GB, free: 195.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003443/1.633, allocations: 0.698 MB / 0.9113 GB, free: 195 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004059/1.637, allocations: 3.393 MB / 0.9146 GB, free: 195 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005826/1.643, allocations: 8.743 MB / 0.9231 GB, free: 188 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006862/1.65, allocations: 5.418 MB / 0.9284 GB, free: 188 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.894e-05/1.65, allocations: 56.72 kB / 0.9285 GB, free: 188 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1192) (initialization): time 0.01889/1.669, allocations: 12.23 MB / 0.9404 GB, free: 187.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/1.669, allocations: 8.969 kB / 0.9404 GB, free: 187.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002045/1.669, allocations: 191.1 kB / 0.9406 GB, free: 187.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003812/1.673, allocations: 1.631 MB / 0.9422 GB, free: 187.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006744/1.68, allocations: 2.154 MB / 0.9443 GB, free: 186.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/1.692, allocations: 10.38 MB / 0.9544 GB, free: 182.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00657/1.698, allocations: 291.6 kB / 0.9547 GB, free: 182.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008672/1.699, allocations: 0.5522 MB / 0.9553 GB, free: 182.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 871 * Number of states: 0 () * Number of discrete variables: 83 (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],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque2.torqueArrow.headAtOrigin,forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque2.forceArrow.headAtOrigin,forceAndTorque2.forceArrow.color[3],forceAndTorque2.forceArrow.color[2],forceAndTorque2.forceArrow.color[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[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.forceArrow.color[3],forceAndTorque1.forceArrow.color[2],forceAndTorque1.forceArrow.color[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[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.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 (1120): * Single equations (assignments): 1115 * 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.0012/1.701, allocations: 0.5903 MB / 0.9558 GB, free: 181.6 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006813/1.701, allocations: 0.5047 MB / 0.9563 GB, free: 181.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009192/1.71, allocations: 6.177 MB / 0.9624 GB, free: 179.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.962e-05/1.711, allocations: 26.22 kB / 0.9624 GB, free: 179.3 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/1.711, allocations: 15.16 kB / 0.9624 GB, free: 179.3 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.273e-05/1.711, allocations: 12.23 kB / 0.9624 GB, free: 179.3 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02062/1.731, allocations: 13.22 MB / 0.9753 GB, free: 174.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.737e-05/1.731, allocations: 0 / 0.9753 GB, free: 174.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002797/1.734, allocations: 0.5057 MB / 0.9758 GB, free: 174.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003529/1.738, allocations: 1.314 MB / 0.9771 GB, free: 174.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003205/1.738, allocations: 18.25 kB / 0.9771 GB, free: 174.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/1.751, allocations: 9.648 MB / 0.9865 GB, free: 169.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/1.751, allocations: 5 kB / 0.9865 GB, free: 169.3 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01304/1.764, allocations: 10.43 MB / 0.9967 GB, free: 161.2 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01577/1.779, allocations: 14.49 MB / 1.011 GB, free: 148.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/1.781, allocations: 0.5219 MB / 1.011 GB, free: 147.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007466/1.781, allocations: 9.547 kB / 1.011 GB, free: 147.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00215/1.783, allocations: 97.02 kB / 1.011 GB, free: 147.7 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003533/1.784, allocations: 126.3 kB / 1.012 GB, free: 147.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002273/1.784, allocations: 72 kB / 1.012 GB, free: 147.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.003977/1.788, allocations: 3.266 MB / 1.015 GB, free: 144.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006748/1.795, allocations: 1.419 MB / 1.016 GB, free: 143.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (234): * Single equations (assignments): 229 * 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.0004434/1.795, allocations: 153 kB / 1.016 GB, free: 143.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01027/1.806, allocations: 8.351 MB / 1.025 GB, free: 135.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/1.806, allocations: 5.625 kB / 1.025 GB, free: 135.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004166/1.81, allocations: 3.107 MB / 1.028 GB, free: 132.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002513/1.812, allocations: 0.5688 MB / 1.028 GB, free: 132.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02051/1.833, allocations: 13.2 MB / 1.041 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006188/1.839, allocations: 5.595 MB / 1.047 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of SimCode: time 9.32e-07/1.839, allocations: 0 / 1.047 GB, free: 116.3 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForcesAndTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForcesAndTorques.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe 2>&1)