Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.001319, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001559/0.001559, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001388, allocations: 68.95 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects): time 0.2188/0.3204, allocations: 17.45 MB / 375 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01289/0.3334, allocations: 5.771 MB / 380.8 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004812/0.3382, allocations: 142.6 kB / 380.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01031/0.3486, allocations: 5.197 MB / 386.1 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01267/0.3613, allocations: 3.084 MB / 389.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004105/0.3655, allocations: 1.418 MB / 390.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01755/0.3831, allocations: 11.08 MB / 401.7 MB, free: 14.85 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008734/0.3919, allocations: 6.182 MB / 407.9 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006953/0.3988, allocations: 3.045 MB / 410.9 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008279/0.4072, allocations: 4.035 MB / 415 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002672/0.4099, allocations: 0.5781 MB / 415.6 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005987/0.4159, allocations: 1.884 MB / 417.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005942/0.4219, allocations: 3.702 MB / 421.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009953/0.4319, allocations: 4.102 MB / 425.2 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0203/0.4522, allocations: 12.28 MB / 437.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.4523, allocations: 7.938 kB / 437.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.4523, allocations: 0 / 437.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005512/0.4529, allocations: 0 / 437.5 MB, free: 11.27 MB / 350.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.03881/0.4917, allocations: 9.869 MB / 447.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.663e-05/0.4918, allocations: 12.03 kB / 447.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004554/0.4964, allocations: 1.079 MB / 448.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08898/0.5854, allocations: 16.62 MB / 465.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02128/0.6067, allocations: 8.086 MB / 473.2 MB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005095/0.6073, allocations: 381.8 kB / 473.6 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003425/0.6107, allocations: 0.6789 MB / 474.3 MB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04213/0.6529, allocations: 16.9 MB / 491.2 MB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005788/0.6535, allocations: 83.3 kB / 491.2 MB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002724/0.6562, allocations: 243.8 kB / 491.5 MB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005321/0.6616, allocations: 2.77 MB / 494.2 MB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03581/0.6975, allocations: 14.44 MB / 0.4968 GB, free: 2.723 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5354/1.233, allocations: 67.09 MB / 0.5623 GB, free: 95.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02738/1.26, allocations: 8.989 MB / 0.5711 GB, free: 92.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004629/1.265, allocations: 4.513 MB / 0.5755 GB, free: 90.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001095/1.266, allocations: 1.04 MB / 0.5765 GB, free: 89.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.452e-05/1.266, allocations: 63.41 kB / 0.5765 GB, free: 89.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=268): time 5.531e-06/1.266, allocations: 3.469 kB / 0.5766 GB, free: 89.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=348): time 0.1474/1.414, allocations: 54.04 MB / 0.6293 GB, free: 45.87 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001645/1.415, allocations: 3.417 MB / 0.6327 GB, free: 42.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008125/1.423, allocations: 7.496 MB / 0.64 GB, free: 34.65 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009145/1.424, allocations: 81.53 kB / 0.6401 GB, free: 34.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002428/1.427, allocations: 5.125 MB / 0.6451 GB, free: 29.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001527/1.428, allocations: 1.328 MB / 0.6464 GB, free: 28.13 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002313/1.431, allocations: 2.003 MB / 0.6483 GB, free: 26.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.075e-05/1.431, allocations: 301.1 kB / 0.6486 GB, free: 25.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005327/1.436, allocations: 5.082 MB / 0.6536 GB, free: 20.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007424/1.444, allocations: 10.35 MB / 0.6637 GB, free: 7.887 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01604/1.46, allocations: 16.47 MB / 0.6798 GB, free: 4.914 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001187/1.46, allocations: 52 kB / 0.6798 GB, free: 4.863 MB / 462.1 MB Notification: Performance of matching and sorting (n=1242) (initialization): time 0.07242/1.532, allocations: 33.19 MB / 0.7122 GB, free: 3.609 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002543/1.532, allocations: 80 kB / 0.7123 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2278/1.76, allocations: 22.16 MB / 0.7339 GB, free: 162.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04323/1.804, allocations: 17.26 MB / 0.7508 GB, free: 156.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007257/1.811, allocations: 2.259 MB / 0.753 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04294/1.854, allocations: 38.67 MB / 0.7908 GB, free: 121.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008785/1.863, allocations: 0.7664 MB / 0.7915 GB, free: 120.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002301/1.865, allocations: 0.5897 MB / 0.7921 GB, free: 120.2 MB / 494.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 (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 {(4,41,100.0%), (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.007096/1.872, allocations: 3.423 MB / 0.7954 GB, free: 116.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002027/1.874, allocations: 0.6673 MB / 0.7961 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01877/1.893, allocations: 11.34 MB / 0.8071 GB, free: 105.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01633/1.909, allocations: 10.01 MB / 0.8169 GB, free: 95.14 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.583e-05/1.909, allocations: 23.94 kB / 0.8169 GB, free: 95.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-05/1.91, allocations: 15.94 kB / 0.817 GB, free: 95.11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04822/1.958, allocations: 25.51 MB / 0.8419 GB, free: 69.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.808e-05/1.958, allocations: 4 kB / 0.8419 GB, free: 69.72 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003965/1.962, allocations: 0.7545 MB / 0.8426 GB, free: 68.97 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01291/1.975, allocations: 4.132 MB / 0.8467 GB, free: 64.91 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001205/1.976, allocations: 131.8 kB / 0.8468 GB, free: 64.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02687/2.003, allocations: 25.42 MB / 0.8716 GB, free: 38.83 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001572/2.004, allocations: 3.133 MB / 0.8747 GB, free: 35.42 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02744/2.032, allocations: 17.14 MB / 0.8914 GB, free: 18.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001866/2.034, allocations: 0.715 MB / 0.8921 GB, free: 17.69 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002248/2.036, allocations: 79.97 kB / 0.8922 GB, free: 17.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004929/2.041, allocations: 319.5 kB / 0.8925 GB, free: 17.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2048/2.246, allocations: 282.4 kB / 0.8928 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005538/2.247, allocations: 137 kB / 0.8929 GB, free: 158.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.009876/2.256, allocations: 4.779 MB / 0.8976 GB, free: 157.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.41e-07/2.256, allocations: 0 / 0.8976 GB, free: 157.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01172/2.268, allocations: 2.131 MB / 0.8996 GB, free: 157.9 MB / 494.1 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 (242): * Single equations (assignments): 232 * 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 {(5,34,100.0%), (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.02874/2.297, allocations: 17.85 MB / 0.9171 GB, free: 153.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02355/2.321, allocations: 15.37 MB / 0.9321 GB, free: 148.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/2.321, allocations: 0 / 0.9321 GB, free: 148.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009038/2.33, allocations: 5.612 MB / 0.9376 GB, free: 145.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00964/2.339, allocations: 1.047 MB / 0.9386 GB, free: 144.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3922/2.732, allocations: 145.8 MB / 1.081 GB, free: 147.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006278/2.738, allocations: 5.327 MB / 1.086 GB, free: 146.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007466/2.745, allocations: 3.194 MB / 1.089 GB, free: 146.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004603/2.75, allocations: 3.807 MB / 1.093 GB, free: 146.6 MB / 494.1 MB Notification: Performance of SimCode: time 8.71e-07/2.75, allocations: 0 / 1.093 GB, free: 146.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.464/5.214, allocations: 184.6 MB / 1.273 GB, free: 152.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.09/24.31, allocations: 2.344 kB / 1.273 GB, free: 152.2 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1)