Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001654/0.001654, allocations: 205.8 kB / 8.544 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 225.5 MB / 234.4 MB, free: 3.352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009648/0.0009648, allocations: 86.53 kB / 286.3 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1733/0.1733, allocations: 45.14 MB / 383.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1858/0.3591, allocations: 69.37 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0837/0.4428, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2739/0.7167, allocations: 110.9 MB / 0.6122 GB, free: 8.129 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001963/0.717, allocations: 73.78 kB / 0.6122 GB, free: 8.094 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.7056/1.423, allocations: 214.6 MB / 0.8218 GB, free: 91.58 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/1.423, allocations: 10.75 kB / 0.8218 GB, free: 91.58 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04749/1.47, allocations: 12 MB / 0.8335 GB, free: 90.8 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02398/1.494, allocations: 10.65 MB / 0.8439 GB, free: 89.54 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004201/1.495, allocations: 359.3 kB / 0.8442 GB, free: 89.54 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003968/1.499, allocations: 0.6414 MB / 0.8449 GB, free: 89.53 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02725/1.526, allocations: 15.47 MB / 0.86 GB, free: 84.43 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03552/1.561, allocations: 22.69 MB / 0.8821 GB, free: 63.07 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004325/1.562, allocations: 130.6 kB / 0.8822 GB, free: 62.95 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0017/1.564, allocations: 56 kB / 0.8823 GB, free: 62.89 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002716/1.566, allocations: 2.512 MB / 0.8848 GB, free: 60.82 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4024/1.969, allocations: 105 MB / 0.9873 GB, free: 106.4 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01084/1.98, allocations: 10.25 MB / 0.9973 GB, free: 105.2 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007622/1.987, allocations: 7.254 MB / 1.004 GB, free: 105.1 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02806/2.015, allocations: 20.79 MB / 1.025 GB, free: 100.3 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.59e-05/2.015, allocations: 79.94 kB / 1.025 GB, free: 100.2 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=413): time 6.632e-06/2.015, allocations: 0 / 1.025 GB, free: 100.2 MB / 0.5418 GB Notification: Performance of matching and sorting (n=499): time 0.09721/2.113, allocations: 47.25 MB / 1.071 GB, free: 82.93 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.553e-05/2.113, allocations: 305 kB / 1.071 GB, free: 82.57 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008909/2.122, allocations: 6.689 MB / 1.078 GB, free: 76.82 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.001047/2.123, allocations: 29.7 kB / 1.078 GB, free: 76.79 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.002595/2.125, allocations: 6.485 MB / 1.084 GB, free: 71 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.002219/2.128, allocations: 1.795 MB / 1.086 GB, free: 69.38 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007413/2.128, allocations: 2.25 kB / 1.086 GB, free: 69.38 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0005217/2.129, allocations: 0.8483 MB / 1.087 GB, free: 68.68 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006979/2.136, allocations: 5.414 MB / 1.092 GB, free: 63.84 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01129/2.147, allocations: 12.47 MB / 1.104 GB, free: 48.97 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01071/2.158, allocations: 8.154 MB / 1.112 GB, free: 42.49 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001579/2.158, allocations: 75.91 kB / 1.112 GB, free: 42.41 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1670) (initialization): time 0.03481/2.193, allocations: 19.02 MB / 1.131 GB, free: 27.03 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/2.193, allocations: 4 kB / 1.131 GB, free: 27.02 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004055/2.193, allocations: 248 kB / 1.131 GB, free: 26.78 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007831/2.201, allocations: 3.071 MB / 1.134 GB, free: 24.43 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01148/2.213, allocations: 3.02 MB / 1.137 GB, free: 21.86 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02476/2.238, allocations: 20.4 MB / 1.157 GB, free: 3.492 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01077/2.248, allocations: 419.8 kB / 1.157 GB, free: 3.148 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002703/2.251, allocations: 0.7411 MB / 1.158 GB, free: 2.438 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1140 * Number of states: 0 () * Number of discrete variables: 120 (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],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 (1550): * Single equations (assignments): 1543 * 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.003852/2.255, allocations: 0.7663 MB / 1.159 GB, free: 1.668 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002255/2.257, allocations: 0.7406 MB / 1.159 GB, free: 0.918 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1924/2.45, allocations: 11.65 MB / 1.171 GB, free: 147.3 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.309e-05/2.45, allocations: 47.81 kB / 1.171 GB, free: 147.3 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.343e-05/2.45, allocations: 22.56 kB / 1.171 GB, free: 147.3 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.267e-05/2.45, allocations: 26.38 kB / 1.171 GB, free: 147.3 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04136/2.491, allocations: 23.6 MB / 1.194 GB, free: 146.6 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.017e-05/2.491, allocations: 0 / 1.194 GB, free: 146.6 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00511/2.496, allocations: 0.8739 MB / 1.195 GB, free: 146.6 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007264/2.504, allocations: 2.63 MB / 1.197 GB, free: 146.5 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007559/2.504, allocations: 12.91 kB / 1.197 GB, free: 146.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02357/2.528, allocations: 19.25 MB / 1.216 GB, free: 139.9 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/2.528, allocations: 3.938 kB / 1.216 GB, free: 139.9 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02453/2.553, allocations: 18.4 MB / 1.234 GB, free: 133.4 MB / 0.5418 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03279/2.585, allocations: 25.41 MB / 1.259 GB, free: 121.8 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002087/2.588, allocations: 0.7323 MB / 1.26 GB, free: 121.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001907/2.59, allocations: 5.594 kB / 1.26 GB, free: 121.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004304/2.594, allocations: 223.8 kB / 1.26 GB, free: 121.3 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007942/2.595, allocations: 226.9 kB / 1.26 GB, free: 121.2 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004962/2.595, allocations: 123.4 kB / 1.26 GB, free: 121 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.006508/2.602, allocations: 4.529 MB / 1.265 GB, free: 117.1 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01212/2.614, allocations: 2.238 MB / 1.267 GB, free: 114.9 MB / 0.5418 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.0008242/2.615, allocations: 187.1 kB / 1.267 GB, free: 114.8 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0186/2.633, allocations: 13.54 MB / 1.28 GB, free: 103.2 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/2.633, allocations: 0 / 1.28 GB, free: 103.2 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.008571/2.642, allocations: 5.71 MB / 1.286 GB, free: 98.13 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005168/2.647, allocations: 0.8721 MB / 1.287 GB, free: 97.42 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0418/2.689, allocations: 21.11 MB / 1.307 GB, free: 79.07 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01212/2.701, allocations: 8.167 MB / 1.315 GB, free: 73.06 MB / 0.5418 GB Notification: Performance of SimCode: time 1.062e-06/2.701, allocations: 0 / 1.315 GB, free: 73.06 MB / 0.5418 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1)