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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 205.1 MB / 222.4 MB, free: 4.555 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 51.94 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3369, allocations: 46.63 MB / 325.3 MB, free: 1.891 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects): time 0.01838/0.3553, allocations: 17.59 MB / 342.9 MB, free: 2.301 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01419/0.3696, allocations: 5.715 MB / 348.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004674/0.3743, allocations: 147.5 kB / 348.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01016/0.3845, allocations: 5.218 MB / 354 MB, free: 7.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.395, allocations: 3.147 MB / 357.1 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003725/0.3988, allocations: 1.412 MB / 358.5 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01482/0.4136, allocations: 10.09 MB / 368.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009681/0.4233, allocations: 6.18 MB / 374.8 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005571/0.4289, allocations: 3.065 MB / 377.9 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006078/0.4351, allocations: 4.054 MB / 381.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002025/0.4371, allocations: 0.582 MB / 382.5 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004445/0.4416, allocations: 1.892 MB / 384.4 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004117/0.4457, allocations: 3.729 MB / 388.1 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006516/0.4523, allocations: 4.004 MB / 392.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01535/0.4677, allocations: 12.07 MB / 404.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.4677, allocations: 0 / 404.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4677, allocations: 4 kB / 404.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004734/0.4682, allocations: 0 / 404.2 MB, free: 4.75 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2276 * Number of variables: 2276 Notification: Performance of Generate backend data structure: time 0.03146/0.4997, allocations: 9.525 MB / 413.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.4997, allocations: 19.89 kB / 413.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03425/0.534, allocations: 8.702 MB / 422.5 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01594/0.55, allocations: 7.25 MB / 429.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000323/0.5503, allocations: 377.8 kB / 430.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002672/0.553, allocations: 0.6867 MB / 430.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03708/0.5901, allocations: 17.17 MB / 447.9 MB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002897/0.5905, allocations: 87.2 kB / 448 MB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001027/0.5915, allocations: 243.8 kB / 448.3 MB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004336/0.5958, allocations: 2.778 MB / 451 MB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4298/1.026, allocations: 14.95 MB / 466 MB, free: 98.24 MB / 382.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0895/1.115, allocations: 68.36 MB / 0.5218 GB, free: 34.85 MB / 382.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04136/1.157, allocations: 9.243 MB / 0.5308 GB, free: 25.45 MB / 382.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007779/1.164, allocations: 4.738 MB / 0.5355 GB, free: 20.7 MB / 382.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001726/1.166, allocations: 1.037 MB / 0.5365 GB, free: 19.52 MB / 382.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001049/1.166, allocations: 68.5 kB / 0.5366 GB, free: 19.44 MB / 382.2 MB Notification: Performance of pre-optimization done (n=268): time 8.155e-06/1.166, allocations: 0 / 0.5366 GB, free: 19.44 MB / 382.2 MB Notification: Performance of matching and sorting (n=351): time 0.1868/1.353, allocations: 59.88 MB / 0.595 GB, free: 7.152 MB / 430.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002552/1.356, allocations: 3.413 MB / 0.5984 GB, free: 3.387 MB / 430.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.25/1.606, allocations: 7.501 MB / 0.6057 GB, free: 138.4 MB / 430.2 MB Notification: Performance of collectPreVariables (initialization): time 0.001266/1.607, allocations: 79.12 kB / 0.6058 GB, free: 138.4 MB / 430.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.003774/1.611, allocations: 5.042 MB / 0.6107 GB, free: 135.5 MB / 430.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.00222/1.613, allocations: 1.346 MB / 0.612 GB, free: 134.5 MB / 430.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003526/1.617, allocations: 2.169 MB / 0.6141 GB, free: 133.5 MB / 430.2 MB Notification: Performance of setup shared object (initialization): time 5.926e-05/1.617, allocations: 304.6 kB / 0.6144 GB, free: 133.2 MB / 430.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00634/1.623, allocations: 5.519 MB / 0.6198 GB, free: 131.4 MB / 430.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01058/1.634, allocations: 10.85 MB / 0.6304 GB, free: 122.5 MB / 430.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01737/1.651, allocations: 17.24 MB / 0.6472 GB, free: 109.2 MB / 430.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001584/1.651, allocations: 53.31 kB / 0.6473 GB, free: 109.1 MB / 430.2 MB Notification: Performance of matching and sorting (n=1334) (initialization): time 0.07396/1.725, allocations: 34.83 MB / 0.6813 GB, free: 76.56 MB / 430.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003057/1.726, allocations: 85.88 kB / 0.6814 GB, free: 76.48 MB / 430.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04954/1.775, allocations: 23.7 MB / 0.7045 GB, free: 52.74 MB / 430.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.045/1.82, allocations: 17.88 MB / 0.722 GB, free: 34.82 MB / 430.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008599/1.829, allocations: 2.394 MB / 0.7243 GB, free: 32.42 MB / 430.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2948/2.124, allocations: 41.47 MB / 0.7648 GB, free: 133 MB / 446.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01135/2.135, allocations: 0.817 MB / 0.7656 GB, free: 133 MB / 446.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00236/2.138, allocations: 0.6111 MB / 0.7662 GB, free: 133 MB / 446.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 833 * Number of states: 0 () * Number of discrete variables: 63 (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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1168): * Single equations (assignments): 1151 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,39,91.7%), (3,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,9), (4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.007517/2.145, allocations: 3.442 MB / 0.7696 GB, free: 132.3 MB / 446.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001999/2.147, allocations: 0.6528 MB / 0.7702 GB, free: 132.3 MB / 446.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02362/2.171, allocations: 12.87 MB / 0.7828 GB, free: 128.2 MB / 446.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02141/2.192, allocations: 11.54 MB / 0.7941 GB, free: 124.8 MB / 446.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.773e-05/2.192, allocations: 15.41 kB / 0.7941 GB, free: 124.8 MB / 446.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.553e-05/2.192, allocations: 19.89 kB / 0.7941 GB, free: 124.8 MB / 446.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05268/2.245, allocations: 27.09 MB / 0.8206 GB, free: 104.4 MB / 446.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.364e-05/2.245, allocations: 4 kB / 0.8206 GB, free: 104.4 MB / 446.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004082/2.249, allocations: 0.7643 MB / 0.8213 GB, free: 103.6 MB / 446.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01632/2.266, allocations: 5.337 MB / 0.8265 GB, free: 98.36 MB / 446.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001749/2.268, allocations: 138 kB / 0.8266 GB, free: 98.22 MB / 446.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03201/2.3, allocations: 28.34 MB / 0.8543 GB, free: 69.46 MB / 446.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001698/2.301, allocations: 3.134 MB / 0.8574 GB, free: 66.05 MB / 446.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03145/2.333, allocations: 19.02 MB / 0.876 GB, free: 47.28 MB / 446.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006534/2.339, allocations: 1.502 MB / 0.8774 GB, free: 45.79 MB / 446.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004767/2.344, allocations: 83.66 kB / 0.8775 GB, free: 45.71 MB / 446.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006571/2.351, allocations: 355.5 kB / 0.8778 GB, free: 45.36 MB / 446.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001929/2.353, allocations: 294 kB / 0.8781 GB, free: 45.07 MB / 446.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001017/2.354, allocations: 135.9 kB / 0.8783 GB, free: 44.94 MB / 446.2 MB Notification: Performance of sorting global known variables: time 0.009988/2.364, allocations: 4.766 MB / 0.8829 GB, free: 40.21 MB / 446.2 MB Notification: Performance of sort global known variables: time 9.41e-07/2.364, allocations: 0 / 0.8829 GB, free: 40.21 MB / 446.2 MB Notification: Performance of remove unused functions: time 0.01373/2.378, allocations: 2.284 MB / 0.8851 GB, free: 37.93 MB / 446.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],bodyCylinder1.body.w_a[1],bodyCylinder1.body.w_a[2],bodyCylinder1.body.w_a[3],revolute.phi,revolute.w,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (245): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(6,33,91.7%), (3,33,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001492/2.379, allocations: 226 kB / 0.8854 GB, free: 37.71 MB / 446.2 MB Notification: Performance of simCode: created initialization part: time 0.0242/2.403, allocations: 16.51 MB / 0.9015 GB, free: 21.17 MB / 446.2 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/2.403, allocations: 4.25 kB / 0.9015 GB, free: 21.16 MB / 446.2 MB Notification: Performance of simCode: created simulation system equations: time 0.008531/2.412, allocations: 5.94 MB / 0.9073 GB, free: 15.11 MB / 446.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01147/2.423, allocations: 0.9715 MB / 0.9082 GB, free: 14.15 MB / 446.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2909/2.714, allocations: 19.99 MB / 0.9278 GB, free: 131.8 MB / 446.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01177/2.726, allocations: 5.36 MB / 0.933 GB, free: 131 MB / 446.2 MB Notification: Performance of simCode: alias equations: time 0.01423/2.74, allocations: 3.202 MB / 0.9361 GB, free: 130.9 MB / 446.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003448/2.744, allocations: 0.5634 MB / 0.9367 GB, free: 130.9 MB / 446.2 MB Notification: Performance of SimCode: time 1.153e-06/2.744, allocations: 0 / 0.9367 GB, free: 130.9 MB / 446.2 MB Notification: Performance of Templates: time 0.2236/2.968, allocations: 119.7 MB / 1.054 GB, free: 26.83 MB / 446.2 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)