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.001679/0.001679, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009072/0.0009074, allocations: 95.97 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.183e-05/2.193e-05, allocations: 4 kB / 343.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1223, allocations: 51.48 MB / 395.3 MB, free: 4.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4463/0.5686, allocations: 99.79 MB / 495.1 MB, free: 9.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.5689, allocations: 87.39 kB / 495.1 MB, free: 9.387 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7886/1.357, allocations: 155.8 MB / 0.6356 GB, free: 72.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.358, allocations: 0 / 0.6356 GB, free: 72.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007119/1.358, allocations: 140.9 kB / 0.6358 GB, free: 72.96 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.04607/1.404, allocations: 8.798 MB / 0.6444 GB, free: 69.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.44e-05/1.404, allocations: 7.812 kB / 0.6444 GB, free: 69.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.065/1.469, allocations: 17.82 MB / 0.6618 GB, free: 67.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0349/1.504, allocations: 11.35 MB / 0.6729 GB, free: 62.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005007/1.505, allocations: 211.2 kB / 0.6731 GB, free: 62.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004406/1.509, allocations: 414.8 kB / 0.6735 GB, free: 62.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02065/1.53, allocations: 9.008 MB / 0.6823 GB, free: 57.42 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02668/1.557, allocations: 14.14 MB / 0.6961 GB, free: 41.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003489/1.557, allocations: 111 kB / 0.6962 GB, free: 41.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001085/1.558, allocations: 48 kB / 0.6962 GB, free: 41.61 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002014/1.56, allocations: 1.484 MB / 0.6977 GB, free: 40.11 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4833/2.044, allocations: 74.51 MB / 0.7704 GB, free: 39.32 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007682/2.051, allocations: 5.356 MB / 0.7757 GB, free: 38.63 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005344/2.057, allocations: 4.024 MB / 0.7796 GB, free: 38.59 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001693/2.059, allocations: 1.354 MB / 0.7809 GB, free: 37.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/2.059, allocations: 68.09 kB / 0.781 GB, free: 37.42 MB / 458.7 MB Notification: Performance of pre-optimization done (n=268): time 7.664e-06/2.059, allocations: 0.9375 kB / 0.781 GB, free: 37.42 MB / 458.7 MB Notification: Performance of matching and sorting (n=349): time 0.1438/2.202, allocations: 44.55 MB / 0.8245 GB, free: 25.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/2.203, allocations: 297.8 kB / 0.8248 GB, free: 24.87 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01034/2.213, allocations: 5.61 MB / 0.8303 GB, free: 22.92 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001056/2.214, allocations: 25.7 kB / 0.8303 GB, free: 22.89 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003324/2.217, allocations: 5.252 MB / 0.8354 GB, free: 18.93 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00198/2.219, allocations: 1.297 MB / 0.8367 GB, free: 17.98 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004979/2.22, allocations: 5.969 kB / 0.8367 GB, free: 17.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000492/2.22, allocations: 0.7131 MB / 0.8374 GB, free: 17.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005078/2.225, allocations: 4.289 MB / 0.8416 GB, free: 15.91 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008626/2.234, allocations: 9.671 MB / 0.851 GB, free: 7.086 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/2.244, allocations: 6.336 MB / 0.8572 GB, free: 4.895 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004035/2.245, allocations: 54.88 kB / 0.8572 GB, free: 4.895 MB / 458.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.08427/2.329, allocations: 30.99 MB / 0.8875 GB, free: 7.129 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000385/2.33, allocations: 87.95 kB / 0.8876 GB, free: 7.043 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0535/2.383, allocations: 20.6 MB / 0.9077 GB, free: 5.125 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05056/2.434, allocations: 16.87 MB / 0.9242 GB, free: 4.207 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008664/2.442, allocations: 2.156 MB / 0.9263 GB, free: 2.047 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4311/2.874, allocations: 31.45 MB / 0.957 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01079/2.884, allocations: 0.5935 MB / 0.9576 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002815/2.887, allocations: 0.5698 MB / 0.9582 GB, free: 113.4 MB / 0.4948 GB 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.003623/2.891, allocations: 0.5881 MB / 0.9587 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02347/2.914, allocations: 9.669 MB / 0.9682 GB, free: 111 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002887/2.917, allocations: 0.6205 MB / 0.9688 GB, free: 111 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02332/2.941, allocations: 9.745 MB / 0.9783 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0164/2.957, allocations: 8.545 MB / 0.9866 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.723e-05/2.957, allocations: 18.06 kB / 0.9867 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000128/2.957, allocations: 13.78 kB / 0.9867 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04744/3.005, allocations: 22.2 MB / 1.008 GB, free: 96.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-05/3.005, allocations: 5.188 kB / 1.008 GB, free: 96.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003349/3.008, allocations: 0.5572 MB / 1.009 GB, free: 96.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01296/3.021, allocations: 3.959 MB / 1.013 GB, free: 96.09 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001291/3.023, allocations: 56.08 kB / 1.013 GB, free: 96.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03047/3.053, allocations: 22.77 MB / 1.035 GB, free: 82.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001773/3.055, allocations: 2.835 MB / 1.038 GB, free: 79.95 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02758/3.083, allocations: 15.07 MB / 1.053 GB, free: 72.62 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00238/3.085, allocations: 0.6419 MB / 1.053 GB, free: 71.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002906/3.088, allocations: 34.94 kB / 1.053 GB, free: 71.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005893/3.094, allocations: 272.7 kB / 1.053 GB, free: 71.81 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001561/3.095, allocations: 244.3 kB / 1.054 GB, free: 71.67 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008911/3.096, allocations: 105.5 kB / 1.054 GB, free: 71.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0111/3.107, allocations: 3.864 MB / 1.058 GB, free: 68.26 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.31e-07/3.107, allocations: 0 / 1.058 GB, free: 68.26 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01468/3.122, allocations: 1.9 MB / 1.059 GB, free: 66.37 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 16 ($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],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.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.0272/3.149, allocations: 16.06 MB / 1.075 GB, free: 52.52 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01913/3.169, allocations: 11.31 MB / 1.086 GB, free: 42.54 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/3.169, allocations: 0 / 1.086 GB, free: 42.54 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008081/3.177, allocations: 4.968 MB / 1.091 GB, free: 37.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007779/3.185, allocations: 0.8143 MB / 1.092 GB, free: 36.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3494/3.534, allocations: 18.13 MB / 1.109 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01158/3.546, allocations: 5.491 MB / 1.115 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01073/3.556, allocations: 3.16 MB / 1.118 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007739/3.564, allocations: 3.646 MB / 1.122 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of SimCode: time 9.52e-07/3.564, allocations: 0 / 1.122 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2509/3.815, allocations: 163.8 MB / 1.281 GB, free: 19.31 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/3.815, allocations: 169 kB / 1.282 GB, free: 19.12 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/11.46, allocations: 4 kB / 1.282 GB, free: 19.11 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