Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.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.Torque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2",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.001375/0.001375, allocations: 178.3 kB / 8.519 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.181/1.181, allocations: 221.4 MB / 230.3 MB, free: 7.648 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.0009268/0.0009268, allocations: 87.98 kB / 281.2 MB, free: 5.465 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.1657/0.1657, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2005/0.3663, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09986/0.4662, allocations: 61.91 MB / 0.4942 GB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2968/0.7631, allocations: 111.5 MB / 0.6031 GB, free: 1.152 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.7634, allocations: 80.61 kB / 0.6032 GB, free: 1.074 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: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.7746/1.538, allocations: 226.3 MB / 0.8242 GB, free: 36.47 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/1.538, allocations: 11.75 kB / 0.8242 GB, free: 36.47 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05007/1.588, allocations: 12.18 MB / 0.8361 GB, free: 28.15 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03284/1.621, allocations: 12.29 MB / 0.8481 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007129/1.622, allocations: 380 kB / 0.8485 GB, free: 15.51 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005461/1.627, allocations: 0.695 MB / 0.8492 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03134/1.659, allocations: 16.29 MB / 0.8651 GB, free: 14.53 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0567/1.715, allocations: 24.27 MB / 0.8888 GB, free: 4.137 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009298/1.716, allocations: 146.6 kB / 0.8889 GB, free: 3.992 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004526/1.721, allocations: 67.94 kB / 0.889 GB, free: 3.926 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003995/1.725, allocations: 2.697 MB / 0.8916 GB, free: 1.227 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4648/2.19, allocations: 116.5 MB / 1.005 GB, free: 84.9 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01123/2.201, allocations: 10.39 MB / 1.016 GB, free: 83.58 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008399/2.209, allocations: 7.306 MB / 1.023 GB, free: 80.96 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03121/2.241, allocations: 19.51 MB / 1.042 GB, free: 71.71 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.706e-05/2.241, allocations: 79.41 kB / 1.042 GB, free: 71.64 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=417): time 8.596e-06/2.241, allocations: 3.844 kB / 1.042 GB, free: 71.64 MB / 0.5418 GB Notification: Performance of matching and sorting (n=501): time 0.1166/2.357, allocations: 52.26 MB / 1.093 GB, free: 44.12 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/2.358, allocations: 367 kB / 1.093 GB, free: 43.7 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01337/2.371, allocations: 7.711 MB / 1.101 GB, free: 37.01 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.00136/2.372, allocations: 25.7 kB / 1.101 GB, free: 36.98 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.004276/2.377, allocations: 7.148 MB / 1.108 GB, free: 30.6 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.002942/2.38, allocations: 1.839 MB / 1.109 GB, free: 28.95 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002107/2.382, allocations: 3.938 kB / 1.11 GB, free: 28.95 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0009731/2.383, allocations: 0.8993 MB / 1.11 GB, free: 28.21 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009073/2.392, allocations: 5.661 MB / 1.116 GB, free: 23.14 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0129/2.405, allocations: 13.6 MB / 1.129 GB, free: 6.777 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2082/2.613, allocations: 8.795 MB / 1.138 GB, free: 133.2 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003271/2.613, allocations: 80.12 kB / 1.138 GB, free: 133.2 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1836) (initialization): time 0.0403/2.654, allocations: 20.17 MB / 1.158 GB, free: 132.6 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/2.654, allocations: 6.312 kB / 1.158 GB, free: 132.6 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000501/2.654, allocations: 283.3 kB / 1.158 GB, free: 132.6 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008645/2.663, allocations: 3.123 MB / 1.161 GB, free: 132.6 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01291/2.676, allocations: 3.293 MB / 1.164 GB, free: 132.3 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02721/2.703, allocations: 20.61 MB / 1.184 GB, free: 127.1 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01281/2.716, allocations: 461 kB / 1.185 GB, free: 127.1 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003638/2.72, allocations: 0.8278 MB / 1.185 GB, free: 127.1 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1288 * Number of states: 0 () * Number of discrete variables: 138 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 (1716): * Single equations (assignments): 1709 * 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 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005602/2.725, allocations: 0.8495 MB / 1.186 GB, free: 126.7 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00229/2.728, allocations: 0.8271 MB / 1.187 GB, free: 126.7 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02205/2.75, allocations: 11.67 MB / 1.199 GB, free: 126.5 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/2.75, allocations: 50.27 kB / 1.199 GB, free: 126.5 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.373e-05/2.75, allocations: 18.03 kB / 1.199 GB, free: 126.5 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.353e-05/2.75, allocations: 24.58 kB / 1.199 GB, free: 126.5 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05056/2.801, allocations: 24.09 MB / 1.222 GB, free: 121.6 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-05/2.801, allocations: 0 / 1.222 GB, free: 121.6 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005571/2.806, allocations: 0.8573 MB / 1.223 GB, free: 121.6 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00762/2.814, allocations: 2.632 MB / 1.226 GB, free: 121 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001326/2.815, allocations: 13.92 kB / 1.226 GB, free: 121 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0254/2.841, allocations: 19.25 MB / 1.244 GB, free: 111.1 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/2.841, allocations: 3.938 kB / 1.244 GB, free: 111.1 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03188/2.873, allocations: 18.77 MB / 1.263 GB, free: 99.13 MB / 0.5418 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04155/2.914, allocations: 25.78 MB / 1.288 GB, free: 76.36 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002748/2.917, allocations: 0.812 MB / 1.289 GB, free: 75.55 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003551/2.921, allocations: 14.03 kB / 1.289 GB, free: 75.54 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006615/2.927, allocations: 176 kB / 1.289 GB, free: 75.44 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001651/2.929, allocations: 229.9 kB / 1.289 GB, free: 75.3 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001321/2.93, allocations: 122 kB / 1.289 GB, free: 75.19 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.0112/2.942, allocations: 5.23 MB / 1.294 GB, free: 70.67 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01797/2.96, allocations: 2.368 MB / 1.297 GB, free: 68.31 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (409): * Single equations (assignments): 402 * 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 {(4,75.0%) 18,(4,75.0%) 18,(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.001694/2.961, allocations: 180.9 kB / 1.297 GB, free: 68.15 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.02439/2.986, allocations: 14.15 MB / 1.311 GB, free: 55.46 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/2.986, allocations: 0 / 1.311 GB, free: 55.46 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01074/2.997, allocations: 5.697 MB / 1.316 GB, free: 50.34 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007771/3.004, allocations: 0.9726 MB / 1.317 GB, free: 49.54 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2554/3.26, allocations: 22.49 MB / 1.339 GB, free: 135.4 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01905/3.279, allocations: 8.804 MB / 1.348 GB, free: 134.4 MB / 0.5418 GB Notification: Performance of SimCode: time 7.92e-07/3.279, allocations: 1.562 kB / 1.348 GB, free: 134.4 MB / 0.5418 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1)