Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.00102/0.00102, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0004847/0.0004852, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2918, allocations: 47.57 MB / 326.4 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects): time 0.07394/0.3658, allocations: 80.96 MB / 407.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0419/0.4077, allocations: 18.51 MB / 425.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01703/0.4248, allocations: 426.9 kB / 426.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01666/0.4415, allocations: 4.086 MB / 430.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03734/0.4789, allocations: 11.73 MB / 442.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005646/0.4845, allocations: 1.272 MB / 443.4 MB, free: 14.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2793/0.7639, allocations: 52.65 MB / 496.1 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009185/0.7731, allocations: 7.762 MB / 0.492 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00328/0.7764, allocations: 2.065 MB / 0.494 GB, free: 6.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003212/0.7797, allocations: 2.66 MB / 0.4966 GB, free: 4.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000923/0.7806, allocations: 240 kB / 0.4969 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002736/0.7834, allocations: 1.337 MB / 0.4982 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002747/0.7861, allocations: 3.091 MB / 0.5012 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001786/0.7879, allocations: 1.472 MB / 0.5026 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.7998, allocations: 9.81 MB / 0.5122 GB, free: 8.195 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.7999, allocations: 4 kB / 0.5122 GB, free: 8.191 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.7999, allocations: 0 / 0.5122 GB, free: 8.191 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004519/0.8004, allocations: 0 / 0.5122 GB, free: 8.191 MB / 398.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.03056/0.8309, allocations: 8.57 MB / 0.5206 GB, free: 276 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.831, allocations: 8.031 kB / 0.5206 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09286/0.9239, allocations: 19.4 MB / 0.5395 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02002/0.944, allocations: 8.033 MB / 0.5474 GB, free: 8.297 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003494/0.9444, allocations: 383.2 kB / 0.5477 GB, free: 8.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003101/0.9475, allocations: 0.6784 MB / 0.5484 GB, free: 7.629 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0379/0.9854, allocations: 17.11 MB / 0.5651 GB, free: 9.969 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003441/0.9858, allocations: 84.42 kB / 0.5652 GB, free: 9.918 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001131/0.9869, allocations: 248.2 kB / 0.5654 GB, free: 9.844 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004367/0.9913, allocations: 2.777 MB / 0.5681 GB, free: 7.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03428/1.026, allocations: 14.67 MB / 0.5825 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4594/1.485, allocations: 67.49 MB / 0.6484 GB, free: 149.7 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02704/1.512, allocations: 9.082 MB / 0.6572 GB, free: 148.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001134/1.513, allocations: 1.023 MB / 0.6582 GB, free: 147.9 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.408e-05/1.513, allocations: 73.77 kB / 0.6583 GB, free: 147.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=268): time 5.941e-06/1.513, allocations: 0 / 0.6583 GB, free: 147.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=348): time 0.1559/1.669, allocations: 55.08 MB / 0.7121 GB, free: 101.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001793/1.671, allocations: 3.271 MB / 0.7153 GB, free: 97.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0108/1.682, allocations: 8.233 MB / 0.7233 GB, free: 89.32 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001306/1.683, allocations: 75.03 kB / 0.7234 GB, free: 89.24 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00324/1.687, allocations: 5.154 MB / 0.7284 GB, free: 84.11 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002285/1.689, allocations: 1.327 MB / 0.7297 GB, free: 82.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007293/1.69, allocations: 186 kB / 0.7299 GB, free: 82.62 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004136/1.69, allocations: 0.707 MB / 0.7306 GB, free: 81.91 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005981/1.696, allocations: 5.043 MB / 0.7355 GB, free: 76.86 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008633/1.705, allocations: 10.27 MB / 0.7456 GB, free: 64.11 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009515/1.714, allocations: 7.038 MB / 0.7524 GB, free: 57.21 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001719/1.714, allocations: 52 kB / 0.7525 GB, free: 57.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=1242) (initialization): time 0.07013/1.785, allocations: 32.72 MB / 0.7844 GB, free: 24.42 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002629/1.785, allocations: 88.25 kB / 0.7845 GB, free: 24.34 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04952/1.834, allocations: 21.74 MB / 0.8057 GB, free: 2.555 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2588/2.093, allocations: 16.87 MB / 0.8222 GB, free: 167.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008396/2.102, allocations: 2.26 MB / 0.8244 GB, free: 167.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04627/2.148, allocations: 37.03 MB / 0.8606 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0111/2.159, allocations: 0.7684 MB / 0.8613 GB, free: 145.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002378/2.162, allocations: 0.593 MB / 0.8619 GB, free: 145.1 MB / 478.1 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 (1076): * Single equations (assignments): 1059 * Array equations: 11 * 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 {(4,100.0%) 41,(3,100.0%) 38} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.008013/2.17, allocations: 3.433 MB / 0.8653 GB, free: 141.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00216/2.172, allocations: 0.6713 MB / 0.8659 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01806/2.19, allocations: 11.33 MB / 0.877 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01652/2.206, allocations: 10.01 MB / 0.8868 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.258e-05/2.207, allocations: 20 kB / 0.8868 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.475e-05/2.207, allocations: 19.66 kB / 0.8868 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04725/2.254, allocations: 25.53 MB / 0.9117 GB, free: 94.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.845e-05/2.254, allocations: 7 kB / 0.9117 GB, free: 94.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003932/2.258, allocations: 0.7602 MB / 0.9125 GB, free: 93.86 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01254/2.271, allocations: 4.12 MB / 0.9165 GB, free: 89.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001071/2.272, allocations: 131.8 kB / 0.9166 GB, free: 89.67 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02532/2.297, allocations: 24.39 MB / 0.9404 GB, free: 64.82 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00154/2.299, allocations: 2.99 MB / 0.9434 GB, free: 61.57 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0253/2.324, allocations: 17.67 MB / 0.9606 GB, free: 43.93 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005256/2.329, allocations: 1.476 MB / 0.9621 GB, free: 42.43 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00212/2.331, allocations: 85.11 kB / 0.9622 GB, free: 42.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004699/2.336, allocations: 328.2 kB / 0.9625 GB, free: 42.03 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009593/2.337, allocations: 290.1 kB / 0.9627 GB, free: 41.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003453/2.337, allocations: 141 kB / 0.9629 GB, free: 41.61 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007812/2.345, allocations: 5.345 MB / 0.9681 GB, free: 36.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.11e-07/2.345, allocations: 2.938 kB / 0.9681 GB, free: 36.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01094/2.356, allocations: 2.179 MB / 0.9702 GB, free: 34.13 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (244): * Single equations (assignments): 234 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 3 * 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: 3 {(5,100.0%) 34,(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.0009191/2.357, allocations: 244.9 kB / 0.9705 GB, free: 33.89 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01754/2.375, allocations: 12.9 MB / 0.9831 GB, free: 20.99 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/2.375, allocations: 0 / 0.9831 GB, free: 20.99 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.229/2.604, allocations: 5.593 MB / 0.9885 GB, free: 169.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01204/2.616, allocations: 0.9552 MB / 0.9895 GB, free: 169.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05529/2.671, allocations: 21.97 MB / 1.011 GB, free: 161.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009161/2.68, allocations: 5.503 MB / 1.016 GB, free: 160.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008836/2.689, allocations: 3.217 MB / 1.019 GB, free: 160.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002902/2.692, allocations: 0.5684 MB / 1.02 GB, free: 160.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.553e-06/2.692, allocations: 3.656 kB / 1.02 GB, free: 160.6 MB / 478.1 MB Notification: Performance of Templates: time 0.1693/2.862, allocations: 109 MB / 1.126 GB, free: 57.32 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1) Environment - environmentSimulation: