Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.7374/0.7374, allocations: 110.8 MB / 118 MB, free: 14.61 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001714/0.001714, allocations: 152 kB / 143.7 MB, free: 4.934 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 5.189e-06/5.22e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04289/0.04291, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1449/0.1879, allocations: 50.67 MB / 249.3 MB, free: 1.98 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001593/0.1881, allocations: 72.52 kB / 249.4 MB, free: 1.969 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.9454/1.134, allocations: 256.7 MB / 0.4942 GB, free: 15.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0007088/1.134, allocations: 183.9 kB / 0.4944 GB, free: 15.75 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2972 * Number of variables: 2972 Notification: Performance of Generate backend data structure: time 0.06573/1.2, allocations: 11.95 MB / 0.5061 GB, free: 3.711 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.119e-05/1.2, allocations: 8.031 kB / 0.5061 GB, free: 3.703 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3149/1.515, allocations: 37.68 MB / 0.5429 GB, free: 35.24 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03977/1.555, allocations: 15.52 MB / 0.558 GB, free: 34.57 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006257/1.555, allocations: 282.9 kB / 0.5583 GB, free: 34.57 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00673/1.562, allocations: 0.5045 MB / 0.5588 GB, free: 34.55 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03806/1.6, allocations: 21.74 MB / 0.58 GB, free: 30.52 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06135/1.662, allocations: 25.21 MB / 0.6047 GB, free: 9.043 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007677/1.663, allocations: 73.91 kB / 0.6047 GB, free: 9 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006711/1.669, allocations: 32 kB / 0.6048 GB, free: 8.969 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1585/1.828, allocations: 10.43 MB / 0.6149 GB, free: 30.55 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7348/2.563, allocations: 159.3 MB / 0.7705 GB, free: 33.3 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01/2.573, allocations: 8.066 MB / 0.7784 GB, free: 32.41 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008081/2.581, allocations: 6.733 MB / 0.7849 GB, free: 32.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1039/2.685, allocations: 32.65 MB / 0.8168 GB, free: 21.46 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.826e-05/2.685, allocations: 74.22 kB / 0.8169 GB, free: 21.38 MB / 282.7 MB Notification: Performance of pre-optimization done (n=338): time 7.865e-06/2.685, allocations: 0 / 0.8169 GB, free: 21.38 MB / 282.7 MB Notification: Performance of matching and sorting (n=448): time 0.2305/2.915, allocations: 52.16 MB / 0.8678 GB, free: 52.04 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.42e-05/2.915, allocations: 331.9 kB / 0.8681 GB, free: 51.69 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01167/2.927, allocations: 7.003 MB / 0.875 GB, free: 51.06 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001498/2.929, allocations: 25.7 kB / 0.875 GB, free: 51.03 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003501/2.932, allocations: 5.705 MB / 0.8806 GB, free: 47.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002831/2.935, allocations: 1.655 MB / 0.8822 GB, free: 46.45 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/2.936, allocations: 0 / 0.8822 GB, free: 46.45 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0005533/2.937, allocations: 0.8328 MB / 0.883 GB, free: 46.11 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008717/2.946, allocations: 6.729 MB / 0.8896 GB, free: 46.08 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01346/2.959, allocations: 13.56 MB / 0.9028 GB, free: 36.08 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/2.971, allocations: 8.62 MB / 0.9112 GB, free: 33.37 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003046/2.972, allocations: 70.56 kB / 0.9113 GB, free: 33.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=1615) (initialization): time 0.2222/3.194, allocations: 29.95 MB / 0.9406 GB, free: 49.65 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/3.194, allocations: 6.656 kB / 0.9406 GB, free: 49.65 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04654/3.241, allocations: 17.75 MB / 0.9579 GB, free: 49.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04265/3.283, allocations: 11.43 MB / 0.9691 GB, free: 49.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01148/3.295, allocations: 2.865 MB / 0.9719 GB, free: 49.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03942/3.334, allocations: 28.87 MB / 1 GB, free: 43.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01995/3.354, allocations: 1.712 MB / 1.002 GB, free: 43.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003584/3.358, allocations: 0.9327 MB / 1.003 GB, free: 43.63 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1105 * Number of states: 0 () * Number of discrete variables: 60 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],bodyCylinder4.color[3],bodyCylinder4.color[2],bodyCylinder4.color[1],bodyCylinder4.body.sphereColor[3],bodyCylinder4.body.sphereColor[2],bodyCylinder4.body.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],spherical2.sphereColor[3],spherical2.sphereColor[2],spherical2.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (1449): * Single equations (assignments): 1426 * Array equations: 17 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 38,(5,100.0%) 40} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.00267/3.361, allocations: 0.714 MB / 1.003 GB, free: 43.32 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001808/3.362, allocations: 0.7271 MB / 1.004 GB, free: 43.26 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01981/3.382, allocations: 11.57 MB / 1.015 GB, free: 33.96 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1739/3.556, allocations: 12.33 MB / 1.027 GB, free: 47.03 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001083/3.556, allocations: 22.83 kB / 1.027 GB, free: 47.03 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001583/3.556, allocations: 16.31 kB / 1.027 GB, free: 47.03 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09637/3.653, allocations: 34.3 MB / 1.061 GB, free: 45.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.328e-05/3.653, allocations: 7.219 kB / 1.061 GB, free: 45.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004431/3.657, allocations: 0.6599 MB / 1.062 GB, free: 45.92 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01361/3.671, allocations: 3.796 MB / 1.065 GB, free: 45.85 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001618/3.673, allocations: 140 kB / 1.065 GB, free: 45.85 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02543/3.698, allocations: 21.65 MB / 1.087 GB, free: 35.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001388/3.699, allocations: 2.787 MB / 1.089 GB, free: 33.12 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03505/3.734, allocations: 21.79 MB / 1.111 GB, free: 25.02 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006236/3.741, allocations: 1.948 MB / 1.112 GB, free: 24.45 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003581/3.744, allocations: 36.61 kB / 1.112 GB, free: 24.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01382/3.758, allocations: 1.302 MB / 1.114 GB, free: 24.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001632/3.76, allocations: 214.8 kB / 1.114 GB, free: 24.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001663/3.762, allocations: 290.6 kB / 1.114 GB, free: 24.37 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.01118/3.773, allocations: 4.802 MB / 1.119 GB, free: 22.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.01822/3.791, allocations: 2.365 MB / 1.121 GB, free: 20.33 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],fixedRotation1.frame_b.R.w[1],fixedRotation1.frame_b.R.w[2],fixedRotation1.frame_b.R.w[3],revolute.phi,revolute.w,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],rotor1D.phi,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3],rotor1D.rotorWith3DEffects.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (320): * Single equations (assignments): 299 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(5,100.0%) 35,(1,100.0%) 1,(3,100.0%) 33,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001871/3.793, allocations: 189.3 kB / 1.121 GB, free: 20.2 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.1661/3.959, allocations: 18.2 MB / 1.139 GB, free: 47.4 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.417e-06/3.959, allocations: 0 / 1.139 GB, free: 47.4 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02033/3.979, allocations: 8.29 MB / 1.147 GB, free: 46.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006065/3.986, allocations: 0.8286 MB / 1.148 GB, free: 46.51 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04978/4.035, allocations: 21.15 MB / 1.169 GB, free: 43.17 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01749/4.053, allocations: 7.836 MB / 1.176 GB, free: 42.23 MB / 282.7 MB Notification: Performance of SimCode: time 1.352e-06/4.053, allocations: 0 / 1.176 GB, free: 42.23 MB / 282.7 MB Notification: Performance of Templates: time 0.5086/4.562, allocations: 147.3 MB / 1.32 GB, free: 47.01 MB / 282.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1)