Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",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.001048/0.001048, allocations: 192.6 kB / 8.532 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.168/1.168, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00092/0.00092, allocations: 87.12 kB / 286.3 MB, free: 5.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09141/0.09236, allocations: 56.9 MB / 343.2 MB, free: 8.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08166/0.174, allocations: 51.48 MB / 394.7 MB, free: 4.945 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.222/0.396, allocations: 100.4 MB / 495.1 MB, free: 8.848 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.3963, allocations: 85.69 kB / 495.2 MB, free: 8.805 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.3844/0.7807, allocations: 94.83 MB / 0.5762 GB, free: 53.35 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.7807, allocations: 5.938 kB / 0.5762 GB, free: 53.35 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01624/0.797, allocations: 4.084 MB / 0.5802 GB, free: 53.04 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009263/0.8063, allocations: 4.258 MB / 0.5843 GB, free: 52.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/0.8064, allocations: 142.3 kB / 0.5845 GB, free: 52.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008203/0.8072, allocations: 263.5 kB / 0.5847 GB, free: 52.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008212/0.8155, allocations: 6.608 MB / 0.5912 GB, free: 52.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01075/0.8262, allocations: 10.05 MB / 0.601 GB, free: 49.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001201/0.8264, allocations: 54.78 kB / 0.601 GB, free: 49.97 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004702/0.8269, allocations: 29.84 kB / 0.6011 GB, free: 49.97 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001042/0.8279, allocations: 1.162 MB / 0.6022 GB, free: 49.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03803/0.866, allocations: 49 MB / 0.6501 GB, free: 37.55 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00339/0.8694, allocations: 3.794 MB / 0.6538 GB, free: 35.77 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002302/0.8717, allocations: 2.27 MB / 0.656 GB, free: 34.85 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008572/0.8803, allocations: 6.512 MB / 0.6623 GB, free: 31.49 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.8803, allocations: 49.66 kB / 0.6624 GB, free: 31.44 MB / 458.7 MB Notification: Performance of pre-optimization done (n=153): time 3.827e-06/0.8803, allocations: 0 / 0.6624 GB, free: 31.44 MB / 458.7 MB Notification: Performance of matching and sorting (n=174): time 0.02756/0.9079, allocations: 13.99 MB / 0.676 GB, free: 25.87 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.908, allocations: 175.1 kB / 0.6762 GB, free: 25.68 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004331/0.9123, allocations: 3.331 MB / 0.6795 GB, free: 24.42 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001726/0.9125, allocations: 28.58 kB / 0.6795 GB, free: 24.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/0.9136, allocations: 3.112 MB / 0.6825 GB, free: 21.99 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004548/0.9141, allocations: 0.6654 MB / 0.6832 GB, free: 21.51 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.9143, allocations: 1.5 kB / 0.6832 GB, free: 21.51 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002981/0.9146, allocations: 0.5684 MB / 0.6837 GB, free: 21.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002459/0.9171, allocations: 2.13 MB / 0.6858 GB, free: 20.37 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003664/0.9208, allocations: 5.927 MB / 0.6916 GB, free: 14.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003873/0.9247, allocations: 3.56 MB / 0.6951 GB, free: 13.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.623e-05/0.9247, allocations: 44.78 kB / 0.6951 GB, free: 13.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.01096/0.9357, allocations: 7.814 MB / 0.7028 GB, free: 10.48 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.9357, allocations: 6.938 kB / 0.7028 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.795e-05/0.9359, allocations: 137 kB / 0.7029 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00196/0.9378, allocations: 0.8763 MB / 0.7038 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004331/0.9422, allocations: 1.466 MB / 0.7052 GB, free: 10.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006058/0.9482, allocations: 5.234 MB / 0.7103 GB, free: 7.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004266/0.9525, allocations: 199.4 kB / 0.7105 GB, free: 7.387 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000618/0.9532, allocations: 390.2 kB / 0.7109 GB, free: 7.336 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 46 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (771): * Single equations (assignments): 767 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007349/0.9539, allocations: 446.3 kB / 0.7113 GB, free: 6.973 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004731/0.9544, allocations: 333.9 kB / 0.7116 GB, free: 6.789 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005318/0.9597, allocations: 3.222 MB / 0.7147 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.889e-05/0.9598, allocations: 16.5 kB / 0.7148 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.9598, allocations: 5.875 kB / 0.7148 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.9598, allocations: 11.05 kB / 0.7148 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/0.9725, allocations: 7.314 MB / 0.7219 GB, free: 3.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.9725, allocations: 0 / 0.7219 GB, free: 3.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/0.9742, allocations: 291.1 kB / 0.7222 GB, free: 2.793 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002051/0.9763, allocations: 0.6677 MB / 0.7229 GB, free: 2.301 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001588/0.9765, allocations: 9.359 kB / 0.7229 GB, free: 2.293 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007799/0.9843, allocations: 4.895 MB / 0.7276 GB, free: 14.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.9843, allocations: 0 / 0.7276 GB, free: 14.12 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0084/0.9927, allocations: 5.956 MB / 0.7335 GB, free: 8.848 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01095/1.004, allocations: 8.401 MB / 0.7417 GB, free: 1.355 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008149/1.005, allocations: 381.5 kB / 0.742 GB, free: 0.9688 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005163/1.005, allocations: 4 kB / 0.742 GB, free: 0.9648 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/1.006, allocations: 52.39 kB / 0.7421 GB, free: 0.9336 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/1.007, allocations: 84.48 kB / 0.7422 GB, free: 0.8828 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/1.007, allocations: 42.81 kB / 0.7422 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.1228/1.13, allocations: 2.487 MB / 0.7446 GB, free: 144.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005535/1.135, allocations: 0.8926 MB / 0.7455 GB, free: 144.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 129 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004032/1.136, allocations: 154.8 kB / 0.7456 GB, free: 144.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0064/1.142, allocations: 5.127 MB / 0.7507 GB, free: 143.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.142, allocations: 0 / 0.7507 GB, free: 143.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00233/1.144, allocations: 1.711 MB / 0.7523 GB, free: 143.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/1.146, allocations: 356.3 kB / 0.7527 GB, free: 143.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/1.158, allocations: 8.17 MB / 0.7606 GB, free: 142.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003968/1.162, allocations: 3.808 MB / 0.7644 GB, free: 141.6 MB / 474.7 MB Notification: Performance of SimCode: time 7.12e-07/1.162, allocations: 0 / 0.7644 GB, free: 141.6 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1)