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.001495/0.001495, allocations: 185.5 kB / 16.41 MB, free: 5.727 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.002/2.002, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001148/0.001147, allocations: 91.55 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003809, allocations: 12 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3377, allocations: 47.56 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1712/0.509, allocations: 98.21 MB / 472.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/0.5094, allocations: 95.94 kB / 472.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8305/1.34, allocations: 148 MB / 0.6063 GB, free: 7.906 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.34, allocations: 0 / 0.6063 GB, free: 7.906 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006183/1.341, allocations: 144 kB / 0.6065 GB, free: 7.766 MB / 378.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.05902/1.4, allocations: 9.489 MB / 0.6157 GB, free: 14.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.581e-05/1.4, allocations: 12.03 kB / 0.6157 GB, free: 14.17 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00581/1.406, allocations: 1.153 MB / 0.6169 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1205/1.526, allocations: 16.67 MB / 0.6332 GB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3608/1.887, allocations: 13.21 MB / 0.6461 GB, free: 58.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006327/1.888, allocations: 0.4886 MB / 0.6465 GB, free: 58.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003565/1.891, allocations: 0.664 MB / 0.6472 GB, free: 58.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05337/1.945, allocations: 16.9 MB / 0.6637 GB, free: 54.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006246/1.945, allocations: 107.4 kB / 0.6638 GB, free: 54.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00291/1.948, allocations: 328 kB / 0.6641 GB, free: 54.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00361/1.952, allocations: 1.468 MB / 0.6655 GB, free: 54.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04874/2.001, allocations: 13.68 MB / 0.6789 GB, free: 54.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1181/2.119, allocations: 76.86 MB / 0.754 GB, free: 17.33 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04521/2.164, allocations: 8.569 MB / 0.7623 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002957/2.167, allocations: 1.34 MB / 0.7636 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.603e-05/2.167, allocations: 68.48 kB / 0.7637 GB, free: 13.64 MB / 426.7 MB Notification: Performance of pre-optimization done (n=268): time 6.753e-06/2.167, allocations: 2.188 kB / 0.7637 GB, free: 13.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=354): time 0.3033/2.471, allocations: 53.46 MB / 0.8159 GB, free: 4.379 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003337/2.474, allocations: 3.27 MB / 0.8191 GB, free: 0.7695 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3344/2.808, allocations: 6.583 MB / 0.8255 GB, free: 101.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001175/2.81, allocations: 81.8 kB / 0.8256 GB, free: 101.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00491/2.815, allocations: 4.879 MB / 0.8304 GB, free: 100.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002491/2.817, allocations: 1.344 MB / 0.8317 GB, free: 99.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001545/2.819, allocations: 186.8 kB / 0.8319 GB, free: 99.73 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005871/2.819, allocations: 0.7122 MB / 0.8326 GB, free: 99.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01101/2.83, allocations: 4.581 MB / 0.837 GB, free: 99.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01507/2.845, allocations: 9.879 MB / 0.8467 GB, free: 92.62 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01565/2.861, allocations: 6.567 MB / 0.8531 GB, free: 92.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002429/2.861, allocations: 51.88 kB / 0.8531 GB, free: 92.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.1259/2.987, allocations: 31.34 MB / 0.8837 GB, free: 89.53 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001496/2.988, allocations: 85.56 kB / 0.8838 GB, free: 89.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08886/3.076, allocations: 20.69 MB / 0.904 GB, free: 86.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08719/3.164, allocations: 16.6 MB / 0.9202 GB, free: 75.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01338/3.177, allocations: 2.121 MB / 0.9223 GB, free: 72.97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07894/3.256, allocations: 35.38 MB / 0.9569 GB, free: 37.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01375/3.27, allocations: 0.7725 MB / 0.9576 GB, free: 36.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002467/3.272, allocations: 0.5634 MB / 0.9582 GB, free: 35.85 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 () * 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.009362/3.282, allocations: 3.443 MB / 0.9615 GB, free: 32.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001913/3.284, allocations: 0.6749 MB / 0.9622 GB, free: 31.72 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03316/3.317, allocations: 10.21 MB / 0.9722 GB, free: 21.49 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02906/3.346, allocations: 8.925 MB / 0.9809 GB, free: 12.55 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.506e-05/3.346, allocations: 16 kB / 0.9809 GB, free: 12.53 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.199e-05/3.346, allocations: 22.94 kB / 0.9809 GB, free: 12.51 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3975/3.744, allocations: 23.66 MB / 1.004 GB, free: 87.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.481e-05/3.744, allocations: 4.906 kB / 1.004 GB, free: 87.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005743/3.75, allocations: 0.5685 MB / 1.005 GB, free: 87.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02168/3.771, allocations: 3.622 MB / 1.008 GB, free: 87.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001019/3.772, allocations: 97.67 kB / 1.008 GB, free: 87.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04635/3.819, allocations: 22.76 MB / 1.03 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002333/3.821, allocations: 2.992 MB / 1.033 GB, free: 76.53 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04255/3.864, allocations: 15.82 MB / 1.049 GB, free: 70.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005355/3.869, allocations: 1.379 MB / 1.05 GB, free: 69.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002661/3.872, allocations: 83.78 kB / 1.05 GB, free: 69.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008148/3.88, allocations: 332.4 kB / 1.051 GB, free: 69.81 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001846/3.882, allocations: 246.2 kB / 1.051 GB, free: 69.78 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007249/3.883, allocations: 95.31 kB / 1.051 GB, free: 69.76 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01368/3.896, allocations: 4.717 MB / 1.055 GB, free: 68.26 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.964e-06/3.896, allocations: 0 / 1.055 GB, free: 68.26 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01366/3.91, allocations: 2.131 MB / 1.058 GB, free: 68.05 MB / 458.7 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.04475/3.955, allocations: 16.92 MB / 1.074 GB, free: 60.64 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02811/3.983, allocations: 12.03 MB / 1.086 GB, free: 52.32 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/3.983, allocations: 0 / 1.086 GB, free: 52.32 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01249/3.996, allocations: 5.164 MB / 1.091 GB, free: 47.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008337/4.004, allocations: 0.9374 MB / 1.092 GB, free: 47 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6635/4.667, allocations: 220.9 MB / 1.308 GB, free: 15.23 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01312/4.681, allocations: 5.517 MB / 1.313 GB, free: 14.34 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009572/4.69, allocations: 3.761 MB / 1.317 GB, free: 14.34 MB / 0.4949 GB Notification: Performance of SimCode: time 1.563e-06/4.69, allocations: 0 / 1.317 GB, free: 14.34 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.101/11.79, allocations: 347.3 MB / 1.656 GB, free: 69.63 MB / 0.4949 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