Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.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.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001646/0.001646, allocations: 199.2 kB / 8.541 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.258/1.258, allocations: 225.5 MB / 234.4 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009384/0.0009384, allocations: 88.56 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1752/0.1752, allocations: 45.14 MB / 383.3 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2102/0.3855, allocations: 69.37 MB / 452.7 MB, free: 76.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08385/0.4693, allocations: 63.25 MB / 0.5039 GB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2741/0.7435, allocations: 109.1 MB / 0.6104 GB, free: 9.957 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.7437, allocations: 79.7 kB / 0.6105 GB, free: 9.918 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.3495/1.093, allocations: 130.7 MB / 0.7381 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/1.093, allocations: 11.94 kB / 0.7381 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02932/1.123, allocations: 6.69 MB / 0.7447 GB, free: 8.418 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01737/1.14, allocations: 6.36 MB / 0.7509 GB, free: 1.973 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003215/1.14, allocations: 200 kB / 0.7511 GB, free: 1.777 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002266/1.143, allocations: 379.8 kB / 0.7514 GB, free: 1.406 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1587/1.301, allocations: 8.868 MB / 0.7601 GB, free: 171.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01936/1.321, allocations: 13.75 MB / 0.7735 GB, free: 167.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002191/1.321, allocations: 87.73 kB / 0.7736 GB, free: 167.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008129/1.322, allocations: 43 kB / 0.7737 GB, free: 167.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001424/1.323, allocations: 1.525 MB / 0.7751 GB, free: 167.8 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05505/1.378, allocations: 68.15 MB / 0.8417 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005138/1.383, allocations: 5.177 MB / 0.8467 GB, free: 123 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003377/1.387, allocations: 3.521 MB / 0.8502 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01364/1.401, allocations: 9.336 MB / 0.8593 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/1.401, allocations: 56.41 kB / 0.8594 GB, free: 117 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=221): time 5.45e-06/1.401, allocations: 6.781 kB / 0.8594 GB, free: 117 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263): time 0.04777/1.448, allocations: 23.98 MB / 0.8828 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/1.449, allocations: 231.6 kB / 0.883 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005712/1.454, allocations: 4.669 MB / 0.8876 GB, free: 99.66 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004454/1.455, allocations: 25.7 kB / 0.8876 GB, free: 99.63 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001561/1.456, allocations: 4.245 MB / 0.8917 GB, free: 95.81 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001014/1.457, allocations: 0.987 MB / 0.8927 GB, free: 94.93 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004266/1.458, allocations: 0 / 0.8927 GB, free: 94.93 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003282/1.458, allocations: 0.6679 MB / 0.8933 GB, free: 94.36 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003943/1.462, allocations: 3.153 MB / 0.8964 GB, free: 91.53 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005749/1.468, allocations: 8.324 MB / 0.9046 GB, free: 81.32 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00619/1.474, allocations: 5.085 MB / 0.9095 GB, free: 77.14 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-05/1.474, allocations: 52 kB / 0.9096 GB, free: 77.09 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1127) (initialization): time 0.02004/1.494, allocations: 11.57 MB / 0.9209 GB, free: 67.13 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/1.494, allocations: 8 kB / 0.9209 GB, free: 67.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001733/1.494, allocations: 184 kB / 0.9211 GB, free: 66.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003984/1.498, allocations: 1.622 MB / 0.9226 GB, free: 65.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006872/1.505, allocations: 1.979 MB / 0.9246 GB, free: 63.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01266/1.518, allocations: 10.4 MB / 0.9347 GB, free: 54.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006482/1.524, allocations: 283.4 kB / 0.935 GB, free: 54.37 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001267/1.526, allocations: 0.5157 MB / 0.9355 GB, free: 53.87 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * Number of states: 0 () * Number of discrete variables: 67 (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 (1055): * Single equations (assignments): 1050 * 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.001411/1.527, allocations: 0.576 MB / 0.9361 GB, free: 53.29 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008799/1.528, allocations: 489.6 kB / 0.9365 GB, free: 52.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/1.538, allocations: 5.717 MB / 0.9421 GB, free: 48.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-05/1.538, allocations: 24 kB / 0.9421 GB, free: 48.16 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/1.538, allocations: 12 kB / 0.9421 GB, free: 48.14 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.603e-05/1.539, allocations: 11.02 kB / 0.9422 GB, free: 48.14 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02106/1.56, allocations: 12.04 MB / 0.9539 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.623e-05/1.56, allocations: 0.5156 kB / 0.9539 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002756/1.562, allocations: 415.1 kB / 0.9543 GB, free: 38.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004097/1.567, allocations: 1.319 MB / 0.9556 GB, free: 37.09 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005831/1.567, allocations: 7.562 kB / 0.9556 GB, free: 37.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/1.58, allocations: 9.626 MB / 0.965 GB, free: 27.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/1.58, allocations: 7.984 kB / 0.965 GB, free: 27.86 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01321/1.593, allocations: 9.645 MB / 0.9744 GB, free: 18.13 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01601/1.609, allocations: 13.39 MB / 0.9875 GB, free: 4.66 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/1.61, allocations: 0.5064 MB / 0.988 GB, free: 4.129 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009404/1.611, allocations: 0 / 0.988 GB, free: 4.129 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002261/1.613, allocations: 87.86 kB / 0.9881 GB, free: 4.043 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003625/1.614, allocations: 121.7 kB / 0.9882 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002559/1.614, allocations: 71.98 kB / 0.9883 GB, free: 3.852 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004265/1.618, allocations: 3.148 MB / 0.9913 GB, free: 0.7266 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.1663/1.785, allocations: 1.31 MB / 0.9926 GB, free: 155 MB / 0.5261 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 (205): * Single equations (assignments): 200 * 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.0008052/1.785, allocations: 153.9 kB / 0.9928 GB, free: 154.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01154/1.797, allocations: 7.822 MB / 1 GB, free: 154.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/1.797, allocations: 0 / 1 GB, free: 154.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004486/1.801, allocations: 2.883 MB / 1.003 GB, free: 154.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003015/1.805, allocations: 0.515 MB / 1.004 GB, free: 154.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02333/1.828, allocations: 12.09 MB / 1.016 GB, free: 152.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008827/1.837, allocations: 5.125 MB / 1.021 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of SimCode: time 8.61e-07/1.837, allocations: 0 / 1.021 GB, free: 151.4 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1)