Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.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.WorldTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques",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.001006/0.001006, allocations: 185.2 kB / 8.52 MB, free: 1.824 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.174/1.174, allocations: 221.4 MB / 230.3 MB, free: 7.645 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.0009204/0.0009204, allocations: 92.67 kB / 281.2 MB, free: 5.441 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.1673/0.1673, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.178/0.3453, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09193/0.4372, allocations: 61.9 MB / 0.4942 GB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2633/0.7006, allocations: 106.3 MB / 0.598 GB, free: 6.441 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.7008, allocations: 79.95 kB / 0.598 GB, free: 6.363 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: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.5022/1.203, allocations: 135 MB / 0.7298 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/1.203, allocations: 11.12 kB / 0.7298 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03408/1.237, allocations: 9.018 MB / 0.7387 GB, free: 99.74 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01898/1.256, allocations: 8.189 MB / 0.7467 GB, free: 98.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003005/1.257, allocations: 208.2 kB / 0.7469 GB, free: 98.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002306/1.259, allocations: 392.3 kB / 0.7472 GB, free: 98.78 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01411/1.273, allocations: 8.756 MB / 0.7558 GB, free: 98.59 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02379/1.297, allocations: 13.59 MB / 0.7691 GB, free: 91.33 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005003/1.297, allocations: 98.28 kB / 0.7691 GB, free: 91.32 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002108/1.299, allocations: 41.5 kB / 0.7692 GB, free: 91.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00192/1.301, allocations: 1.449 MB / 0.7706 GB, free: 91.07 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06397/1.365, allocations: 66.61 MB / 0.8356 GB, free: 34.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004965/1.37, allocations: 4.406 MB / 0.8399 GB, free: 30.6 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003168/1.374, allocations: 2.948 MB / 0.8428 GB, free: 27.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01279/1.386, allocations: 8.525 MB / 0.8512 GB, free: 19.27 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/1.386, allocations: 63.06 kB / 0.8512 GB, free: 19.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=180): time 5.4e-06/1.386, allocations: 0 / 0.8512 GB, free: 19.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=201): time 0.03925/1.426, allocations: 21.12 MB / 0.8718 GB, free: 13.89 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.833e-05/1.426, allocations: 252.5 kB / 0.8721 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008097/1.434, allocations: 4.731 MB / 0.8767 GB, free: 8.875 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003734/1.434, allocations: 25.7 kB / 0.8767 GB, free: 8.844 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002656/1.437, allocations: 4.253 MB / 0.8809 GB, free: 4.531 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009697/1.438, allocations: 0.7946 MB / 0.8817 GB, free: 3.727 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003018/1.438, allocations: 4 kB / 0.8817 GB, free: 3.723 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004081/1.439, allocations: 0.6368 MB / 0.8823 GB, free: 3.078 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003378/1.442, allocations: 2.366 MB / 0.8846 GB, free: 0.707 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006127/1.448, allocations: 7.392 MB / 0.8918 GB, free: 6.766 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005416/1.454, allocations: 4.181 MB / 0.8959 GB, free: 2.582 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.084e-05/1.454, allocations: 56 kB / 0.8959 GB, free: 2.527 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1032) (initialization): time 0.1553/1.609, allocations: 9.089 MB / 0.9048 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/1.609, allocations: 5.031 kB / 0.9048 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001368/1.609, allocations: 179.4 kB / 0.905 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001755/1.611, allocations: 0.8234 MB / 0.9058 GB, free: 171 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005398/1.616, allocations: 1.805 MB / 0.9076 GB, free: 171 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007698/1.624, allocations: 8.039 MB / 0.9154 GB, free: 167.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005858/1.63, allocations: 248 kB / 0.9157 GB, free: 167.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009801/1.631, allocations: 499 kB / 0.9161 GB, free: 167.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (966): * Single equations (assignments): 960 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008822/1.632, allocations: 0.5554 MB / 0.9167 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006825/1.633, allocations: 483.8 kB / 0.9171 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005196/1.638, allocations: 3.284 MB / 0.9203 GB, free: 167 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.295e-05/1.638, allocations: 22 kB / 0.9204 GB, free: 167 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/1.638, allocations: 7.969 kB / 0.9204 GB, free: 167 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.877e-05/1.638, allocations: 10.84 kB / 0.9204 GB, free: 167 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01366/1.652, allocations: 8.217 MB / 0.9284 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/1.652, allocations: 2.938 kB / 0.9284 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/1.653, allocations: 301.9 kB / 0.9287 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/1.655, allocations: 0.5163 MB / 0.9292 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/1.655, allocations: 14.81 kB / 0.9292 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006528/1.662, allocations: 7.146 MB / 0.9362 GB, free: 162.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.662, allocations: 2.469 kB / 0.9362 GB, free: 162.8 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007217/1.669, allocations: 6.085 MB / 0.9421 GB, free: 162.1 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008853/1.678, allocations: 8.531 MB / 0.9505 GB, free: 159 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/1.679, allocations: 0.4942 MB / 0.9509 GB, free: 158.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006896/1.679, allocations: 6.875 kB / 0.951 GB, free: 158.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/1.681, allocations: 70.27 kB / 0.951 GB, free: 158.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000249/1.682, allocations: 97.59 kB / 0.9511 GB, free: 158.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/1.682, allocations: 51.66 kB / 0.9512 GB, free: 158.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004343/1.686, allocations: 3.215 MB / 0.9543 GB, free: 157.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006957/1.693, allocations: 1.192 MB / 0.9555 GB, free: 157.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 144 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.0004974/1.694, allocations: 147.2 kB / 0.9556 GB, free: 157.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007698/1.701, allocations: 5.917 MB / 0.9614 GB, free: 155.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/1.701, allocations: 4 kB / 0.9614 GB, free: 155.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002088/1.703, allocations: 1.864 MB / 0.9632 GB, free: 154.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002904/1.706, allocations: 0.5998 MB / 0.9638 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02038/1.727, allocations: 10.91 MB / 0.9745 GB, free: 150.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006802/1.733, allocations: 5.158 MB / 0.9795 GB, free: 146.4 MB / 0.5261 GB Notification: Performance of SimCode: time 8.62e-07/1.734, allocations: 0 / 0.9795 GB, free: 146.4 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1)