Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001571/0.001571, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.333/2.333, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001196/0.001195, allocations: 86.67 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.586e-05/3.613e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1002, allocations: 47.58 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4646/0.5649, allocations: 98.11 MB / 467.3 MB, free: 11.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/0.5652, allocations: 89.48 kB / 467.4 MB, free: 10.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9324/1.498, allocations: 148.1 MB / 0.601 GB, free: 81.06 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.498, allocations: 0 / 0.601 GB, free: 81.06 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000665/1.498, allocations: 143.6 kB / 0.6012 GB, free: 81.06 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.05499/1.553, allocations: 8.571 MB / 0.6095 GB, free: 72.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/1.553, allocations: 12.03 kB / 0.6096 GB, free: 72.79 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005738/1.559, allocations: 1.156 MB / 0.6107 GB, free: 71.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1218/1.681, allocations: 16.69 MB / 0.627 GB, free: 54.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04753/1.729, allocations: 13.16 MB / 0.6398 GB, free: 41.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009563/1.73, allocations: 0.4893 MB / 0.6403 GB, free: 41.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005783/1.735, allocations: 0.6675 MB / 0.641 GB, free: 40.56 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06185/1.797, allocations: 16.77 MB / 0.6573 GB, free: 22.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004615/1.798, allocations: 111 kB / 0.6575 GB, free: 22.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002596/1.801, allocations: 323.8 kB / 0.6578 GB, free: 21.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00345/1.804, allocations: 1.471 MB / 0.6592 GB, free: 20.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0484/1.852, allocations: 13.48 MB / 0.6724 GB, free: 6.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5096/2.362, allocations: 76.86 MB / 0.7474 GB, free: 32.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05254/2.415, allocations: 8.532 MB / 0.7558 GB, free: 31.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008397/2.423, allocations: 4.096 MB / 0.7598 GB, free: 31.44 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002872/2.426, allocations: 1.345 MB / 0.7611 GB, free: 30.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001175/2.426, allocations: 64.41 kB / 0.7611 GB, free: 30.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=268): time 7.745e-06/2.426, allocations: 0 / 0.7611 GB, free: 30.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=354): time 0.2598/2.686, allocations: 46.89 MB / 0.8069 GB, free: 19.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002668/2.689, allocations: 3.236 MB / 0.8101 GB, free: 16.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0184/2.707, allocations: 6.51 MB / 0.8164 GB, free: 13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001239/2.709, allocations: 75.11 kB / 0.8165 GB, free: 12.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005825/2.714, allocations: 4.882 MB / 0.8213 GB, free: 8.516 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004312/2.719, allocations: 1.348 MB / 0.8226 GB, free: 7.328 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003058/2.722, allocations: 198.1 kB / 0.8228 GB, free: 7.141 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001995/2.724, allocations: 0.7134 MB / 0.8235 GB, free: 6.531 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01836/2.743, allocations: 4.505 MB / 0.8279 GB, free: 2.484 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04534/2.788, allocations: 10.45 MB / 0.8381 GB, free: 8.379 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02577/2.814, allocations: 6.558 MB / 0.8445 GB, free: 2.883 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002925/2.814, allocations: 54.62 kB / 0.8445 GB, free: 2.832 MB / 442.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.5684/3.383, allocations: 31.31 MB / 0.8751 GB, free: 102.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002295/3.383, allocations: 85.59 kB / 0.8752 GB, free: 102.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09248/3.475, allocations: 20.63 MB / 0.8953 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08819/3.564, allocations: 16.6 MB / 0.9115 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01431/3.578, allocations: 2.12 MB / 0.9136 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07952/3.658, allocations: 33.33 MB / 0.9462 GB, free: 88.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01467/3.672, allocations: 0.7738 MB / 0.9469 GB, free: 87.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002834/3.675, allocations: 0.5598 MB / 0.9475 GB, free: 86.8 MB / 458.7 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.004506/3.68, allocations: 0.8266 MB / 0.9483 GB, free: 86.28 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002365/3.682, allocations: 0.6729 MB / 0.9489 GB, free: 85.96 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03547/3.718, allocations: 10.23 MB / 0.9589 GB, free: 75.72 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03038/3.748, allocations: 8.932 MB / 0.9676 GB, free: 66.76 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.627e-05/3.748, allocations: 16 kB / 0.9677 GB, free: 66.75 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001113/3.748, allocations: 15.94 kB / 0.9677 GB, free: 66.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07649/3.825, allocations: 23.56 MB / 0.9907 GB, free: 43.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-05/3.825, allocations: 4 kB / 0.9907 GB, free: 43.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005906/3.831, allocations: 0.5616 MB / 0.9912 GB, free: 42.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02389/3.855, allocations: 4.009 MB / 0.9952 GB, free: 38.79 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001229/3.856, allocations: 105.6 kB / 0.9953 GB, free: 38.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04707/3.903, allocations: 24 MB / 1.019 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002455/3.906, allocations: 2.958 MB / 1.022 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4054/4.311, allocations: 15.69 MB / 1.037 GB, free: 97.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006472/4.318, allocations: 1.385 MB / 1.038 GB, free: 97.12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003412/4.321, allocations: 89.92 kB / 1.038 GB, free: 97.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008728/4.33, allocations: 330.1 kB / 1.039 GB, free: 97.12 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001925/4.332, allocations: 246.5 kB / 1.039 GB, free: 97.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009788/4.333, allocations: 102.4 kB / 1.039 GB, free: 97.12 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01612/4.349, allocations: 4.648 MB / 1.044 GB, free: 96.88 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.22e-07/4.349, allocations: 0.625 kB / 1.044 GB, free: 96.88 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01576/4.365, allocations: 2.135 MB / 1.046 GB, free: 96.88 MB / 458.7 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.04791/4.413, allocations: 16.72 MB / 1.062 GB, free: 94.81 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03028/4.443, allocations: 11.88 MB / 1.074 GB, free: 92.28 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/4.443, allocations: 0 / 1.074 GB, free: 92.28 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01478/4.458, allocations: 5.207 MB / 1.079 GB, free: 89.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009797/4.468, allocations: 0.9431 MB / 1.08 GB, free: 89.42 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07409/4.542, allocations: 19.66 MB / 1.099 GB, free: 82.52 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01457/4.557, allocations: 5.522 MB / 1.104 GB, free: 80.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0106/4.567, allocations: 3.744 MB / 1.108 GB, free: 77.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.713e-06/4.568, allocations: 0 / 1.108 GB, free: 77.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.436/12, allocations: 361.8 MB / 1.461 GB, free: 114 MB / 0.4948 GB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat does not exist to compare? outputFormat=mat