Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.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.FrameTorques2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques2",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.001131/0.001131, allocations: 190.8 kB / 8.523 MB, free: 1.734 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.252/1.252, allocations: 221.4 MB / 230.3 MB, free: 7.75 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.0008688/0.0008689, allocations: 87.61 kB / 281.2 MB, free: 5.523 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.1663/0.1663, allocations: 44.15 MB / 376.1 MB, free: 3.121 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.187/0.3534, allocations: 68.04 MB / 444.1 MB, free: 15.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.4498, allocations: 61.9 MB / 0.4942 GB, free: 1.395 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2741/0.7239, allocations: 106.2 MB / 0.5979 GB, free: 6.324 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.7242, allocations: 71.97 kB / 0.5979 GB, free: 6.254 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: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.57/1.294, allocations: 158.7 MB / 0.7529 GB, free: 98.58 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/1.294, allocations: 11 kB / 0.7529 GB, free: 98.57 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04393/1.338, allocations: 11.51 MB / 0.7642 GB, free: 98 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02739/1.366, allocations: 10.06 MB / 0.774 GB, free: 94.62 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005232/1.366, allocations: 252.7 kB / 0.7742 GB, free: 94.62 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003286/1.37, allocations: 468.8 kB / 0.7747 GB, free: 94.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02141/1.391, allocations: 10.53 MB / 0.7849 GB, free: 90.61 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0292/1.42, allocations: 15.84 MB / 0.8004 GB, free: 73.37 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005051/1.421, allocations: 107 kB / 0.8005 GB, free: 73.26 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002668/1.423, allocations: 44 kB / 0.8006 GB, free: 73.22 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002112/1.426, allocations: 1.701 MB / 0.8022 GB, free: 71.51 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07697/1.503, allocations: 74.8 MB / 0.8753 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00734/1.51, allocations: 5.601 MB / 0.8807 GB, free: 5.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004909/1.515, allocations: 3.91 MB / 0.8846 GB, free: 1.578 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02098/1.536, allocations: 12.38 MB / 0.8966 GB, free: 4.766 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.264e-05/1.536, allocations: 59.94 kB / 0.8967 GB, free: 4.699 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=225): time 5.36e-06/1.536, allocations: 0 / 0.8967 GB, free: 4.699 MB / 0.5261 GB Notification: Performance of matching and sorting (n=253): time 0.3282/1.864, allocations: 27.73 MB / 0.9238 GB, free: 172.8 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.83e-05/1.864, allocations: 292.8 kB / 0.9241 GB, free: 172.4 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007003/1.871, allocations: 5.218 MB / 0.9292 GB, free: 172 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0004007/1.872, allocations: 29.45 kB / 0.9292 GB, free: 171.9 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002278/1.874, allocations: 4.804 MB / 0.9339 GB, free: 169.2 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001067/1.875, allocations: 0.9608 MB / 0.9348 GB, free: 168.6 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003184/1.875, allocations: 0 / 0.9348 GB, free: 168.6 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0003436/1.876, allocations: 0.6667 MB / 0.9355 GB, free: 168.3 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003387/1.879, allocations: 2.775 MB / 0.9382 GB, free: 168.3 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005102/1.884, allocations: 8.115 MB / 0.9461 GB, free: 161.3 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005588/1.89, allocations: 4.724 MB / 0.9507 GB, free: 160.5 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.463e-05/1.89, allocations: 56.92 kB / 0.9508 GB, free: 160.5 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.01626/1.906, allocations: 10.41 MB / 0.9609 GB, free: 157.6 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/1.906, allocations: 3.906 kB / 0.9609 GB, free: 157.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001595/1.907, allocations: 192.8 kB / 0.9611 GB, free: 157.6 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002308/1.909, allocations: 1.036 MB / 0.9621 GB, free: 157.4 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006403/1.915, allocations: 1.965 MB / 0.9641 GB, free: 157.1 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/1.925, allocations: 10.61 MB / 0.9744 GB, free: 149.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0071/1.932, allocations: 261.6 kB / 0.9747 GB, free: 149.8 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0016/1.934, allocations: 0.5295 MB / 0.9752 GB, free: 149.8 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 871 * Number of states: 0 () * Number of discrete variables: 74 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[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 (1052): * Single equations (assignments): 1045 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002171/1.936, allocations: 0.5857 MB / 0.9758 GB, free: 149.3 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/1.938, allocations: 0.5406 MB / 0.9763 GB, free: 149 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007926/1.946, allocations: 4.4 MB / 0.9806 GB, free: 147.5 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.753e-05/1.946, allocations: 23.25 kB / 0.9806 GB, free: 147.5 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.664e-05/1.946, allocations: 7.781 kB / 0.9806 GB, free: 147.5 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.942e-05/1.946, allocations: 15.69 kB / 0.9806 GB, free: 147.5 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02372/1.969, allocations: 10.72 MB / 0.9911 GB, free: 143.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.151e-05/1.969, allocations: 1.125 kB / 0.9911 GB, free: 143.8 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002338/1.972, allocations: 384.6 kB / 0.9915 GB, free: 143.5 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002067/1.974, allocations: 0.6989 MB / 0.9921 GB, free: 143 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003168/1.974, allocations: 7.328 kB / 0.9922 GB, free: 143 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008718/1.983, allocations: 9.511 MB / 1.001 GB, free: 133.8 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/1.983, allocations: 4 kB / 1.001 GB, free: 133.8 MB / 0.5262 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0101/1.993, allocations: 7.72 MB / 1.009 GB, free: 126.9 MB / 0.5262 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01245/2.006, allocations: 10.79 MB / 1.02 GB, free: 117.2 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001745/2.007, allocations: 0.5574 MB / 1.02 GB, free: 116.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001557/2.009, allocations: 0 / 1.02 GB, free: 116.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002828/2.012, allocations: 86.72 kB / 1.02 GB, free: 116.6 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003304/2.012, allocations: 114.9 kB / 1.02 GB, free: 116.5 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002162/2.012, allocations: 69.55 kB / 1.02 GB, free: 116.4 MB / 0.5262 GB Notification: Performance of sort global known variables: time 0.006581/2.019, allocations: 3.571 MB / 1.024 GB, free: 113.3 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.009886/2.029, allocations: 1.403 MB / 1.025 GB, free: 111.9 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (193): * Single equations (assignments): 186 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006782/2.03, allocations: 159.5 kB / 1.025 GB, free: 111.8 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.009959/2.04, allocations: 7.017 MB / 1.032 GB, free: 105.4 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/2.04, allocations: 0 / 1.032 GB, free: 105.4 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.003035/2.043, allocations: 2.418 MB / 1.035 GB, free: 103.2 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004341/2.047, allocations: 0.7324 MB / 1.035 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02816/2.075, allocations: 13.08 MB / 1.048 GB, free: 90.87 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01049/2.086, allocations: 5.984 MB / 1.054 GB, free: 86.41 MB / 0.5262 GB Notification: Performance of SimCode: time 9.22e-07/2.086, allocations: 0 / 1.054 GB, free: 86.41 MB / 0.5262 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1)