Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque3",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.001631/0.001631, allocations: 184 kB / 8.527 MB, free: 1.844 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.206/1.206, allocations: 221.4 MB / 230.3 MB, free: 7.609 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.0009147/0.0009147, allocations: 89.84 kB / 281.2 MB, free: 5.434 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.1652/0.1652, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1953/0.3605, allocations: 68.04 MB / 444.1 MB, free: 15.49 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.461, allocations: 61.9 MB / 0.4942 GB, free: 1.508 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2931/0.7541, allocations: 110 MB / 0.6016 GB, free: 2.703 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.7545, allocations: 75.97 kB / 0.6017 GB, free: 2.629 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: 3739 * Number of variables: 3739 Notification: Performance of Generate backend data structure: time 0.6737/1.428, allocations: 209.1 MB / 0.8058 GB, free: 71.72 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/1.428, allocations: 11.94 kB / 0.8059 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04692/1.475, allocations: 12 MB / 0.8176 GB, free: 59.67 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0271/1.502, allocations: 11.57 MB / 0.8289 GB, free: 48.13 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005048/1.503, allocations: 360 kB / 0.8292 GB, free: 47.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005364/1.508, allocations: 0.6442 MB / 0.8298 GB, free: 47.13 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02665/1.535, allocations: 15.45 MB / 0.8449 GB, free: 31.68 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04341/1.578, allocations: 22.69 MB / 0.8671 GB, free: 7.105 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007013/1.579, allocations: 130.8 kB / 0.8672 GB, free: 6.977 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003725/1.583, allocations: 59.91 kB / 0.8673 GB, free: 6.918 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003105/1.586, allocations: 2.517 MB / 0.8697 GB, free: 4.402 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4075/1.993, allocations: 105.2 MB / 0.9724 GB, free: 76.14 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01061/2.004, allocations: 10.25 MB / 0.9824 GB, free: 74.65 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0073/2.011, allocations: 7.25 MB / 0.9895 GB, free: 71.66 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02856/2.04, allocations: 20.8 MB / 1.01 GB, free: 60.99 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/2.04, allocations: 82.03 kB / 1.01 GB, free: 60.93 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=413): time 7.544e-06/2.04, allocations: 0 / 1.01 GB, free: 60.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=499): time 0.09651/2.137, allocations: 47.25 MB / 1.056 GB, free: 36.68 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.307e-05/2.137, allocations: 313 kB / 1.056 GB, free: 36.31 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008959/2.146, allocations: 6.711 MB / 1.063 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001125/2.147, allocations: 25.7 kB / 1.063 GB, free: 30.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002742/2.15, allocations: 6.484 MB / 1.069 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002172/2.152, allocations: 1.799 MB / 1.071 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007346/2.153, allocations: 0 / 1.071 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005236/2.153, allocations: 0.847 MB / 1.072 GB, free: 22.29 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006674/2.16, allocations: 5.419 MB / 1.077 GB, free: 17.44 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009734/2.17, allocations: 12.51 MB / 1.089 GB, free: 2.504 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1929/2.363, allocations: 8.691 MB / 1.098 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001511/2.363, allocations: 70.59 kB / 1.098 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1676) (initialization): time 0.033/2.396, allocations: 19.07 MB / 1.117 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/2.396, allocations: 8.688 kB / 1.117 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002395/2.396, allocations: 250.4 kB / 1.117 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007791/2.404, allocations: 3.078 MB / 1.12 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01177/2.416, allocations: 3.024 MB / 1.123 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02408/2.44, allocations: 20.4 MB / 1.143 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01082/2.451, allocations: 424.8 kB / 1.143 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002926/2.454, allocations: 0.7459 MB / 1.144 GB, free: 114.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1146 * Number of states: 0 () * Number of discrete variables: 126 (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],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],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],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 (1556): * Single equations (assignments): 1549 * 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.003136/2.457, allocations: 0.7726 MB / 1.145 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001691/2.458, allocations: 0.7353 MB / 1.145 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01892/2.477, allocations: 11.6 MB / 1.157 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.749e-05/2.478, allocations: 50.03 kB / 1.157 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-05/2.478, allocations: 16.19 kB / 1.157 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.926e-05/2.478, allocations: 26.38 kB / 1.157 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04417/2.522, allocations: 23.6 MB / 1.18 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-05/2.522, allocations: 2.938 kB / 1.18 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00525/2.527, allocations: 0.8791 MB / 1.181 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007166/2.534, allocations: 2.626 MB / 1.183 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006895/2.535, allocations: 8.844 kB / 1.183 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02375/2.559, allocations: 19.26 MB / 1.202 GB, free: 91.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/2.559, allocations: 7.844 kB / 1.202 GB, free: 91.55 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02525/2.584, allocations: 18.39 MB / 1.22 GB, free: 75.48 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03111/2.615, allocations: 25.42 MB / 1.245 GB, free: 53.07 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002116/2.617, allocations: 0.7354 MB / 1.245 GB, free: 52.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002104/2.62, allocations: 4 kB / 1.245 GB, free: 52.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004541/2.624, allocations: 228.3 kB / 1.246 GB, free: 52.19 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007716/2.625, allocations: 230.2 kB / 1.246 GB, free: 52.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004399/2.625, allocations: 120 kB / 1.246 GB, free: 51.94 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.007145/2.632, allocations: 4.538 MB / 1.25 GB, free: 47.99 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01337/2.646, allocations: 2.23 MB / 1.253 GB, free: 45.77 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.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 (407): * Single equations (assignments): 400 * 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.001035/2.647, allocations: 178.9 kB / 1.253 GB, free: 45.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0195/2.666, allocations: 13.56 MB / 1.266 GB, free: 33.36 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/2.667, allocations: 4 kB / 1.266 GB, free: 33.36 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.1943/2.861, allocations: 5.752 MB / 1.272 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005096/2.866, allocations: 0.8792 MB / 1.273 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0407/2.907, allocations: 21.11 MB / 1.293 GB, free: 121 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01199/2.919, allocations: 8.173 MB / 1.301 GB, free: 120 MB / 0.5105 GB Notification: Performance of SimCode: time 7.71e-07/2.919, allocations: 0 / 1.301 GB, free: 120 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1)