Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [: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.1+maint.om/package.mo): time 0.004518/0.004518, allocations: 181 kB / 7.454 MB, free: 2.52 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.325/1.325, allocations: 170.6 MB / 178.4 MB, free: 15.41 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001786/0.001786, allocations: 103.9 kB / 217.7 MB, free: 8.172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.183e-06/7.223e-06, allocations: 0 / 261.7 MB, free: 26.67 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08229/0.08232, allocations: 38.76 MB / 300.5 MB, free: 3.902 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.285/0.3673, allocations: 88.18 MB / 388.7 MB, free: 12.64 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003142/0.3677, allocations: 88.55 kB / 388.8 MB, free: 12.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.4399/0.8077, allocations: 93.78 MB / 482.5 MB, free: 70.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003343/0.8081, allocations: 92 kB / 482.6 MB, free: 70.26 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1732 * Number of variables: 1732 Notification: Performance of Generate backend data structure: time 0.01672/0.8248, allocations: 4.638 MB / 487.3 MB, free: 68.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.8248, allocations: 10.66 kB / 487.3 MB, free: 68.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01908/0.8439, allocations: 4.147 MB / 491.4 MB, free: 68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01667/0.8606, allocations: 5.085 MB / 496.5 MB, free: 67.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000326/0.861, allocations: 156 kB / 496.7 MB, free: 67.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002441/0.8635, allocations: 278.1 kB / 496.9 MB, free: 67.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0142/0.8777, allocations: 7.158 MB / 0.4923 GB, free: 67.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02396/0.9017, allocations: 10.75 MB / 0.5028 GB, free: 64.56 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002939/0.902, allocations: 65.62 kB / 0.5028 GB, free: 64.56 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001855/0.9039, allocations: 30.16 kB / 0.5029 GB, free: 64.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001691/0.9056, allocations: 1.273 MB / 0.5041 GB, free: 64.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06084/0.9665, allocations: 51.26 MB / 0.5542 GB, free: 26.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005148/0.9716, allocations: 4.223 MB / 0.5583 GB, free: 22.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002802/0.9745, allocations: 2.575 MB / 0.5608 GB, free: 19.81 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01098/0.9855, allocations: 7.271 MB / 0.5679 GB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.9855, allocations: 51.81 kB / 0.568 GB, free: 13.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=192): time 5.1e-06/0.9856, allocations: 0 / 0.568 GB, free: 13.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=213): time 0.03022/1.016, allocations: 15.37 MB / 0.583 GB, free: 136 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.716e-05/1.016, allocations: 176.4 kB / 0.5831 GB, free: 15.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005567/1.021, allocations: 3.447 MB / 0.5865 GB, free: 12.87 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004635/1.022, allocations: 29.7 kB / 0.5865 GB, free: 12.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002758/1.025, allocations: 3.304 MB / 0.5898 GB, free: 9.855 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001644/1.026, allocations: 0.7898 MB / 0.5905 GB, free: 9.148 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003402/1.027, allocations: 0 / 0.5905 GB, free: 9.148 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005461/1.027, allocations: 0.5917 MB / 0.5911 GB, free: 8.633 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004091/1.031, allocations: 2.431 MB / 0.5935 GB, free: 6.277 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1693/1.201, allocations: 6.437 MB / 0.5998 GB, free: 105.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006918/1.208, allocations: 3.967 MB / 0.6037 GB, free: 105.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.87e-05/1.208, allocations: 45.72 kB / 0.6037 GB, free: 105.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=891) (initialization): time 0.01671/1.225, allocations: 8.645 MB / 0.6121 GB, free: 105.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/1.225, allocations: 8.188 kB / 0.6121 GB, free: 105.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002069/1.225, allocations: 146.1 kB / 0.6123 GB, free: 105.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002061/1.227, allocations: 0.8809 MB / 0.6131 GB, free: 105.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005871/1.233, allocations: 1.609 MB / 0.6147 GB, free: 105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006752/1.24, allocations: 5.322 MB / 0.6199 GB, free: 103.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00559/1.245, allocations: 214.3 kB / 0.6201 GB, free: 103.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0012/1.246, allocations: 420.1 kB / 0.6205 GB, free: 103.6 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 654 * Number of states: 0 () * Number of discrete variables: 39 (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.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 (843): * Single equations (assignments): 839 * 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.00106/1.247, allocations: 462.1 kB / 0.621 GB, free: 103.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000625/1.248, allocations: 363.1 kB / 0.6213 GB, free: 103.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006047/1.254, allocations: 3.89 MB / 0.6251 GB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.127e-05/1.254, allocations: 19.97 kB / 0.6251 GB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.83e-05/1.254, allocations: 3.531 kB / 0.6251 GB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.166e-05/1.254, allocations: 14.19 kB / 0.6251 GB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01753/1.272, allocations: 8.482 MB / 0.6334 GB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.815e-05/1.272, allocations: 3.281 kB / 0.6334 GB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002092/1.274, allocations: 373.7 kB / 0.6338 GB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001804/1.276, allocations: 0.6612 MB / 0.6344 GB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002201/1.276, allocations: 10.88 kB / 0.6344 GB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005999/1.282, allocations: 4.818 MB / 0.6391 GB, free: 100.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.282, allocations: 0 / 0.6391 GB, free: 100.8 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00978/1.292, allocations: 7.047 MB / 0.646 GB, free: 98.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002159/1.294, allocations: 0.7198 MB / 0.6467 GB, free: 97.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006812/1.295, allocations: 0 / 0.6467 GB, free: 97.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/1.296, allocations: 68.97 kB / 0.6468 GB, free: 97.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002547/1.297, allocations: 96.62 kB / 0.6469 GB, free: 97.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/1.297, allocations: 59.08 kB / 0.6469 GB, free: 97.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.004798/1.302, allocations: 2.315 MB / 0.6492 GB, free: 96.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007895/1.31, allocations: 0.9707 MB / 0.6502 GB, free: 96.84 MB / 362.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.0005525/1.31, allocations: 147.2 kB / 0.6503 GB, free: 96.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01011/1.32, allocations: 5.897 MB / 0.6561 GB, free: 94.69 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.864e-06/1.32, allocations: 0 / 0.6561 GB, free: 94.69 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003993/1.324, allocations: 2.055 MB / 0.6581 GB, free: 93.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003695/1.328, allocations: 354.6 kB / 0.6584 GB, free: 93.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02989/1.358, allocations: 8.96 MB / 0.6671 GB, free: 86.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009339/1.368, allocations: 4.057 MB / 0.6711 GB, free: 83.48 MB / 362.7 MB Notification: Performance of SimCode: time 3.727e-06/1.368, allocations: 0 / 0.6711 GB, free: 83.48 MB / 362.7 MB Notification: Performance of Templates: time 0.1273/1.495, allocations: 41.8 MB / 0.7119 GB, free: 51.73 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1)