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.001981/0.001981, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.028/2.028, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 99.3 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.365e-05/2.362e-05, allocations: 4 kB / 314.9 MB, free: 9.074 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3509, allocations: 47.57 MB / 362.4 MB, free: 45.76 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2244/0.5753, allocations: 97.45 MB / 459.9 MB, free: 4.75 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003184/0.5757, allocations: 87.94 kB / 460 MB, free: 4.664 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9375/1.513, allocations: 145.2 MB / 0.591 GB, free: 50.96 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.154e-06/1.513, allocations: 0 / 0.591 GB, free: 50.96 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0006523/1.514, allocations: 154.8 kB / 0.5911 GB, free: 50.81 MB / 395.1 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.05645/1.57, allocations: 8.561 MB / 0.5995 GB, free: 42.19 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/1.57, allocations: 12.03 kB / 0.5995 GB, free: 42.18 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1128/1.683, allocations: 16.69 MB / 0.6158 GB, free: 25.46 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04678/1.73, allocations: 13.15 MB / 0.6286 GB, free: 12.36 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004103/1.731, allocations: 212 kB / 0.6288 GB, free: 12.16 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003439/1.734, allocations: 407.7 kB / 0.6292 GB, free: 11.76 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02488/1.759, allocations: 9.01 MB / 0.638 GB, free: 2.746 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04153/1.801, allocations: 14.14 MB / 0.6518 GB, free: 3.082 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006956/1.801, allocations: 111 kB / 0.6519 GB, free: 2.973 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003174/1.804, allocations: 44 kB / 0.652 GB, free: 2.93 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004308/1.809, allocations: 1.481 MB / 0.6534 GB, free: 1.441 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4365/2.245, allocations: 74.62 MB / 0.7263 GB, free: 26.41 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01049/2.256, allocations: 5.379 MB / 0.7315 GB, free: 23.79 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007709/2.264, allocations: 4.017 MB / 0.7354 GB, free: 22.06 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003075/2.267, allocations: 1.354 MB / 0.7368 GB, free: 20.88 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001052/2.267, allocations: 65 kB / 0.7368 GB, free: 20.82 MB / 411.1 MB Notification: Performance of pre-optimization done (n=268): time 9.117e-06/2.267, allocations: 3.844 kB / 0.7368 GB, free: 20.82 MB / 411.1 MB Notification: Performance of matching and sorting (n=349): time 0.1876/2.455, allocations: 44.78 MB / 0.7806 GB, free: 15.05 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001782/2.455, allocations: 297 kB / 0.7808 GB, free: 14.7 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01617/2.471, allocations: 5.664 MB / 0.7864 GB, free: 9.867 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001201/2.472, allocations: 29.7 kB / 0.7864 GB, free: 9.832 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006312/2.479, allocations: 5.003 MB / 0.7913 GB, free: 5.215 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003052/2.482, allocations: 1.29 MB / 0.7926 GB, free: 4.059 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002001/2.484, allocations: 4 kB / 0.7926 GB, free: 4.055 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.001179/2.485, allocations: 0.724 MB / 0.7933 GB, free: 3.438 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01498/2.5, allocations: 4.444 MB / 0.7976 GB, free: 0 / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01744/2.518, allocations: 9.673 MB / 0.807 GB, free: 4.5 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01642/2.534, allocations: 6.356 MB / 0.8133 GB, free: 15.29 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002612/2.534, allocations: 56 kB / 0.8133 GB, free: 15.24 MB / 459.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.4611/2.996, allocations: 29.9 MB / 0.8425 GB, free: 103.9 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001423/2.996, allocations: 86.28 kB / 0.8426 GB, free: 103.9 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08834/3.084, allocations: 20.26 MB / 0.8624 GB, free: 103.7 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08615/3.17, allocations: 16.54 MB / 0.8785 GB, free: 103.6 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01358/3.184, allocations: 2.157 MB / 0.8806 GB, free: 103.6 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07207/3.256, allocations: 31.46 MB / 0.9114 GB, free: 93.16 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01387/3.27, allocations: 0.5918 MB / 0.9119 GB, free: 92.96 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003257/3.273, allocations: 0.569 MB / 0.9125 GB, free: 92.79 MB / 459.1 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.004457/3.278, allocations: 0.5996 MB / 0.9131 GB, free: 92.49 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03236/3.31, allocations: 9.655 MB / 0.9225 GB, free: 83.22 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002672/3.313, allocations: 0.6365 MB / 0.9231 GB, free: 82.93 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03313/3.346, allocations: 9.743 MB / 0.9326 GB, free: 73.22 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02851/3.375, allocations: 8.549 MB / 0.941 GB, free: 64.71 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.27e-05/3.375, allocations: 17.72 kB / 0.941 GB, free: 64.69 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001301/3.375, allocations: 19.94 kB / 0.941 GB, free: 64.67 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06855/3.444, allocations: 22.21 MB / 0.9627 GB, free: 42.7 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.305e-05/3.444, allocations: 0 / 0.9627 GB, free: 42.7 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005659/3.449, allocations: 0.5532 MB / 0.9633 GB, free: 42.17 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02349/3.473, allocations: 3.965 MB / 0.9671 GB, free: 38.26 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001213/3.474, allocations: 55.92 kB / 0.9672 GB, free: 38.21 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04328/3.517, allocations: 22.75 MB / 0.9894 GB, free: 15.03 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002254/3.52, allocations: 2.838 MB / 0.9922 GB, free: 11.96 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.371/3.891, allocations: 15.08 MB / 1.007 GB, free: 99.91 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005408/3.896, allocations: 1.3 MB / 1.008 GB, free: 99.81 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002177/3.899, allocations: 33.95 kB / 1.008 GB, free: 99.81 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00736/3.906, allocations: 271 kB / 1.008 GB, free: 99.81 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001679/3.908, allocations: 253 kB / 1.009 GB, free: 99.81 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005964/3.908, allocations: 103.7 kB / 1.009 GB, free: 99.81 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.01141/3.92, allocations: 3.899 MB / 1.013 GB, free: 99.59 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.022e-06/3.92, allocations: 0 / 1.013 GB, free: 99.59 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.01673/3.936, allocations: 1.901 MB / 1.014 GB, free: 99.59 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 16 ($STATESET6578692489.x[3],$STATESET6578692489.x[2],$STATESET6578692489.x[1],rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3],$STATESET6578692488.x[3],$STATESET6578692488.x[2],$STATESET6578692488.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.0449/3.981, allocations: 16.06 MB / 1.03 GB, free: 97.49 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.02775/4.009, allocations: 11.31 MB / 1.041 GB, free: 95.1 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/4.009, allocations: 0 / 1.041 GB, free: 95.1 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01289/4.022, allocations: 4.978 MB / 1.046 GB, free: 92.72 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008764/4.031, allocations: 0.8021 MB / 1.047 GB, free: 92.42 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06931/4.1, allocations: 19.03 MB / 1.065 GB, free: 85.9 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01455/4.115, allocations: 5.512 MB / 1.071 GB, free: 84.18 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01016/4.125, allocations: 3.714 MB / 1.074 GB, free: 81.19 MB / 459.1 MB Notification: Performance of SimCode: time 1.613e-06/4.125, allocations: 3.75 kB / 1.074 GB, free: 81.19 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.339/11.46, allocations: 356.3 MB / 1.422 GB, free: 113.6 MB / 0.4952 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