Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009876/0.0009876, allocations: 182.8 kB / 8.135 MB, free: 2.133 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.171/1.171, allocations: 221.4 MB / 229.9 MB, free: 3.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 104.2 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0936/0.09471, allocations: 55.82 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1805/0.2752, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1003/0.3756, allocations: 99.72 MB / 486.7 MB, free: 3.039 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001966/0.3758, allocations: 87.89 kB / 486.8 MB, free: 2.953 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.3539/0.7298, allocations: 93.81 MB / 0.567 GB, free: 41.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.7298, allocations: 8 kB / 0.567 GB, free: 41.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01645/0.7463, allocations: 4.096 MB / 0.571 GB, free: 37.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/0.758, allocations: 4.796 MB / 0.5757 GB, free: 32.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/0.7582, allocations: 140 kB / 0.5758 GB, free: 32.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001484/0.7597, allocations: 263.9 kB / 0.5761 GB, free: 32.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009509/0.7692, allocations: 6.604 MB / 0.5825 GB, free: 25.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01109/0.7803, allocations: 10.05 MB / 0.5924 GB, free: 14.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001216/0.7805, allocations: 63.45 kB / 0.5924 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004686/0.781, allocations: 32 kB / 0.5924 GB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001045/0.782, allocations: 1.163 MB / 0.5936 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04441/0.8264, allocations: 49.07 MB / 0.6415 GB, free: 10.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004264/0.8307, allocations: 3.797 MB / 0.6452 GB, free: 6.891 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002521/0.8333, allocations: 2.267 MB / 0.6474 GB, free: 4.617 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1214/0.9547, allocations: 6.519 MB / 0.6538 GB, free: 127.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.9548, allocations: 47.75 kB / 0.6538 GB, free: 127.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 4.999e-06/0.9548, allocations: 3.844 kB / 0.6538 GB, free: 127.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=174): time 0.02709/0.9819, allocations: 13.98 MB / 0.6675 GB, free: 125.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.9819, allocations: 176.5 kB / 0.6677 GB, free: 125.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003907/0.9859, allocations: 3.342 MB / 0.6709 GB, free: 125 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001398/0.986, allocations: 25.7 kB / 0.671 GB, free: 125 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001172/0.9872, allocations: 3.114 MB / 0.674 GB, free: 123.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004454/0.9876, allocations: 0.6655 MB / 0.6746 GB, free: 122.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002297/0.9879, allocations: 0 / 0.6746 GB, free: 122.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002809/0.9882, allocations: 0.5752 MB / 0.6752 GB, free: 122.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002516/0.9907, allocations: 2.135 MB / 0.6773 GB, free: 122.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00385/0.9946, allocations: 5.943 MB / 0.6831 GB, free: 117.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003977/0.9985, allocations: 3.566 MB / 0.6866 GB, free: 117.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.367e-05/0.9986, allocations: 40.5 kB / 0.6866 GB, free: 117.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01189/1.011, allocations: 7.846 MB / 0.6943 GB, free: 117.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/1.011, allocations: 3.812 kB / 0.6943 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/1.011, allocations: 135.4 kB / 0.6944 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002084/1.013, allocations: 0.8722 MB / 0.6953 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004786/1.018, allocations: 1.471 MB / 0.6967 GB, free: 117 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006145/1.024, allocations: 5.226 MB / 0.7018 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004648/1.028, allocations: 199 kB / 0.702 GB, free: 115.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009308/1.029, allocations: 391.8 kB / 0.7024 GB, free: 115.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 49 (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.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[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 (774): * Single equations (assignments): 770 * 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.001392/1.031, allocations: 461.6 kB / 0.7028 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006975/1.031, allocations: 339 kB / 0.7031 GB, free: 115.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0057/1.037, allocations: 3.215 MB / 0.7063 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-05/1.037, allocations: 16.53 kB / 0.7063 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/1.037, allocations: 4.844 kB / 0.7063 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/1.037, allocations: 12.11 kB / 0.7063 GB, free: 114.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01479/1.052, allocations: 7.319 MB / 0.7134 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/1.052, allocations: 5 kB / 0.7135 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/1.054, allocations: 294.6 kB / 0.7137 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/1.056, allocations: 0.6579 MB / 0.7144 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001852/1.056, allocations: 8.062 kB / 0.7144 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006108/1.062, allocations: 4.817 MB / 0.7191 GB, free: 109.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.062, allocations: 7.031 kB / 0.7191 GB, free: 109.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007691/1.07, allocations: 5.955 MB / 0.7249 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009283/1.079, allocations: 8.408 MB / 0.7331 GB, free: 99.24 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008509/1.08, allocations: 384.7 kB / 0.7335 GB, free: 98.85 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007199/1.081, allocations: 4 kB / 0.7335 GB, free: 98.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/1.082, allocations: 57.77 kB / 0.7335 GB, free: 98.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/1.082, allocations: 73.78 kB / 0.7336 GB, free: 98.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/1.083, allocations: 47.42 kB / 0.7337 GB, free: 98.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003337/1.086, allocations: 2.24 MB / 0.7358 GB, free: 96.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005339/1.091, allocations: 0.8934 MB / 0.7367 GB, free: 95.91 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 (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.0004054/1.092, allocations: 154.1 kB / 0.7369 GB, free: 95.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006965/1.099, allocations: 5.135 MB / 0.7419 GB, free: 91.15 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/1.099, allocations: 0 / 0.7419 GB, free: 91.15 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002412/1.101, allocations: 1.723 MB / 0.7436 GB, free: 89.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/1.103, allocations: 352.4 kB / 0.7439 GB, free: 89.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/1.117, allocations: 8.169 MB / 0.7519 GB, free: 82.01 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004095/1.121, allocations: 3.815 MB / 0.7556 GB, free: 79.07 MB / 426.7 MB Notification: Performance of SimCode: time 8.11e-07/1.121, allocations: 0 / 0.7556 GB, free: 79.07 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1)