Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.00159/0.00159, allocations: 206.7 kB / 8.544 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001402/0.001402, allocations: 87.05 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1702/0.1702, allocations: 45.13 MB / 383.3 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1861/0.3563, allocations: 69.39 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08044/0.4367, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2731/0.7099, allocations: 112.4 MB / 0.6137 GB, free: 6.684 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/0.7102, allocations: 80.08 kB / 0.6137 GB, free: 6.645 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.7317/1.442, allocations: 232.2 MB / 0.8405 GB, free: 92.24 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/1.442, allocations: 11.41 kB / 0.8405 GB, free: 92.24 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04905/1.491, allocations: 12.18 MB / 0.8524 GB, free: 90.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03003/1.521, allocations: 11.4 MB / 0.8636 GB, free: 85.74 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005374/1.522, allocations: 384.6 kB / 0.8639 GB, free: 85.74 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003968/1.526, allocations: 0.6867 MB / 0.8646 GB, free: 85.71 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02576/1.551, allocations: 16.29 MB / 0.8805 GB, free: 70.27 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04104/1.592, allocations: 24.28 MB / 0.9042 GB, free: 43.88 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004908/1.593, allocations: 138.7 kB / 0.9043 GB, free: 43.75 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002499/1.596, allocations: 71.84 kB / 0.9044 GB, free: 43.68 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002854/1.598, allocations: 2.704 MB / 0.907 GB, free: 40.96 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4075/2.006, allocations: 116.3 MB / 1.021 GB, free: 94.3 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0106/2.017, allocations: 10.38 MB / 1.031 GB, free: 93 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007199/2.024, allocations: 7.314 MB / 1.038 GB, free: 92.94 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02623/2.05, allocations: 19.5 MB / 1.057 GB, free: 87.59 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.56e-05/2.05, allocations: 76.44 kB / 1.057 GB, free: 87.52 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=417): time 7.404e-06/2.05, allocations: 0 / 1.057 GB, free: 87.52 MB / 0.5418 GB Notification: Performance of matching and sorting (n=501): time 0.104/2.154, allocations: 52.27 MB / 1.108 GB, free: 65.65 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.434e-05/2.154, allocations: 366.4 kB / 1.108 GB, free: 65.22 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01174/2.166, allocations: 7.685 MB / 1.116 GB, free: 58.59 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.001188/2.167, allocations: 29.7 kB / 1.116 GB, free: 58.56 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.003356/2.171, allocations: 7.146 MB / 1.123 GB, free: 52.18 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.002312/2.173, allocations: 1.827 MB / 1.125 GB, free: 50.53 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009974/2.174, allocations: 0 / 1.125 GB, free: 50.53 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0005928/2.175, allocations: 0.9109 MB / 1.126 GB, free: 49.79 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007448/2.182, allocations: 5.648 MB / 1.131 GB, free: 44.74 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01057/2.193, allocations: 13.56 MB / 1.144 GB, free: 28.43 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01146/2.204, allocations: 8.672 MB / 1.153 GB, free: 21.51 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001875/2.204, allocations: 80 kB / 1.153 GB, free: 21.43 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1830) (initialization): time 0.03886/2.243, allocations: 20.15 MB / 1.173 GB, free: 4.508 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/2.243, allocations: 12.03 kB / 1.173 GB, free: 4.496 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003477/2.244, allocations: 280 kB / 1.173 GB, free: 4.223 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008128/2.252, allocations: 3.112 MB / 1.176 GB, free: 1.824 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1832/2.435, allocations: 3.304 MB / 1.179 GB, free: 140.6 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02535/2.46, allocations: 20.6 MB / 1.199 GB, free: 135.6 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01119/2.472, allocations: 454.8 kB / 1.2 GB, free: 135.6 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001945/2.474, allocations: 0.8251 MB / 1.201 GB, free: 135.6 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1282 * Number of states: 0 () * Number of discrete variables: 132 (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.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.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 (1710): * Single equations (assignments): 1703 * 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.001857/2.475, allocations: 0.8356 MB / 1.201 GB, free: 135.4 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001382/2.477, allocations: 0.8205 MB / 1.202 GB, free: 135.4 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0191/2.496, allocations: 11.67 MB / 1.214 GB, free: 135.3 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.358e-05/2.496, allocations: 53.53 kB / 1.214 GB, free: 135.3 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.602e-05/2.496, allocations: 20.09 kB / 1.214 GB, free: 135.3 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-05/2.496, allocations: 23.34 kB / 1.214 GB, free: 135.3 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04309/2.539, allocations: 24.09 MB / 1.237 GB, free: 131.5 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-05/2.539, allocations: 1.938 kB / 1.237 GB, free: 131.5 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005204/2.545, allocations: 0.8608 MB / 1.238 GB, free: 131.4 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007057/2.552, allocations: 2.627 MB / 1.241 GB, free: 130.9 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006692/2.552, allocations: 15.91 kB / 1.241 GB, free: 130.9 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02313/2.575, allocations: 19.25 MB / 1.259 GB, free: 121 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/2.576, allocations: 3.719 kB / 1.259 GB, free: 121 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02577/2.601, allocations: 18.77 MB / 1.278 GB, free: 114.2 MB / 0.5418 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03108/2.632, allocations: 25.78 MB / 1.303 GB, free: 93.75 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002184/2.635, allocations: 0.8101 MB / 1.304 GB, free: 92.94 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001595/2.636, allocations: 15.09 kB / 1.304 GB, free: 92.93 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003899/2.64, allocations: 172.5 kB / 1.304 GB, free: 92.83 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006208/2.641, allocations: 231.1 kB / 1.304 GB, free: 92.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000466/2.641, allocations: 125 kB / 1.304 GB, free: 92.58 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.007617/2.649, allocations: 5.223 MB / 1.309 GB, free: 88.07 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01468/2.664, allocations: 2.366 MB / 1.312 GB, free: 85.71 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.001353/2.665, allocations: 175.9 kB / 1.312 GB, free: 85.59 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0201/2.685, allocations: 14.13 MB / 1.326 GB, free: 73.55 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/2.685, allocations: 6.516 kB / 1.326 GB, free: 73.54 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.00864/2.694, allocations: 5.702 MB / 1.331 GB, free: 68.49 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005992/2.7, allocations: 0.9556 MB / 1.332 GB, free: 67.7 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0447/2.745, allocations: 22.48 MB / 1.354 GB, free: 47.89 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01603/2.761, allocations: 8.794 MB / 1.363 GB, free: 41.41 MB / 0.5418 GB Notification: Performance of SimCode: time 1.663e-06/2.761, allocations: 0 / 1.363 GB, free: 41.41 MB / 0.5418 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1)