Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.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.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",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.001161/0.001161, allocations: 174.8 kB / 8.518 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.198/1.198, 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.0009545/0.0009545, allocations: 86.48 kB / 281.2 MB, free: 5.48 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.1672/0.1672, allocations: 44.14 MB / 376.1 MB, free: 3.121 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2024/0.3697, allocations: 68.03 MB / 444.1 MB, free: 15.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.4712, allocations: 61.91 MB / 0.4942 GB, free: 1.402 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2941/0.7653, allocations: 107.2 MB / 0.5989 GB, free: 5.258 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.7656, allocations: 75.95 kB / 0.599 GB, free: 5.184 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: 2137 * Number of variables: 2137 Notification: Performance of Generate backend data structure: time 0.512/1.278, allocations: 124 MB / 0.7201 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/1.278, allocations: 11.19 kB / 0.7201 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02619/1.304, allocations: 6.63 MB / 0.7265 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0176/1.322, allocations: 6.711 MB / 0.7331 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003812/1.322, allocations: 196.5 kB / 0.7333 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002674/1.325, allocations: 363.6 kB / 0.7336 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01536/1.34, allocations: 8.687 MB / 0.7421 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02558/1.366, allocations: 13.24 MB / 0.755 GB, free: 95.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004163/1.366, allocations: 88.5 kB / 0.7551 GB, free: 95.89 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002401/1.369, allocations: 39.25 kB / 0.7552 GB, free: 95.89 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001975/1.371, allocations: 1.45 MB / 0.7566 GB, free: 95.65 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06944/1.44, allocations: 63.61 MB / 0.8187 GB, free: 47.97 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005651/1.446, allocations: 5.163 MB / 0.8237 GB, free: 43.17 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003675/1.449, allocations: 3.547 MB / 0.8272 GB, free: 39.92 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0145/1.464, allocations: 9.019 MB / 0.836 GB, free: 32.19 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/1.464, allocations: 64.66 kB / 0.8361 GB, free: 32.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=212): time 6.552e-06/1.464, allocations: 0 / 0.8361 GB, free: 32.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=254): time 0.05508/1.519, allocations: 23.86 MB / 0.8594 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/1.519, allocations: 209.9 kB / 0.8596 GB, free: 10.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007193/1.527, allocations: 4.03 MB / 0.8635 GB, free: 6.277 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006716/1.527, allocations: 25.7 kB / 0.8635 GB, free: 6.246 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001988/1.529, allocations: 3.915 MB / 0.8674 GB, free: 2.273 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001416/1.531, allocations: 0.9406 MB / 0.8683 GB, free: 1.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001107/1.532, allocations: 3.938 kB / 0.8683 GB, free: 1.316 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006653/1.532, allocations: 0.6363 MB / 0.8689 GB, free: 0.6758 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005196/1.538, allocations: 3.096 MB / 0.8719 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00805/1.546, allocations: 7.65 MB / 0.8794 GB, free: 3.645 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007331/1.553, allocations: 4.826 MB / 0.8841 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001282/1.553, allocations: 48 kB / 0.8842 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02312/1.576, allocations: 11.02 MB / 0.8949 GB, free: 3.75 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/1.576, allocations: 8 kB / 0.8949 GB, free: 3.742 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003544/1.577, allocations: 163.9 kB / 0.8951 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004525/1.581, allocations: 1.59 MB / 0.8966 GB, free: 1.984 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00737/1.589, allocations: 1.821 MB / 0.8984 GB, free: 164 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1767/1.765, allocations: 10.32 MB / 0.9085 GB, free: 169.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006484/1.772, allocations: 256.7 kB / 0.9087 GB, free: 169.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001994/1.774, allocations: 472.8 kB / 0.9092 GB, free: 169.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 62 (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],fixed2.color[3],fixed2.color[2],fixed2.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 (936): * Single equations (assignments): 931 * 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.00256/1.777, allocations: 0.521 MB / 0.9097 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001364/1.778, allocations: 429.2 kB / 0.9101 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01149/1.79, allocations: 5.9 MB / 0.9159 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.739e-05/1.79, allocations: 23.03 kB / 0.9159 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-05/1.79, allocations: 13.16 kB / 0.9159 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.036e-05/1.79, allocations: 16.72 kB / 0.9159 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02477/1.815, allocations: 12.25 MB / 0.9279 GB, free: 168.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.708e-05/1.815, allocations: 2.625 kB / 0.9279 GB, free: 168.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002807/1.817, allocations: 448.4 kB / 0.9283 GB, free: 168.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003736/1.821, allocations: 1.316 MB / 0.9296 GB, free: 168.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004866/1.822, allocations: 5.188 kB / 0.9296 GB, free: 168.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01233/1.834, allocations: 9.653 MB / 0.939 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/1.834, allocations: 0 / 0.939 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01453/1.849, allocations: 9.895 MB / 0.9487 GB, free: 161.9 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01781/1.866, allocations: 13.84 MB / 0.9622 GB, free: 156.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/1.868, allocations: 464.1 kB / 0.9626 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001422/1.869, allocations: 3.609 kB / 0.9627 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002833/1.872, allocations: 126.6 kB / 0.9628 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005217/1.873, allocations: 110.2 kB / 0.9629 GB, free: 156.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003757/1.873, allocations: 62.09 kB / 0.9629 GB, free: 156.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.005303/1.878, allocations: 2.713 MB / 0.9656 GB, free: 155.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008881/1.887, allocations: 1.252 MB / 0.9668 GB, free: 155.1 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 (196): * Single equations (assignments): 191 * 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.0009175/1.888, allocations: 154.3 kB / 0.967 GB, free: 155.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0128/1.901, allocations: 7.658 MB / 0.9744 GB, free: 152.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.901, allocations: 0.6562 kB / 0.9744 GB, free: 152.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005784/1.907, allocations: 3.009 MB / 0.9774 GB, free: 151.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003275/1.91, allocations: 0.5007 MB / 0.9779 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02791/1.938, allocations: 11.59 MB / 0.9892 GB, free: 144 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008542/1.947, allocations: 4.893 MB / 0.994 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.021e-06/1.947, allocations: 0 / 0.994 GB, free: 140.3 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1)