Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002119/0.002123, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.267/2.267, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 86.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003924/0.0003927, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09818/0.09861, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects): time 0.3926/0.4912, allocations: 80.96 MB / 455.6 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05801/0.5493, allocations: 18.51 MB / 474.1 MB, free: 8.684 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01972/0.5691, allocations: 430.8 kB / 474.5 MB, free: 8.262 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01575/0.5849, allocations: 4.075 MB / 478.6 MB, free: 4.168 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04812/0.6331, allocations: 11.73 MB / 490.3 MB, free: 8.414 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007853/0.6409, allocations: 1.272 MB / 491.6 MB, free: 7.141 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.1447/0.7856, allocations: 52.66 MB / 0.5315 GB, free: 2.434 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3408/1.127, allocations: 7.771 MB / 0.5391 GB, free: 53.23 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005968/1.133, allocations: 2.068 MB / 0.5411 GB, free: 53.23 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006578/1.139, allocations: 2.658 MB / 0.5437 GB, free: 53.21 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002426/1.142, allocations: 238.3 kB / 0.5439 GB, free: 53.21 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005409/1.147, allocations: 1.346 MB / 0.5452 GB, free: 53.21 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00589/1.153, allocations: 3.094 MB / 0.5483 GB, free: 53.21 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00389/1.157, allocations: 1.465 MB / 0.5497 GB, free: 53.18 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01567/1.173, allocations: 9.812 MB / 0.5593 GB, free: 50.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/1.173, allocations: 0 / 0.5593 GB, free: 50.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.173, allocations: 0 / 0.5593 GB, free: 50.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005023/1.173, allocations: 0 / 0.5593 GB, free: 50.43 MB / 410.7 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.04673/1.22, allocations: 8.564 MB / 0.5676 GB, free: 45.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/1.22, allocations: 14.09 kB / 0.5677 GB, free: 45.65 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004767/1.225, allocations: 1.075 MB / 0.5687 GB, free: 45.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1885/1.413, allocations: 19.41 MB / 0.5877 GB, free: 30.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02554/1.439, allocations: 8.024 MB / 0.5955 GB, free: 24.94 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004821/1.44, allocations: 382 kB / 0.5959 GB, free: 24.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004272/1.444, allocations: 0.6829 MB / 0.5965 GB, free: 24.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05266/1.497, allocations: 17.1 MB / 0.6132 GB, free: 10.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004252/1.497, allocations: 91.7 kB / 0.6133 GB, free: 10.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001887/1.499, allocations: 247.2 kB / 0.6136 GB, free: 10.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006979/1.506, allocations: 2.771 MB / 0.6163 GB, free: 8.215 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05009/1.556, allocations: 14.67 MB / 0.6306 GB, free: 13.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1305/1.687, allocations: 67.49 MB / 0.6965 GB, free: 4.938 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05482/1.742, allocations: 9.088 MB / 0.7054 GB, free: 11.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002297/1.744, allocations: 1.032 MB / 0.7064 GB, free: 10.53 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.627e-05/1.744, allocations: 71.61 kB / 0.7064 GB, free: 10.45 MB / 490.7 MB Notification: Performance of pre-optimization done (n=268): time 8.065e-06/1.744, allocations: 0 / 0.7064 GB, free: 10.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=348): time 0.5668/2.311, allocations: 55.06 MB / 0.7602 GB, free: 181.6 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002517/2.313, allocations: 3.255 MB / 0.7634 GB, free: 178.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01564/2.329, allocations: 8.234 MB / 0.7714 GB, free: 171.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001321/2.331, allocations: 79.42 kB / 0.7715 GB, free: 171.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004191/2.335, allocations: 4.828 MB / 0.7762 GB, free: 166.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002541/2.337, allocations: 1.323 MB / 0.7775 GB, free: 165.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001133/2.338, allocations: 195.1 kB / 0.7777 GB, free: 165 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005157/2.339, allocations: 0.7118 MB / 0.7784 GB, free: 164.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01123/2.35, allocations: 5.043 MB / 0.7833 GB, free: 159.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01887/2.369, allocations: 10.27 MB / 0.7933 GB, free: 146.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02269/2.392, allocations: 7.026 MB / 0.8002 GB, free: 139.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002085/2.392, allocations: 55.94 kB / 0.8003 GB, free: 139.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=1242) (initialization): time 0.1576/2.55, allocations: 32.41 MB / 0.8319 GB, free: 107.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/2.55, allocations: 84 kB / 0.832 GB, free: 107 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08837/2.638, allocations: 21.74 MB / 0.8532 GB, free: 85.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09261/2.731, allocations: 16.87 MB / 0.8697 GB, free: 68.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0207/2.752, allocations: 2.257 MB / 0.8719 GB, free: 66.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1016/2.853, allocations: 37.03 MB / 0.9081 GB, free: 28.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01415/2.868, allocations: 0.77 MB / 0.9088 GB, free: 27.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002631/2.87, allocations: 0.5949 MB / 0.9094 GB, free: 27.13 MB / 490.7 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.01191/2.882, allocations: 3.418 MB / 0.9127 GB, free: 23.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002495/2.885, allocations: 0.6827 MB / 0.9134 GB, free: 23.01 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.333/3.218, allocations: 11.33 MB / 0.9245 GB, free: 177.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03319/3.251, allocations: 10.01 MB / 0.9342 GB, free: 175.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.956e-05/3.251, allocations: 18.69 kB / 0.9343 GB, free: 175.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-05/3.251, allocations: 16.36 kB / 0.9343 GB, free: 175.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07223/3.324, allocations: 25.56 MB / 0.9592 GB, free: 166.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.562e-05/3.324, allocations: 0 / 0.9592 GB, free: 166.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007503/3.331, allocations: 0.755 MB / 0.96 GB, free: 166.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02367/3.355, allocations: 4.119 MB / 0.964 GB, free: 165.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00137/3.356, allocations: 136.2 kB / 0.9641 GB, free: 165.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04854/3.405, allocations: 24.38 MB / 0.9879 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002538/3.407, allocations: 2.997 MB / 0.9909 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04388/3.451, allocations: 17.68 MB / 1.008 GB, free: 121.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005565/3.457, allocations: 1.475 MB / 1.01 GB, free: 120.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002137/3.459, allocations: 83.92 kB / 1.01 GB, free: 120.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008122/3.467, allocations: 319.5 kB / 1.01 GB, free: 119.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002062/3.469, allocations: 289.3 kB / 1.01 GB, free: 119.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006537/3.47, allocations: 140.5 kB / 1.01 GB, free: 119.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01268/3.483, allocations: 5.353 MB / 1.016 GB, free: 114.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.32e-07/3.483, allocations: 0 / 1.016 GB, free: 114.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01409/3.497, allocations: 2.181 MB / 1.018 GB, free: 111.9 MB / 490.7 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.04698/3.544, allocations: 18.85 MB / 1.036 GB, free: 93.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03069/3.575, allocations: 12.93 MB / 1.049 GB, free: 80.17 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/3.575, allocations: 0 / 1.049 GB, free: 80.17 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01303/3.588, allocations: 5.6 MB / 1.054 GB, free: 74.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008484/3.596, allocations: 0.9524 MB / 1.055 GB, free: 73.55 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3929/3.989, allocations: 165.8 MB / 1.217 GB, free: 78.76 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0147/4.004, allocations: 5.517 MB / 1.222 GB, free: 77.87 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01086/4.015, allocations: 3.889 MB / 1.226 GB, free: 77.86 MB / 490.7 MB Notification: Performance of SimCode: time 1.163e-06/4.015, allocations: 3.938 kB / 1.226 GB, free: 77.86 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.533/11.55, allocations: 347.5 MB / 1.566 GB, free: 131.3 MB / 490.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1)