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.001039/0.001039, allocations: 180.4 kB / 16.38 MB, free: 5.766 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.359/1.359, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009066/0.0009063, allocations: 89.58 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002529/0.0002529, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2506, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.123/0.3736, allocations: 99.87 MB / 0.4897 GB, free: 12.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/0.3739, allocations: 91.94 kB / 0.4898 GB, free: 12.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5528/0.9267, allocations: 149.7 MB / 0.636 GB, free: 7.039 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.9268, allocations: 0 / 0.636 GB, free: 7.039 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007722/0.9276, allocations: 140 kB / 0.6361 GB, free: 6.902 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.04337/0.971, allocations: 9.439 MB / 0.6454 GB, free: 13.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.971, allocations: 8.031 kB / 0.6454 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006043/0.9771, allocations: 1.161 MB / 0.6465 GB, free: 12.19 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5227/1.5, allocations: 16.66 MB / 0.6628 GB, free: 54.18 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03626/1.536, allocations: 12.59 MB / 0.6751 GB, free: 53.92 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007031/1.537, allocations: 0.4888 MB / 0.6756 GB, free: 53.9 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004485/1.541, allocations: 0.6626 MB / 0.6762 GB, free: 53.9 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04617/1.588, allocations: 16.89 MB / 0.6927 GB, free: 49.82 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005663/1.588, allocations: 109.1 kB / 0.6928 GB, free: 49.82 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00284/1.591, allocations: 316.7 kB / 0.6931 GB, free: 49.82 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002399/1.594, allocations: 1.483 MB / 0.6945 GB, free: 49.8 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03038/1.624, allocations: 13.67 MB / 0.7079 GB, free: 49.72 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08814/1.712, allocations: 76.75 MB / 0.7829 GB, free: 10.57 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02568/1.738, allocations: 8.585 MB / 0.7912 GB, free: 3.723 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002109/1.74, allocations: 1.353 MB / 0.7926 GB, free: 2.277 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001016/1.74, allocations: 64.5 kB / 0.7926 GB, free: 2.207 MB / 442.8 MB Notification: Performance of pre-optimization done (n=268): time 8.325e-06/1.74, allocations: 0 / 0.7926 GB, free: 2.207 MB / 442.8 MB Notification: Performance of matching and sorting (n=354): time 0.4394/2.18, allocations: 53.45 MB / 0.8448 GB, free: 94.09 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001797/2.181, allocations: 3.262 MB / 0.848 GB, free: 91.04 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0123/2.194, allocations: 6.524 MB / 0.8544 GB, free: 90.55 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001319/2.195, allocations: 78.72 kB / 0.8544 GB, free: 90.52 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004527/2.2, allocations: 5.2 MB / 0.8595 GB, free: 88.4 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002128/2.202, allocations: 1.351 MB / 0.8608 GB, free: 87.62 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006877/2.203, allocations: 186.2 kB / 0.861 GB, free: 87.62 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0004261/2.203, allocations: 0.7111 MB / 0.8617 GB, free: 87.29 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0059/2.209, allocations: 4.585 MB / 0.8662 GB, free: 87.27 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008866/2.218, allocations: 9.876 MB / 0.8758 GB, free: 80.51 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008381/2.226, allocations: 6.574 MB / 0.8823 GB, free: 80.46 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.949e-05/2.226, allocations: 53.5 kB / 0.8823 GB, free: 80.46 MB / 474.8 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.0664/2.293, allocations: 31.64 MB / 0.9132 GB, free: 76.48 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001367/2.293, allocations: 87.91 kB / 0.9133 GB, free: 76.48 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04429/2.337, allocations: 20.69 MB / 0.9335 GB, free: 71.32 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04313/2.38, allocations: 16.62 MB / 0.9497 GB, free: 58.3 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007561/2.388, allocations: 2.125 MB / 0.9518 GB, free: 56.17 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04156/2.43, allocations: 35.35 MB / 0.9863 GB, free: 20.39 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0113/2.441, allocations: 0.7755 MB / 0.9871 GB, free: 19.62 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002526/2.443, allocations: 0.5624 MB / 0.9876 GB, free: 19.06 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.008958/2.452, allocations: 3.435 MB / 0.991 GB, free: 15.62 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001911/2.454, allocations: 0.6747 MB / 0.9916 GB, free: 14.94 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01893/2.473, allocations: 10.21 MB / 1.002 GB, free: 4.711 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3109/2.784, allocations: 8.908 MB / 1.01 GB, free: 84.51 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001053/2.784, allocations: 25.67 kB / 1.01 GB, free: 84.5 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001021/2.785, allocations: 14.39 kB / 1.01 GB, free: 84.5 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05885/2.843, allocations: 23.64 MB / 1.033 GB, free: 83.32 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.552e-05/2.844, allocations: 2.75 kB / 1.033 GB, free: 83.32 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003415/2.847, allocations: 0.5777 MB / 1.034 GB, free: 83.32 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01185/2.859, allocations: 3.617 MB / 1.038 GB, free: 83.26 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009687/2.86, allocations: 96.23 kB / 1.038 GB, free: 83.26 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0242/2.884, allocations: 22.77 MB / 1.06 GB, free: 73.66 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001447/2.885, allocations: 2.992 MB / 1.063 GB, free: 70.78 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02491/2.91, allocations: 15.8 MB / 1.078 GB, free: 64.56 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002771/2.913, allocations: 0.7016 MB / 1.079 GB, free: 64.43 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002664/2.916, allocations: 82.94 kB / 1.079 GB, free: 64.38 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006692/2.923, allocations: 325.3 kB / 1.079 GB, free: 64.34 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00162/2.924, allocations: 247.1 kB / 1.08 GB, free: 64.3 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004483/2.925, allocations: 104.2 kB / 1.08 GB, free: 64.28 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01174/2.937, allocations: 4.671 MB / 1.084 GB, free: 62.79 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.012e-06/2.937, allocations: 0 / 1.084 GB, free: 62.79 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01412/2.951, allocations: 2.133 MB / 1.086 GB, free: 62.58 MB / 474.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.02604/2.977, allocations: 16.91 MB / 1.103 GB, free: 52.91 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01825/2.995, allocations: 12.05 MB / 1.115 GB, free: 42.92 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/2.995, allocations: 4 kB / 1.115 GB, free: 42.92 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007531/3.003, allocations: 5.145 MB / 1.12 GB, free: 38.38 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007169/3.01, allocations: 0.9397 MB / 1.12 GB, free: 37.61 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4996/3.51, allocations: 219.6 MB / 1.335 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01305/3.523, allocations: 5.5 MB / 1.34 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01069/3.533, allocations: 3.194 MB / 1.343 GB, free: 15.33 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008129/3.542, allocations: 3.672 MB / 1.347 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of SimCode: time 7.21e-07/3.542, allocations: 0 / 1.347 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4997/4.041, allocations: 176.7 MB / 1.52 GB, free: 59.59 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/4.042, allocations: 234.3 kB / 1.52 GB, free: 59.35 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.083/12.12, allocations: 0 / 1.52 GB, free: 59.35 MB / 0.5105 GB (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