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.001239/0.001239, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 227.2 MB / 245 MB, free: 7.672 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008852/0.0008852, allocations: 97.45 kB / 297.3 MB, free: 6.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002521/0.0002522, allocations: 4 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2262, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1193/0.3455, allocations: 100.5 MB / 0.4981 GB, free: 6.035 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.3459, allocations: 91.95 kB / 0.4982 GB, free: 5.945 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5355/0.8814, allocations: 158.4 MB / 0.6528 GB, free: 3.535 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.8815, allocations: 0 / 0.6528 GB, free: 3.535 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007741/0.8823, allocations: 144 kB / 0.653 GB, free: 3.395 MB / 426.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.05917/0.9415, allocations: 9.68 MB / 0.6624 GB, free: 9.621 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.94e-05/0.9416, allocations: 8.031 kB / 0.6624 GB, free: 9.613 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008983/0.9506, allocations: 1.164 MB / 0.6636 GB, free: 8.438 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4719/1.423, allocations: 17.8 MB / 0.681 GB, free: 63.17 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02908/1.452, allocations: 11.41 MB / 0.6921 GB, free: 62.88 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003967/1.452, allocations: 0.4884 MB / 0.6926 GB, free: 62.87 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002661/1.455, allocations: 0.667 MB / 0.6932 GB, free: 62.86 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03115/1.486, allocations: 16.89 MB / 0.7097 GB, free: 58.77 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003043/1.486, allocations: 109.3 kB / 0.7098 GB, free: 58.77 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/1.487, allocations: 321.6 kB / 0.7101 GB, free: 58.77 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001731/1.489, allocations: 1.473 MB / 0.7116 GB, free: 58.74 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02531/1.515, allocations: 13.67 MB / 0.7249 GB, free: 58.67 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07827/1.593, allocations: 76.76 MB / 0.7999 GB, free: 2.688 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02679/1.62, allocations: 8.74 MB / 0.8084 GB, free: 12.22 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00203/1.622, allocations: 1.348 MB / 0.8097 GB, free: 10.78 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.459e-05/1.622, allocations: 63.89 kB / 0.8098 GB, free: 10.71 MB / 458.8 MB Notification: Performance of pre-optimization done (n=268): time 7.314e-06/1.622, allocations: 3.938 kB / 0.8098 GB, free: 10.71 MB / 458.8 MB Notification: Performance of matching and sorting (n=354): time 0.3845/2.006, allocations: 53.19 MB / 0.8617 GB, free: 85.45 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001797/2.008, allocations: 3.256 MB / 0.8649 GB, free: 82.39 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01091/2.019, allocations: 6.523 MB / 0.8713 GB, free: 81.9 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009022/2.02, allocations: 84.73 kB / 0.8714 GB, free: 81.87 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003387/2.023, allocations: 5.192 MB / 0.8764 GB, free: 79.59 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002041/2.026, allocations: 1.346 MB / 0.8778 GB, free: 78.81 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000824/2.026, allocations: 192.7 kB / 0.8779 GB, free: 78.81 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0004577/2.027, allocations: 0.7072 MB / 0.8786 GB, free: 78.49 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005684/2.033, allocations: 4.583 MB / 0.8831 GB, free: 78.46 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007762/2.04, allocations: 9.878 MB / 0.8928 GB, free: 71.7 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007727/2.048, allocations: 6.578 MB / 0.8992 GB, free: 71.15 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.353e-05/2.048, allocations: 51.94 kB / 0.8992 GB, free: 71.15 MB / 474.8 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.06342/2.112, allocations: 31.99 MB / 0.9305 GB, free: 65.49 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001732/2.112, allocations: 90.83 kB / 0.9306 GB, free: 65.49 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04463/2.156, allocations: 21.03 MB / 0.9511 GB, free: 57.82 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04132/2.198, allocations: 16.95 MB / 0.9676 GB, free: 43.98 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007343/2.205, allocations: 2.121 MB / 0.9697 GB, free: 41.86 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04039/2.246, allocations: 35.35 MB / 1.004 GB, free: 6.074 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009109/2.255, allocations: 0.7798 MB / 1.005 GB, free: 5.297 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001717/2.257, allocations: 0.5585 MB / 1.006 GB, free: 4.738 MB / 474.8 MB 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 () * Number of clocked 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.00658/2.263, allocations: 3.432 MB / 1.009 GB, free: 1.305 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00156/2.265, allocations: 0.6788 MB / 1.01 GB, free: 0.6172 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.272/2.537, allocations: 10.22 MB / 1.02 GB, free: 94.17 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01492/2.552, allocations: 8.917 MB / 1.028 GB, free: 93.86 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-05/2.552, allocations: 19.91 kB / 1.028 GB, free: 93.86 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.268e-05/2.552, allocations: 13.27 kB / 1.028 GB, free: 93.86 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03836/2.59, allocations: 23.64 MB / 1.051 GB, free: 92.66 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-05/2.59, allocations: 5.625 kB / 1.051 GB, free: 92.66 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002711/2.593, allocations: 0.5718 MB / 1.052 GB, free: 92.66 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01081/2.604, allocations: 3.62 MB / 1.055 GB, free: 92.59 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007777/2.605, allocations: 94.45 kB / 1.056 GB, free: 92.59 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02426/2.629, allocations: 22.77 MB / 1.078 GB, free: 81.3 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001453/2.63, allocations: 2.986 MB / 1.081 GB, free: 78.43 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02242/2.653, allocations: 15.81 MB / 1.096 GB, free: 72.2 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002441/2.655, allocations: 0.6976 MB / 1.097 GB, free: 72.07 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001508/2.657, allocations: 89.92 kB / 1.097 GB, free: 72.02 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003729/2.661, allocations: 326.8 kB / 1.097 GB, free: 71.97 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008967/2.661, allocations: 247.2 kB / 1.097 GB, free: 71.95 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003627/2.662, allocations: 95.34 kB / 1.098 GB, free: 71.93 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007767/2.67, allocations: 4.678 MB / 1.102 GB, free: 70.43 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.283e-06/2.67, allocations: 0 / 1.102 GB, free: 70.43 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.00972/2.679, allocations: 2.131 MB / 1.104 GB, free: 70.22 MB / 490.8 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],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],bodyCylinder1.body.w_a[1],bodyCylinder1.body.w_a[2],bodyCylinder1.body.w_a[3],revolute.phi,revolute.w) * 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 (248): * Single equations (assignments): 238 * 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 {(3,100.0%) 33,(1,100.0%) 1,(5,100.0%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02302/2.702, allocations: 16.91 MB / 1.121 GB, free: 58.84 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01625/2.719, allocations: 12.04 MB / 1.132 GB, free: 48.86 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/2.719, allocations: 0 / 1.132 GB, free: 48.86 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006535/2.725, allocations: 5.154 MB / 1.138 GB, free: 44.31 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005254/2.731, allocations: 0.9451 MB / 1.138 GB, free: 43.54 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4237/3.154, allocations: 220 MB / 1.353 GB, free: 17.57 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005882/3.16, allocations: 5.503 MB / 1.359 GB, free: 16.68 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.007515/3.168, allocations: 3.184 MB / 1.362 GB, free: 16.62 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004661/3.172, allocations: 3.67 MB / 1.365 GB, free: 16.61 MB / 0.5262 GB Notification: Performance of SimCode: time 1.473e-06/3.172, allocations: 2.75 kB / 1.365 GB, free: 16.61 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.47/3.642, allocations: 176.7 MB / 1.538 GB, free: 75.25 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/3.643, allocations: 241.7 kB / 1.538 GB, free: 75.02 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.251/9.893, allocations: 5.969 kB / 1.538 GB, free: 75.01 MB / 0.5262 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