Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001275/0.001275, allocations: 185.5 kB / 7.8 MB, free: 2.504 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.287/1.287, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.0009095/0.0009096, allocations: 90.58 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.1971/0.1971, allocations: 43.5 MB / 352.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.207/0.4041, allocations: 64.97 MB / 417.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.774, allocations: 58.84 MB / 476.7 MB, free: 5.281 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1823/0.9564, allocations: 109.3 MB / 0.5722 GB, free: 5.652 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.9568, allocations: 75.95 kB / 0.5723 GB, free: 5.578 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: 4187 * Number of variables: 4187 Notification: Performance of Generate backend data structure: time 0.9642/1.921, allocations: 228.8 MB / 0.7957 GB, free: 9.641 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.24e-05/1.921, allocations: 11.94 kB / 0.7958 GB, free: 9.629 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05351/1.975, allocations: 12.21 MB / 0.8077 GB, free: 13.38 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03985/2.015, allocations: 12.68 MB / 0.8201 GB, free: 0.6172 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009996/2.016, allocations: 392 kB / 0.8204 GB, free: 240 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.4526/2.468, allocations: 0.6989 MB / 0.8211 GB, free: 97.12 MB / 490.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04113/2.509, allocations: 17.28 MB / 0.838 GB, free: 97.05 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06948/2.579, allocations: 24.98 MB / 0.8624 GB, free: 91.71 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009049/2.58, allocations: 138.4 kB / 0.8625 GB, free: 91.71 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006837/2.587, allocations: 61.11 kB / 0.8626 GB, free: 91.71 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005675/2.592, allocations: 2.863 MB / 0.8654 GB, free: 91.69 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1752/2.768, allocations: 112.8 MB / 0.9755 GB, free: 22.51 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01473/2.783, allocations: 11.43 MB / 0.9867 GB, free: 14.79 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01122/2.794, allocations: 8.164 MB / 0.9947 GB, free: 7.305 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3345/3.128, allocations: 23.09 MB / 1.017 GB, free: 92.62 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.977e-05/3.128, allocations: 100.1 kB / 1.017 GB, free: 92.58 MB / 490.8 MB Notification: Performance of pre-optimization done (n=524): time 9.037e-06/3.128, allocations: 0 / 1.017 GB, free: 92.58 MB / 490.8 MB Notification: Performance of matching and sorting (n=609): time 0.119/3.247, allocations: 51.65 MB / 1.068 GB, free: 85.14 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/3.248, allocations: 318 kB / 1.068 GB, free: 84.82 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01818/3.266, allocations: 7.214 MB / 1.075 GB, free: 84.19 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002089/3.268, allocations: 29.48 kB / 1.075 GB, free: 84.16 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0064/3.274, allocations: 7.164 MB / 1.082 GB, free: 79.88 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00429/3.279, allocations: 2.162 MB / 1.084 GB, free: 78.55 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002287/3.281, allocations: 0 / 1.084 GB, free: 78.55 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001022/3.282, allocations: 0.923 MB / 1.085 GB, free: 78.22 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01107/3.293, allocations: 6.354 MB / 1.091 GB, free: 76.12 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01745/3.311, allocations: 14.17 MB / 1.105 GB, free: 63.41 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01484/3.326, allocations: 9.421 MB / 1.114 GB, free: 60.47 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003304/3.326, allocations: 83.62 kB / 1.114 GB, free: 60.47 MB / 490.8 MB Notification: Performance of matching and sorting (n=1907) (initialization): time 0.04767/3.374, allocations: 21.62 MB / 1.136 GB, free: 45.93 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/3.374, allocations: 8 kB / 1.136 GB, free: 45.92 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001054/3.375, allocations: 272 kB / 1.136 GB, free: 45.65 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009111/3.384, allocations: 3.116 MB / 1.139 GB, free: 43.26 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01566/3.4, allocations: 3.475 MB / 1.142 GB, free: 40.3 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02746/3.427, allocations: 20.68 MB / 1.162 GB, free: 21.71 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01665/3.444, allocations: 484.9 kB / 1.163 GB, free: 21.32 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005328/3.449, allocations: 0.8373 MB / 1.164 GB, free: 20.53 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1258 * Number of states: 0 () * Number of discrete variables: 108 (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.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[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.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],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 (1787): * Single equations (assignments): 1780 * 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.008506/3.458, allocations: 0.8215 MB / 1.165 GB, free: 19.7 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005117/3.463, allocations: 0.8138 MB / 1.165 GB, free: 18.87 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3095/3.772, allocations: 13.56 MB / 1.179 GB, free: 76.28 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001418/3.773, allocations: 61.47 kB / 1.179 GB, free: 76.28 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.963e-05/3.773, allocations: 21.53 kB / 1.179 GB, free: 76.28 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001391/3.773, allocations: 29.33 kB / 1.179 GB, free: 76.28 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06149/3.834, allocations: 27.18 MB / 1.205 GB, free: 75.4 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.659e-05/3.834, allocations: 10.42 kB / 1.205 GB, free: 75.4 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007347/3.842, allocations: 1.084 MB / 1.206 GB, free: 75.4 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007586/3.849, allocations: 2.631 MB / 1.209 GB, free: 75.36 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001701/3.851, allocations: 22.98 kB / 1.209 GB, free: 75.36 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02422/3.875, allocations: 19.23 MB / 1.228 GB, free: 70.31 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/3.875, allocations: 10.22 kB / 1.228 GB, free: 70.31 MB / 490.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03675/3.912, allocations: 21.51 MB / 1.249 GB, free: 65.12 MB / 490.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04713/3.959, allocations: 29.88 MB / 1.278 GB, free: 53.8 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005996/3.965, allocations: 1.819 MB / 1.28 GB, free: 53.31 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003392/3.969, allocations: 3.5 kB / 1.28 GB, free: 53.31 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006597/3.975, allocations: 263.1 kB / 1.28 GB, free: 53.31 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00135/3.977, allocations: 279.3 kB / 1.28 GB, free: 53.27 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005694/3.977, allocations: 157.9 kB / 1.28 GB, free: 53.23 MB / 490.8 MB Notification: Performance of sort global known variables: time 0.01306/3.99, allocations: 4.882 MB / 1.285 GB, free: 50.78 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01801/4.009, allocations: 2.496 MB / 1.287 GB, free: 48.29 MB / 490.8 MB 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 (522): * Single equations (assignments): 515 * 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.001737/4.01, allocations: 186.1 kB / 1.288 GB, free: 48.17 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02598/4.036, allocations: 15.85 MB / 1.303 GB, free: 34.52 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/4.036, allocations: 5.5 kB / 1.303 GB, free: 34.52 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01375/4.05, allocations: 6.671 MB / 1.31 GB, free: 28.61 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008149/4.058, allocations: 0.843 MB / 1.311 GB, free: 27.91 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05816/4.117, allocations: 23.75 MB / 1.334 GB, free: 7.137 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02116/4.138, allocations: 9.004 MB / 1.342 GB, free: 500 kB / 490.8 MB Notification: Performance of SimCode: time 1.794e-06/4.138, allocations: 6.188 kB / 1.342 GB, free: 496 kB / 490.8 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque3.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1)