Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 178.9 kB / 8.477 MB, free: 1.883 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.123/1.123, allocations: 205.2 MB / 214.1 MB, free: 5.141 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008173/0.0008173, allocations: 94.25 kB / 262.1 MB, free: 5.191 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1531/0.154, allocations: 52.97 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06401/0.218, allocations: 47.57 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2255/0.4435, allocations: 99.44 MB / 462.1 MB, free: 6.285 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.4438, allocations: 83.77 kB / 462.2 MB, free: 6.273 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.2642/0.708, allocations: 99.11 MB / 0.5481 GB, free: 13.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.7081, allocations: 12 kB / 0.5481 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01847/0.7266, allocations: 4.146 MB / 0.5522 GB, free: 9.137 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01285/0.7395, allocations: 5.109 MB / 0.5572 GB, free: 3.961 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.7396, allocations: 152 kB / 0.5573 GB, free: 3.812 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009339/0.7406, allocations: 279.9 kB / 0.5576 GB, free: 3.539 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01063/0.7512, allocations: 7.169 MB / 0.5646 GB, free: 12.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/0.7655, allocations: 10.77 MB / 0.5751 GB, free: 0.543 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001381/0.7657, allocations: 63.41 kB / 0.5752 GB, free: 492 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005401/0.7662, allocations: 32 kB / 0.5752 GB, free: 460 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1051/0.8713, allocations: 1.268 MB / 0.5764 GB, free: 133.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04259/0.9139, allocations: 51.38 MB / 0.6266 GB, free: 104.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004163/0.9182, allocations: 4.208 MB / 0.6307 GB, free: 103.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002493/0.9207, allocations: 2.576 MB / 0.6332 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01057/0.9313, allocations: 7.288 MB / 0.6404 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.9314, allocations: 60.3 kB / 0.6404 GB, free: 100.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 6.753e-06/0.9314, allocations: 0 / 0.6404 GB, free: 100.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=213): time 0.02956/0.9609, allocations: 15.38 MB / 0.6554 GB, free: 94.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.961, allocations: 174.8 kB / 0.6556 GB, free: 94.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004582/0.9656, allocations: 3.474 MB / 0.659 GB, free: 93.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003765/0.966, allocations: 32.3 kB / 0.659 GB, free: 93.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.9674, allocations: 3.308 MB / 0.6623 GB, free: 90.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000688/0.9681, allocations: 0.7942 MB / 0.663 GB, free: 90.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002786/0.9684, allocations: 0 / 0.663 GB, free: 90.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000283/0.9687, allocations: 0.5897 MB / 0.6636 GB, free: 89.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003046/0.9717, allocations: 2.433 MB / 0.666 GB, free: 88.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004051/0.9758, allocations: 6.462 MB / 0.6723 GB, free: 82.47 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004221/0.98, allocations: 3.979 MB / 0.6762 GB, free: 81.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.796e-05/0.9801, allocations: 42.28 kB / 0.6762 GB, free: 81.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.0122/0.9923, allocations: 8.663 MB / 0.6847 GB, free: 77.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.9923, allocations: 8 kB / 0.6847 GB, free: 77.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/0.9925, allocations: 144 kB / 0.6848 GB, free: 76.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002017/0.9945, allocations: 0.8836 MB / 0.6857 GB, free: 76.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00536/0.9999, allocations: 1.607 MB / 0.6873 GB, free: 74.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006319/1.006, allocations: 5.329 MB / 0.6925 GB, free: 70.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005222/1.011, allocations: 214.1 kB / 0.6927 GB, free: 69.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001036/1.013, allocations: 414.1 kB / 0.6931 GB, free: 69.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * Number of states: 0 () * Number of discrete variables: 42 (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.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],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 (846): * Single equations (assignments): 842 * 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.0009588/1.013, allocations: 471.5 kB / 0.6935 GB, free: 69.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005962/1.014, allocations: 363.2 kB / 0.6939 GB, free: 68.66 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005995/1.02, allocations: 3.892 MB / 0.6977 GB, free: 65.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.574e-05/1.02, allocations: 20 kB / 0.6977 GB, free: 65.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/1.02, allocations: 8 kB / 0.6977 GB, free: 65.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.849e-05/1.02, allocations: 10.78 kB / 0.6977 GB, free: 65.42 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/1.034, allocations: 8.494 MB / 0.706 GB, free: 58.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/1.034, allocations: 7.156 kB / 0.706 GB, free: 58.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002095/1.036, allocations: 373.1 kB / 0.7063 GB, free: 58.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001768/1.038, allocations: 0.6701 MB / 0.707 GB, free: 57.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001743/1.038, allocations: 11.38 kB / 0.707 GB, free: 57.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005645/1.044, allocations: 4.812 MB / 0.7117 GB, free: 53.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/1.044, allocations: 4 kB / 0.7117 GB, free: 53.34 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008429/1.052, allocations: 7.034 MB / 0.7186 GB, free: 47.09 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01091/1.063, allocations: 9.968 MB / 0.7283 GB, free: 38.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001581/1.065, allocations: 0.7193 MB / 0.729 GB, free: 37.47 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008149/1.065, allocations: 0 / 0.729 GB, free: 37.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001859/1.067, allocations: 65.08 kB / 0.7291 GB, free: 37.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002502/1.068, allocations: 95.47 kB / 0.7292 GB, free: 37.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/1.068, allocations: 54.67 kB / 0.7292 GB, free: 37.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003866/1.072, allocations: 2.335 MB / 0.7315 GB, free: 35.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006133/1.078, allocations: 0.9774 MB / 0.7325 GB, free: 34.3 MB / 426.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 (174): * Single equations (assignments): 170 * 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.0004956/1.078, allocations: 151.5 kB / 0.7326 GB, free: 34.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008433/1.087, allocations: 5.905 MB / 0.7384 GB, free: 28.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/1.087, allocations: 0 / 0.7384 GB, free: 28.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002912/1.09, allocations: 2.052 MB / 0.7404 GB, free: 26.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/1.092, allocations: 356.3 kB / 0.7407 GB, free: 26.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/1.107, allocations: 9.006 MB / 0.7495 GB, free: 18.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004737/1.112, allocations: 4.066 MB / 0.7535 GB, free: 14.03 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/1.112, allocations: 0 / 0.7535 GB, free: 14.03 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1)