Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 174.9 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 221.4 MB / 235.5 MB, free: 2.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 87.59 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.144e-05/3.16e-05, allocations: 8 kB / 343.9 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1211, allocations: 50.41 MB / 394.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3766/0.4977, allocations: 99.8 MB / 494.1 MB, free: 3.617 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.498, allocations: 87.95 kB / 494.2 MB, free: 3.531 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.657/1.155, allocations: 149.9 MB / 0.629 GB, free: 75.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.542e-06/1.155, allocations: 0 / 0.629 GB, free: 75.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005196/1.156, allocations: 140 kB / 0.6291 GB, free: 75.38 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.03829/1.194, allocations: 8.56 MB / 0.6375 GB, free: 66.74 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/1.194, allocations: 8.031 kB / 0.6375 GB, free: 66.73 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006067/1.2, allocations: 1.157 MB / 0.6386 GB, free: 65.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05818/1.258, allocations: 16.68 MB / 0.6549 GB, free: 48.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03203/1.29, allocations: 12.53 MB / 0.6671 GB, free: 36.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006042/1.291, allocations: 0.4893 MB / 0.6676 GB, free: 35.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004097/1.295, allocations: 0.6597 MB / 0.6683 GB, free: 35.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04343/1.339, allocations: 16.78 MB / 0.6847 GB, free: 16.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004623/1.339, allocations: 107 kB / 0.6848 GB, free: 16.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002481/1.342, allocations: 323.8 kB / 0.6851 GB, free: 16.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002212/1.344, allocations: 1.479 MB / 0.6865 GB, free: 14.87 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03051/1.374, allocations: 13.49 MB / 0.6997 GB, free: 1.332 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7029/2.077, allocations: 76.75 MB / 0.7746 GB, free: 32.49 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02586/2.103, allocations: 8.54 MB / 0.783 GB, free: 31.79 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005576/2.109, allocations: 4.094 MB / 0.787 GB, free: 31.75 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00195/2.111, allocations: 1.343 MB / 0.7883 GB, free: 30.61 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.179e-05/2.111, allocations: 65.19 kB / 0.7883 GB, free: 30.57 MB / 442.8 MB Notification: Performance of pre-optimization done (n=268): time 7.124e-06/2.111, allocations: 0 / 0.7883 GB, free: 30.57 MB / 442.8 MB Notification: Performance of matching and sorting (n=354): time 0.1374/2.248, allocations: 46.68 MB / 0.8339 GB, free: 18.76 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001799/2.25, allocations: 3.226 MB / 0.8371 GB, free: 15.33 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01111/2.261, allocations: 6.456 MB / 0.8434 GB, free: 9.77 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001206/2.263, allocations: 79.42 kB / 0.8435 GB, free: 9.688 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004339/2.267, allocations: 5.194 MB / 0.8485 GB, free: 5.133 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002403/2.269, allocations: 1.355 MB / 0.8498 GB, free: 3.941 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008495/2.27, allocations: 189.6 kB / 0.85 GB, free: 3.758 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.000433/2.271, allocations: 0.7087 MB / 0.8507 GB, free: 3.156 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01058/2.281, allocations: 4.875 MB / 0.8555 GB, free: 0 / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0133/2.295, allocations: 9.809 MB / 0.8651 GB, free: 4.324 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01236/2.307, allocations: 6.654 MB / 0.8716 GB, free: 15.05 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001697/2.307, allocations: 52 kB / 0.8716 GB, free: 15 MB / 474.8 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.4155/2.723, allocations: 31.5 MB / 0.9024 GB, free: 102.2 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001852/2.723, allocations: 83.75 kB / 0.9024 GB, free: 102.2 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05121/2.774, allocations: 20.63 MB / 0.9226 GB, free: 102 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04488/2.819, allocations: 16.6 MB / 0.9388 GB, free: 101.9 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00754/2.827, allocations: 2.121 MB / 0.9409 GB, free: 101.9 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04386/2.871, allocations: 33.32 MB / 0.9734 GB, free: 86.08 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01049/2.881, allocations: 0.7768 MB / 0.9742 GB, free: 85.34 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002314/2.883, allocations: 0.5636 MB / 0.9747 GB, free: 84.77 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 () * 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.002126/2.886, allocations: 0.8034 MB / 0.9755 GB, free: 84.27 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001786/2.887, allocations: 0.6685 MB / 0.9762 GB, free: 83.96 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0188/2.906, allocations: 10.24 MB / 0.9862 GB, free: 73.73 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01586/2.922, allocations: 8.935 MB / 0.9949 GB, free: 64.77 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.196e-05/2.922, allocations: 16 kB / 0.9949 GB, free: 64.75 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-05/2.922, allocations: 23.22 kB / 0.9949 GB, free: 64.73 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04444/2.967, allocations: 23.51 MB / 1.018 GB, free: 41.38 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.455e-05/2.967, allocations: 3.938 kB / 1.018 GB, free: 41.38 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003211/2.97, allocations: 0.5633 MB / 1.018 GB, free: 40.82 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01258/2.983, allocations: 4.011 MB / 1.022 GB, free: 36.86 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000973/2.984, allocations: 101.5 kB / 1.022 GB, free: 36.76 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02547/3.009, allocations: 23.99 MB / 1.046 GB, free: 12.2 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001502/3.011, allocations: 2.962 MB / 1.049 GB, free: 8.98 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3361/3.347, allocations: 15.69 MB / 1.064 GB, free: 110.9 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003228/3.35, allocations: 0.7118 MB / 1.065 GB, free: 110.8 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00366/3.354, allocations: 86.94 kB / 1.065 GB, free: 110.8 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00613/3.36, allocations: 328.3 kB / 1.065 GB, free: 110.8 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001335/3.361, allocations: 246.8 kB / 1.065 GB, free: 110.8 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006667/3.362, allocations: 100.4 kB / 1.066 GB, free: 110.8 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.009983/3.372, allocations: 4.605 MB / 1.07 GB, free: 110.5 MB / 490.8 MB Notification: Performance of sort global known variables: time 8.22e-07/3.372, allocations: 2.625 kB / 1.07 GB, free: 110.5 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01359/3.386, allocations: 2.128 MB / 1.072 GB, free: 110.5 MB / 490.8 MB 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.03101/3.417, allocations: 16.73 MB / 1.088 GB, free: 108.5 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02063/3.437, allocations: 11.88 MB / 1.1 GB, free: 107.7 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/3.437, allocations: 3.938 kB / 1.1 GB, free: 107.7 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008341/3.446, allocations: 5.211 MB / 1.105 GB, free: 105.7 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00817/3.454, allocations: 0.9362 MB / 1.106 GB, free: 105.3 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05756/3.512, allocations: 18.78 MB / 1.124 GB, free: 98.9 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0127/3.524, allocations: 5.507 MB / 1.13 GB, free: 97.18 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.01175/3.536, allocations: 3.182 MB / 1.133 GB, free: 97.05 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008912/3.545, allocations: 3.671 MB / 1.136 GB, free: 94.07 MB / 490.8 MB Notification: Performance of SimCode: time 1.263e-06/3.545, allocations: 0 / 1.136 GB, free: 94.07 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5571/4.102, allocations: 176 MB / 1.308 GB, free: 96.98 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/4.103, allocations: 210.3 kB / 1.308 GB, free: 96.76 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.537/12.64, allocations: 0 / 1.308 GB, free: 96.76 MB / 490.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat does not exist to compare? outputFormat=mat