Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001598/0.001598, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.95/1.95, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 78.72 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.896e-05/1.898e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1173, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4383/0.5557, allocations: 97.7 MB / 460.9 MB, free: 13.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.556, allocations: 79.39 kB / 461 MB, free: 13.92 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6839/1.24, allocations: 145.2 MB / 0.5919 GB, free: 85.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.24, allocations: 0 / 0.5919 GB, free: 85.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005762/1.241, allocations: 140.1 kB / 0.592 GB, free: 85.95 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.03881/1.279, allocations: 8.562 MB / 0.6004 GB, free: 81.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/1.279, allocations: 10.81 kB / 0.6004 GB, free: 81.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06284/1.342, allocations: 16.68 MB / 0.6167 GB, free: 66.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03447/1.377, allocations: 13.16 MB / 0.6296 GB, free: 53.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004274/1.377, allocations: 212 kB / 0.6298 GB, free: 53.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003166/1.381, allocations: 407.7 kB / 0.6301 GB, free: 53.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01875/1.399, allocations: 9.007 MB / 0.6389 GB, free: 44.19 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02959/1.429, allocations: 14.15 MB / 0.6528 GB, free: 28.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003502/1.429, allocations: 107 kB / 0.6529 GB, free: 28.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008859/1.43, allocations: 48 kB / 0.6529 GB, free: 28.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001868/1.432, allocations: 1.475 MB / 0.6543 GB, free: 26.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4097/1.842, allocations: 74.63 MB / 0.7272 GB, free: 47.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00905/1.851, allocations: 5.362 MB / 0.7325 GB, free: 46.81 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004902/1.856, allocations: 4.025 MB / 0.7364 GB, free: 46.76 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001599/1.857, allocations: 1.352 MB / 0.7377 GB, free: 45.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/1.858, allocations: 61.31 kB / 0.7378 GB, free: 45.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=268): time 5.52e-06/1.858, allocations: 1.969 kB / 0.7378 GB, free: 45.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=349): time 0.1104/1.968, allocations: 44.77 MB / 0.7815 GB, free: 32.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/1.968, allocations: 299.5 kB / 0.7818 GB, free: 32.63 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01096/1.979, allocations: 5.671 MB / 0.7873 GB, free: 30.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001315/1.98, allocations: 25.7 kB / 0.7873 GB, free: 30.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004381/1.985, allocations: 5.264 MB / 0.7925 GB, free: 26.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002534/1.987, allocations: 1.297 MB / 0.7938 GB, free: 25.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005685/1.988, allocations: 0 / 0.7938 GB, free: 25.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004696/1.988, allocations: 0.717 MB / 0.7945 GB, free: 24.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005169/1.994, allocations: 4.292 MB / 0.7986 GB, free: 20.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007675/2.001, allocations: 9.668 MB / 0.8081 GB, free: 9.305 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008123/2.009, allocations: 6.327 MB / 0.8143 GB, free: 4.219 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001001/2.01, allocations: 52 kB / 0.8143 GB, free: 4.168 MB / 426.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.07389/2.083, allocations: 30.17 MB / 0.8438 GB, free: 13.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001792/2.084, allocations: 89.88 kB / 0.8439 GB, free: 13.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05233/2.136, allocations: 20.27 MB / 0.8637 GB, free: 9.305 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4075/2.544, allocations: 16.52 MB / 0.8798 GB, free: 123.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01041/2.554, allocations: 2.155 MB / 0.8819 GB, free: 123.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04467/2.599, allocations: 31.45 MB / 0.9126 GB, free: 118 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01141/2.61, allocations: 0.5933 MB / 0.9132 GB, free: 118 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003084/2.613, allocations: 0.5758 MB / 0.9138 GB, free: 118 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 869 * 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 (1113): * Single equations (assignments): 1100 * 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,(5,100.0%) 40} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.003084/2.616, allocations: 0.5897 MB / 0.9143 GB, free: 117.8 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01819/2.635, allocations: 9.661 MB / 0.9238 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002526/2.637, allocations: 0.6348 MB / 0.9244 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01992/2.657, allocations: 9.739 MB / 0.9339 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01696/2.674, allocations: 8.551 MB / 0.9422 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.819e-05/2.674, allocations: 19.19 kB / 0.9423 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000111/2.674, allocations: 15.47 kB / 0.9423 GB, free: 108.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04793/2.722, allocations: 22.21 MB / 0.964 GB, free: 96.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-05/2.722, allocations: 2.25 kB / 0.964 GB, free: 96.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003182/2.726, allocations: 0.5522 MB / 0.9645 GB, free: 95.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01255/2.738, allocations: 3.969 MB / 0.9684 GB, free: 93.36 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001102/2.739, allocations: 55.45 kB / 0.9684 GB, free: 93.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02526/2.765, allocations: 22.76 MB / 0.9907 GB, free: 71.38 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001646/2.766, allocations: 2.842 MB / 0.9934 GB, free: 68.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02438/2.791, allocations: 15.07 MB / 1.008 GB, free: 53.07 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00469/2.796, allocations: 1.306 MB / 1.009 GB, free: 51.75 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002583/2.798, allocations: 35.97 kB / 1.009 GB, free: 51.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005683/2.804, allocations: 271.5 kB / 1.01 GB, free: 51.45 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001417/2.805, allocations: 245.2 kB / 1.01 GB, free: 51.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003341/2.806, allocations: 99.94 kB / 1.01 GB, free: 51.11 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008618/2.814, allocations: 3.906 MB / 1.014 GB, free: 47.23 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.91e-07/2.814, allocations: 4 kB / 1.014 GB, free: 47.23 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01359/2.828, allocations: 1.897 MB / 1.016 GB, free: 45.34 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 16 ($STATESET12.x[3],$STATESET12.x[2],$STATESET12.x[1],rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3],$STATESET11.x[3],$STATESET11.x[2],$STATESET11.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 (241): * Single equations (assignments): 230 * 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.02448/2.852, allocations: 16.06 MB / 1.031 GB, free: 29.15 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.3217/3.174, allocations: 11.3 MB / 1.042 GB, free: 127.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/3.174, allocations: 5.844 kB / 1.042 GB, free: 127.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009919/3.184, allocations: 4.975 MB / 1.047 GB, free: 126.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006874/3.191, allocations: 0.7953 MB / 1.048 GB, free: 126.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06683/3.258, allocations: 18.2 MB / 1.066 GB, free: 123.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01186/3.27, allocations: 5.51 MB / 1.071 GB, free: 122.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01148/3.282, allocations: 3.156 MB / 1.074 GB, free: 122.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009176/3.291, allocations: 3.647 MB / 1.078 GB, free: 122.3 MB / 474.7 MB Notification: Performance of SimCode: time 2.154e-06/3.291, allocations: 0 / 1.078 GB, free: 122.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5962/3.887, allocations: 164.2 MB / 1.238 GB, free: 113.7 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/3.887, allocations: 170.9 kB / 1.238 GB, free: 113.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.169/12.06, allocations: 0 / 1.238 GB, free: 113.5 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat does not exist to compare? outputFormat=mat