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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 225.4 MB / 240.1 MB, free: 15.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001178/0.001179, allocations: 87.38 kB / 292.1 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.287e-05/4.323e-05, allocations: 4 kB / 350.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1217, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4109/0.5326, allocations: 100.5 MB / 0.4908 GB, free: 5.324 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.5329, allocations: 86.69 kB / 0.4909 GB, free: 5.281 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7313/1.264, allocations: 158.5 MB / 0.6456 GB, free: 74.85 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1.264, allocations: 3.938 kB / 0.6457 GB, free: 74.84 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007287/1.265, allocations: 146.1 kB / 0.6458 GB, free: 74.84 MB / 442.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.04119/1.306, allocations: 8.795 MB / 0.6544 GB, free: 71.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.516e-05/1.306, allocations: 11.22 kB / 0.6544 GB, free: 71.39 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006769/1.313, allocations: 1.158 MB / 0.6555 GB, free: 70.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06467/1.378, allocations: 17.82 MB / 0.6729 GB, free: 63.03 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03261/1.41, allocations: 11.36 MB / 0.684 GB, free: 54.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006752/1.411, allocations: 0.4925 MB / 0.6845 GB, free: 53.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00423/1.415, allocations: 0.6651 MB / 0.6851 GB, free: 53.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04672/1.462, allocations: 16.77 MB / 0.7015 GB, free: 35.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007737/1.463, allocations: 111 kB / 0.7016 GB, free: 35 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00409/1.467, allocations: 323.6 kB / 0.7019 GB, free: 34.72 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00254/1.47, allocations: 1.468 MB / 0.7034 GB, free: 33.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03245/1.502, allocations: 13.49 MB / 0.7165 GB, free: 19.73 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5208/2.023, allocations: 76.76 MB / 0.7915 GB, free: 47.98 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02652/2.05, allocations: 8.524 MB / 0.7998 GB, free: 47.28 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006133/2.056, allocations: 4.092 MB / 0.8038 GB, free: 47.24 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002146/2.058, allocations: 1.345 MB / 0.8051 GB, free: 46.11 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.792e-05/2.058, allocations: 69.62 kB / 0.8052 GB, free: 46.07 MB / 474.7 MB Notification: Performance of pre-optimization done (n=268): time 8.787e-06/2.058, allocations: 1.312 kB / 0.8052 GB, free: 46.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=354): time 0.1656/2.224, allocations: 46.67 MB / 0.8508 GB, free: 37.98 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00274/2.227, allocations: 3.229 MB / 0.8539 GB, free: 34.79 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01967/2.246, allocations: 6.455 MB / 0.8602 GB, free: 32.66 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00175/2.248, allocations: 78.16 kB / 0.8603 GB, free: 32.59 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007824/2.256, allocations: 5.197 MB / 0.8654 GB, free: 28.64 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002743/2.259, allocations: 1.345 MB / 0.8667 GB, free: 27.66 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002045/2.261, allocations: 193.4 kB / 0.8669 GB, free: 27.52 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001468/2.262, allocations: 0.7076 MB / 0.8676 GB, free: 27.04 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008294/2.271, allocations: 4.507 MB / 0.872 GB, free: 25.43 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01187/2.283, allocations: 9.809 MB / 0.8816 GB, free: 16.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/2.294, allocations: 6.55 MB / 0.888 GB, free: 14.38 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003477/2.294, allocations: 54 kB / 0.888 GB, free: 14.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.08815/2.382, allocations: 31.98 MB / 0.9192 GB, free: 7.938 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004923/2.383, allocations: 84 kB / 0.9193 GB, free: 7.855 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06008/2.443, allocations: 20.97 MB / 0.9398 GB, free: 2.84 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4438/2.887, allocations: 16.94 MB / 0.9563 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008996/2.896, allocations: 2.123 MB / 0.9584 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0558/2.952, allocations: 33.33 MB / 0.991 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01322/2.965, allocations: 0.7718 MB / 0.9917 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003861/2.969, allocations: 0.5606 MB / 0.9923 GB, free: 109.4 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 845 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1094): * Single equations (assignments): 1081 * Array equations: 7 * 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,(4,100.0%) 41} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.004898/2.974, allocations: 0.8121 MB / 0.993 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002957/2.977, allocations: 0.6675 MB / 0.9937 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02393/3.001, allocations: 10.23 MB / 1.004 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02005/3.021, allocations: 8.926 MB / 1.012 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.291e-05/3.021, allocations: 17.81 kB / 1.012 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-05/3.021, allocations: 21.06 kB / 1.012 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05628/3.077, allocations: 23.52 MB / 1.035 GB, free: 93.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-05/3.077, allocations: 3.906 kB / 1.035 GB, free: 93.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003436/3.081, allocations: 0.5648 MB / 1.036 GB, free: 93.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01356/3.095, allocations: 4.001 MB / 1.04 GB, free: 93.25 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001112/3.096, allocations: 106.9 kB / 1.04 GB, free: 93.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0286/3.124, allocations: 24 MB / 1.063 GB, free: 76.67 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001663/3.126, allocations: 2.958 MB / 1.066 GB, free: 73.58 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02716/3.153, allocations: 15.69 MB / 1.082 GB, free: 58.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003422/3.157, allocations: 0.7033 MB / 1.082 GB, free: 58.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002819/3.16, allocations: 95.86 kB / 1.082 GB, free: 57.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005845/3.165, allocations: 323.5 kB / 1.083 GB, free: 57.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001456/3.167, allocations: 248.7 kB / 1.083 GB, free: 57.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007945/3.168, allocations: 97.08 kB / 1.083 GB, free: 57.32 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01186/3.18, allocations: 4.61 MB / 1.088 GB, free: 52.75 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.91e-07/3.18, allocations: 0 / 1.088 GB, free: 52.75 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0146/3.194, allocations: 2.137 MB / 1.09 GB, free: 50.63 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],fixedRotation1.frame_b.R.w[1],fixedRotation1.frame_b.R.w[2],fixedRotation1.frame_b.R.w[3],revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (246): * Single equations (assignments): 235 * 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: 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 {(3,100.0%) 33,(1,100.0%) 1,(5,100.0%) 35,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03157/3.226, allocations: 16.72 MB / 1.106 GB, free: 33.84 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3625/3.588, allocations: 11.88 MB / 1.118 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/3.589, allocations: 2.031 kB / 1.118 GB, free: 117.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009575/3.598, allocations: 5.199 MB / 1.123 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007458/3.606, allocations: 0.9468 MB / 1.124 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05573/3.661, allocations: 18.77 MB / 1.142 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009811/3.671, allocations: 5.505 MB / 1.147 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01116/3.682, allocations: 3.182 MB / 1.15 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007921/3.69, allocations: 3.669 MB / 1.154 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.733e-06/3.69, allocations: 0 / 1.154 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6475/4.338, allocations: 176 MB / 1.326 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001964/4.338, allocations: 221.8 kB / 1.326 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.925/13.26, allocations: 0 / 1.326 GB, free: 104.1 MB / 0.4948 GB (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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat does not exist to compare? outputFormat=mat