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.0016/0.0016, allocations: 175.4 kB / 8.344 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 221.5 MB / 230.3 MB, free: 7.492 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.000984/0.0009838, allocations: 86.11 kB / 281.2 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.843e-05/1.846e-05, allocations: 4 kB / 337.1 MB, free: 9.902 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1254, allocations: 50.41 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4398/0.5653, allocations: 99.15 MB / 486.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.5656, allocations: 83.95 kB / 486.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6811/1.247, allocations: 146.9 MB / 0.6189 GB, free: 85.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.278e-06/1.247, allocations: 4 kB / 0.6189 GB, free: 85.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006576/1.247, allocations: 148.6 kB / 0.619 GB, free: 85.07 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.04081/1.288, allocations: 8.545 MB / 0.6274 GB, free: 78.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.095e-05/1.288, allocations: 12.03 kB / 0.6274 GB, free: 78.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06099/1.349, allocations: 16.68 MB / 0.6437 GB, free: 61.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03519/1.385, allocations: 12.51 MB / 0.6559 GB, free: 49.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004718/1.385, allocations: 216 kB / 0.6561 GB, free: 48.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004236/1.389, allocations: 419.7 kB / 0.6565 GB, free: 48.45 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02056/1.41, allocations: 9.003 MB / 0.6653 GB, free: 39.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03676/1.447, allocations: 14.14 MB / 0.6791 GB, free: 23.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007155/1.448, allocations: 111 kB / 0.6792 GB, free: 23.67 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003652/1.451, allocations: 48 kB / 0.6792 GB, free: 23.62 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002399/1.454, allocations: 1.477 MB / 0.6807 GB, free: 22.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.481/1.935, allocations: 74.51 MB / 0.7535 GB, free: 47.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009981/1.945, allocations: 5.366 MB / 0.7587 GB, free: 46.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006756/1.952, allocations: 4.015 MB / 0.7626 GB, free: 46.87 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001856/1.953, allocations: 1.353 MB / 0.7639 GB, free: 45.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.656e-05/1.954, allocations: 66.31 kB / 0.764 GB, free: 45.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=268): time 5.691e-06/1.954, allocations: 0 / 0.764 GB, free: 45.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=349): time 0.1083/2.062, allocations: 44.57 MB / 0.8075 GB, free: 33.49 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/2.062, allocations: 296.9 kB / 0.8078 GB, free: 33.17 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0118/2.074, allocations: 5.616 MB / 0.8133 GB, free: 31.22 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001241/2.075, allocations: 29.52 kB / 0.8133 GB, free: 31.19 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004335/2.079, allocations: 5.248 MB / 0.8184 GB, free: 27.18 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002513/2.082, allocations: 1.295 MB / 0.8197 GB, free: 26.22 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001092/2.083, allocations: 4.719 kB / 0.8197 GB, free: 26.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005491/2.084, allocations: 0.7173 MB / 0.8204 GB, free: 25.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005989/2.09, allocations: 4.288 MB / 0.8246 GB, free: 22.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01026/2.1, allocations: 9.676 MB / 0.8341 GB, free: 11.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/2.11, allocations: 6.323 MB / 0.8402 GB, free: 6.059 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002401/2.111, allocations: 52 kB / 0.8403 GB, free: 6.008 MB / 442.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.07706/2.188, allocations: 30.17 MB / 0.8697 GB, free: 460 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001533/2.188, allocations: 87.98 kB / 0.8698 GB, free: 372 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05196/2.24, allocations: 20.26 MB / 0.8896 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4318/2.672, allocations: 16.53 MB / 0.9057 GB, free: 124.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009645/2.681, allocations: 2.158 MB / 0.9079 GB, free: 124.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04633/2.728, allocations: 31.46 MB / 0.9386 GB, free: 119.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01252/2.74, allocations: 0.5976 MB / 0.9392 GB, free: 119.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003576/2.744, allocations: 0.5754 MB / 0.9397 GB, free: 119.3 MB / 490.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.00441/2.748, allocations: 0.5888 MB / 0.9403 GB, free: 119.2 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02215/2.771, allocations: 9.663 MB / 0.9497 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002726/2.773, allocations: 0.6245 MB / 0.9503 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02149/2.795, allocations: 9.74 MB / 0.9598 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01698/2.812, allocations: 8.558 MB / 0.9682 GB, free: 110.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.958e-05/2.812, allocations: 19.44 kB / 0.9682 GB, free: 110.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.872e-05/2.812, allocations: 15.28 kB / 0.9682 GB, free: 110.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05347/2.866, allocations: 22.19 MB / 0.9899 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.054e-05/2.866, allocations: 4 kB / 0.9899 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003346/2.869, allocations: 0.5525 MB / 0.9905 GB, free: 99.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01263/2.882, allocations: 3.966 MB / 0.9943 GB, free: 97.23 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001089/2.883, allocations: 50.38 kB / 0.9944 GB, free: 97.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02536/2.908, allocations: 22.76 MB / 1.017 GB, free: 76.69 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001534/2.91, allocations: 2.832 MB / 1.019 GB, free: 73.72 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02498/2.935, allocations: 15.07 MB / 1.034 GB, free: 59.15 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002295/2.937, allocations: 0.6414 MB / 1.035 GB, free: 58.48 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002634/2.94, allocations: 35.94 kB / 1.035 GB, free: 58.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005052/2.945, allocations: 275 kB / 1.035 GB, free: 58.18 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001232/2.946, allocations: 249.2 kB / 1.035 GB, free: 57.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006721/2.947, allocations: 91.95 kB / 1.035 GB, free: 57.85 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008997/2.956, allocations: 3.866 MB / 1.039 GB, free: 54.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.11e-07/2.956, allocations: 0 / 1.039 GB, free: 54.01 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01405/2.97, allocations: 1.901 MB / 1.041 GB, free: 52.11 MB / 490.7 MB 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.02669/2.997, allocations: 16.05 MB / 1.057 GB, free: 35.93 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01896/3.016, allocations: 11.31 MB / 1.068 GB, free: 24.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/3.016, allocations: 0 / 1.068 GB, free: 24.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3173/3.333, allocations: 4.967 MB / 1.073 GB, free: 129 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008579/3.342, allocations: 0.8091 MB / 1.073 GB, free: 129 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06242/3.404, allocations: 18.15 MB / 1.091 GB, free: 126 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009554/3.414, allocations: 5.489 MB / 1.096 GB, free: 125.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009936/3.424, allocations: 3.153 MB / 1.099 GB, free: 125 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007847/3.432, allocations: 3.642 MB / 1.103 GB, free: 125 MB / 490.7 MB Notification: Performance of SimCode: time 1.322e-06/3.432, allocations: 0 / 1.103 GB, free: 125 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5701/4.002, allocations: 163.8 MB / 1.263 GB, free: 103.6 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/4.002, allocations: 172.2 kB / 1.263 GB, free: 103.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.446/11.45, allocations: 1.406 kB / 1.263 GB, free: 103.4 MB / 490.7 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