Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.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.Torque,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque",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.00113/0.00113, allocations: 192.6 kB / 7.807 MB, free: 2.492 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.257/1.257, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.0009832/0.0009832, allocations: 98.33 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.1762/0.1762, allocations: 43.5 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2058/0.3821, allocations: 64.97 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.6756, allocations: 58.83 MB / 476.6 MB, free: 5.293 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.8242, allocations: 106.8 MB / 0.5698 GB, free: 8.129 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.8245, allocations: 75.47 kB / 0.5699 GB, free: 8.059 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: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.5868/1.411, allocations: 134.9 MB / 0.7016 GB, free: 98.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.041e-05/1.411, allocations: 13.5 kB / 0.7017 GB, free: 98.74 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03244/1.444, allocations: 6.769 MB / 0.7083 GB, free: 95.01 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02634/1.47, allocations: 7.539 MB / 0.7156 GB, free: 90.81 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006354/1.471, allocations: 216 kB / 0.7158 GB, free: 90.6 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005091/1.476, allocations: 399.9 kB / 0.7162 GB, free: 90.21 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02049/1.497, allocations: 9.544 MB / 0.7255 GB, free: 80.66 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03235/1.529, allocations: 14.62 MB / 0.7398 GB, free: 64.58 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006282/1.53, allocations: 91.11 kB / 0.7399 GB, free: 64.49 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003429/1.533, allocations: 44 kB / 0.7399 GB, free: 64.45 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002168/1.535, allocations: 1.662 MB / 0.7416 GB, free: 62.78 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08717/1.622, allocations: 71.11 MB / 0.811 GB, free: 6.004 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00839/1.631, allocations: 5.533 MB / 0.8164 GB, free: 336 kB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006239/1.637, allocations: 3.831 MB / 0.8202 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02465/1.662, allocations: 10.12 MB / 0.83 GB, free: 2.219 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.371e-05/1.662, allocations: 64.28 kB / 0.8301 GB, free: 2.148 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=254): time 9.538e-06/1.662, allocations: 0 / 0.8301 GB, free: 2.148 MB / 0.4948 GB Notification: Performance of matching and sorting (n=298): time 0.2613/1.923, allocations: 25.62 MB / 0.8551 GB, free: 168.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.66e-05/1.924, allocations: 236 kB / 0.8553 GB, free: 167.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007778/1.931, allocations: 4.914 MB / 0.8601 GB, free: 167.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007464/1.932, allocations: 28.33 kB / 0.8602 GB, free: 167.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002237/1.934, allocations: 4.528 MB / 0.8646 GB, free: 164.6 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001474/1.936, allocations: 1.106 MB / 0.8657 GB, free: 164 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003938/1.936, allocations: 0 / 0.8657 GB, free: 164 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004731/1.937, allocations: 0.7014 MB / 0.8664 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004748/1.941, allocations: 3.498 MB / 0.8698 GB, free: 163.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007152/1.949, allocations: 8.96 MB / 0.8785 GB, free: 155.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007394/1.956, allocations: 5.556 MB / 0.884 GB, free: 153.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/1.956, allocations: 54.16 kB / 0.884 GB, free: 153.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1217) (initialization): time 0.02484/1.981, allocations: 12.55 MB / 0.8963 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/1.981, allocations: 3.094 kB / 0.8963 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003723/1.982, allocations: 196.4 kB / 0.8965 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004487/1.986, allocations: 1.627 MB / 0.898 GB, free: 149.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009914/1.996, allocations: 2.163 MB / 0.9002 GB, free: 149.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01445/2.01, allocations: 10.27 MB / 0.9102 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008979/2.019, allocations: 310.3 kB / 0.9105 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002472/2.022, allocations: 0.554 MB / 0.911 GB, free: 142.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 889 * Number of states: 0 () * Number of discrete variables: 63 (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],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 (1145): * Single equations (assignments): 1140 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003216/2.025, allocations: 0.5923 MB / 0.9116 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001632/2.027, allocations: 0.5097 MB / 0.9121 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/2.039, allocations: 6.365 MB / 0.9183 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-05/2.039, allocations: 28 kB / 0.9183 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.764e-05/2.039, allocations: 8 kB / 0.9183 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.132e-05/2.039, allocations: 13.08 kB / 0.9184 GB, free: 136 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03213/2.071, allocations: 13.25 MB / 0.9313 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-05/2.071, allocations: 0 / 0.9313 GB, free: 125.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003055/2.074, allocations: 483.2 kB / 0.9318 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003678/2.078, allocations: 1.311 MB / 0.933 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007288/2.079, allocations: 12 kB / 0.9331 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01199/2.091, allocations: 9.613 MB / 0.9424 GB, free: 115.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/2.091, allocations: 4 kB / 0.9424 GB, free: 115.2 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01782/2.109, allocations: 10.7 MB / 0.9529 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02203/2.131, allocations: 14.89 MB / 0.9674 GB, free: 92.53 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003222/2.134, allocations: 1.017 MB / 0.9684 GB, free: 91.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001884/2.136, allocations: 4 kB / 0.9684 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003605/2.14, allocations: 113.2 kB / 0.9685 GB, free: 91.51 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005013/2.14, allocations: 135.7 kB / 0.9687 GB, free: 91.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003501/2.141, allocations: 75.75 kB / 0.9687 GB, free: 91.36 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.007367/2.148, allocations: 3.317 MB / 0.972 GB, free: 88.49 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01289/2.161, allocations: 1.411 MB / 0.9734 GB, free: 87.09 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 236 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.00137/2.162, allocations: 150.4 kB / 0.9735 GB, free: 86.94 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01479/2.177, allocations: 8.55 MB / 0.9819 GB, free: 78.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/2.177, allocations: 0 / 0.9819 GB, free: 78.84 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005818/2.183, allocations: 3.194 MB / 0.985 GB, free: 75.63 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004844/2.188, allocations: 0.5143 MB / 0.9855 GB, free: 75.13 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03248/2.22, allocations: 13.07 MB / 0.9982 GB, free: 62.01 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01029/2.231, allocations: 5.456 MB / 1.004 GB, free: 56.56 MB / 0.4948 GB Notification: Performance of SimCode: time 1.343e-06/2.231, allocations: 0 / 1.004 GB, free: 56.56 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1)