Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 183.4 kB / 7.804 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.248/1.248, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 86.2 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2038/0.2038, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2248/0.4287, allocations: 64.96 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.767, allocations: 58.84 MB / 476.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1595/0.9266, allocations: 109.4 MB / 0.5723 GB, free: 5.465 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003679/0.927, allocations: 71.14 kB / 0.5724 GB, free: 5.398 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: 2763 * Number of variables: 2763 Notification: Performance of Generate backend data structure: time 0.6686/1.596, allocations: 151.8 MB / 0.7206 GB, free: 86 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/1.596, allocations: 15.94 kB / 0.7206 GB, free: 85.98 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03044/1.626, allocations: 6.938 MB / 0.7274 GB, free: 79.02 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0235/1.65, allocations: 7.976 MB / 0.7352 GB, free: 71.04 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005416/1.65, allocations: 252 kB / 0.7354 GB, free: 70.79 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004581/1.655, allocations: 471.8 kB / 0.7359 GB, free: 70.33 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02406/1.679, allocations: 11.3 MB / 0.7469 GB, free: 59.03 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.043/1.722, allocations: 16.76 MB / 0.7633 GB, free: 40.78 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007091/1.723, allocations: 87.12 kB / 0.7634 GB, free: 40.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00487/1.728, allocations: 47.94 kB / 0.7634 GB, free: 40.65 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003003/1.731, allocations: 1.953 MB / 0.7653 GB, free: 38.7 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.373/2.104, allocations: 79.12 MB / 0.8426 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008975/2.113, allocations: 7.079 MB / 0.8495 GB, free: 112 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00596/2.119, allocations: 4.694 MB / 0.8541 GB, free: 112 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0246/2.143, allocations: 13.21 MB / 0.867 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.695e-05/2.144, allocations: 71.89 kB / 0.867 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=310): time 1.076e-05/2.144, allocations: 0 / 0.867 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=352): time 0.06394/2.208, allocations: 29.43 MB / 0.8958 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.336e-05/2.208, allocations: 245.6 kB / 0.896 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01045/2.218, allocations: 5.212 MB / 0.9011 GB, free: 99.61 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001209/2.219, allocations: 26.83 kB / 0.9011 GB, free: 99.58 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004307/2.224, allocations: 5.031 MB / 0.906 GB, free: 95.73 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00243/2.226, allocations: 1.288 MB / 0.9073 GB, free: 94.78 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009883/2.227, allocations: 0 / 0.9073 GB, free: 94.78 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006299/2.228, allocations: 0.7388 MB / 0.908 GB, free: 94.29 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007988/2.236, allocations: 3.99 MB / 0.9119 GB, free: 92.89 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01012/2.246, allocations: 9.776 MB / 0.9215 GB, free: 83.72 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009405/2.255, allocations: 6.21 MB / 0.9275 GB, free: 81.85 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001941/2.256, allocations: 58.84 kB / 0.9276 GB, free: 81.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1336) (initialization): time 0.03044/2.286, allocations: 13.87 MB / 0.9411 GB, free: 72.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/2.286, allocations: 4 kB / 0.9411 GB, free: 72.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005284/2.287, allocations: 208 kB / 0.9413 GB, free: 72.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004087/2.291, allocations: 1.647 MB / 0.9429 GB, free: 71.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009701/2.3, allocations: 2.428 MB / 0.9453 GB, free: 69.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01278/2.313, allocations: 10.42 MB / 0.9555 GB, free: 59.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01018/2.324, allocations: 333.7 kB / 0.9558 GB, free: 59.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002555/2.326, allocations: 0.6029 MB / 0.9564 GB, free: 59.11 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 937 * Number of states: 0 () * Number of discrete variables: 69 (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.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[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 (1264): * Single equations (assignments): 1259 * 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.002134/2.328, allocations: 0.6213 MB / 0.957 GB, free: 58.49 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001582/2.33, allocations: 0.5437 MB / 0.9575 GB, free: 57.94 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01135/2.341, allocations: 7.305 MB / 0.9647 GB, free: 51.95 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.221e-05/2.341, allocations: 32 kB / 0.9647 GB, free: 51.92 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.093e-05/2.341, allocations: 8 kB / 0.9647 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.629e-05/2.341, allocations: 19.33 kB / 0.9647 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03271/2.374, allocations: 15.31 MB / 0.9797 GB, free: 39.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.538e-05/2.374, allocations: 0 / 0.9797 GB, free: 39.47 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004129/2.378, allocations: 0.6234 MB / 0.9803 GB, free: 38.97 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004257/2.383, allocations: 1.322 MB / 0.9816 GB, free: 38 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009932/2.384, allocations: 14.25 kB / 0.9816 GB, free: 37.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/2.395, allocations: 9.659 MB / 0.991 GB, free: 29.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/2.396, allocations: 0 / 0.991 GB, free: 29.27 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01668/2.412, allocations: 12.28 MB / 1.003 GB, free: 18.42 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02234/2.435, allocations: 17.16 MB / 1.02 GB, free: 1.668 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004116/2.439, allocations: 1.146 MB / 1.021 GB, free: 0.4961 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001663/2.44, allocations: 4 kB / 1.021 GB, free: 0.4922 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002994/2.443, allocations: 123.8 kB / 1.021 GB, free: 380 kB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004181/2.444, allocations: 158.4 kB / 1.021 GB, free: 220 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002901/2.444, allocations: 86.66 kB / 1.021 GB, free: 136 kB / 0.4948 GB Notification: Performance of sort global known variables: time 0.2448/2.689, allocations: 3.513 MB / 1.025 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01429/2.703, allocations: 1.589 MB / 1.026 GB, free: 142.3 MB / 0.4948 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 (296): * Single equations (assignments): 291 * 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.001161/2.705, allocations: 160 kB / 1.026 GB, free: 142.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01614/2.721, allocations: 9.706 MB / 1.036 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/2.721, allocations: 3.938 kB / 1.036 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006055/2.727, allocations: 3.683 MB / 1.039 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004082/2.731, allocations: 0.5327 MB / 1.04 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03255/2.764, allocations: 14.83 MB / 1.054 GB, free: 139.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009135/2.773, allocations: 6.096 MB / 1.06 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.102e-06/2.773, allocations: 0 / 1.06 GB, free: 138.3 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForcesAndTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForcesAndTorques.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe 2>&1)