Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001041/0.001041, allocations: 181.4 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.191/1.191, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008274/0.0008274, allocations: 92.98 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002126/0.0002126, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1904, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09778/0.2882, allocations: 98.2 MB / 474.1 MB, free: 14.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.2884, allocations: 95.89 kB / 474.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4482/0.7367, allocations: 147.9 MB / 0.6076 GB, free: 7.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7367, allocations: 4 kB / 0.6076 GB, free: 7.746 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002974/0.737, allocations: 148 kB / 0.6077 GB, free: 7.602 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.0298/0.7668, allocations: 9.481 MB / 0.617 GB, free: 14.03 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.7669, allocations: 12.03 kB / 0.617 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003022/0.7699, allocations: 1.168 MB / 0.6181 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05668/0.8266, allocations: 16.67 MB / 0.6344 GB, free: 12.13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3443/1.171, allocations: 13.21 MB / 0.6473 GB, free: 56.65 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003888/1.171, allocations: 0.4893 MB / 0.6478 GB, free: 56.64 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002532/1.174, allocations: 0.6638 MB / 0.6484 GB, free: 56.64 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02799/1.202, allocations: 16.89 MB / 0.6649 GB, free: 52.55 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002333/1.202, allocations: 110.2 kB / 0.665 GB, free: 52.55 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007784/1.203, allocations: 318.7 kB / 0.6653 GB, free: 52.55 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001825/1.205, allocations: 1.478 MB / 0.6668 GB, free: 52.54 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02559/1.23, allocations: 13.68 MB / 0.6801 GB, free: 52.46 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06778/1.298, allocations: 76.86 MB / 0.7552 GB, free: 15.73 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02257/1.321, allocations: 8.559 MB / 0.7636 GB, free: 13.29 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001717/1.323, allocations: 1.352 MB / 0.7649 GB, free: 12.11 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.507e-05/1.323, allocations: 58.12 kB / 0.7649 GB, free: 12.05 MB / 426.8 MB Notification: Performance of pre-optimization done (n=268): time 4.659e-06/1.323, allocations: 2.438 kB / 0.7649 GB, free: 12.05 MB / 426.8 MB Notification: Performance of matching and sorting (n=354): time 0.1605/1.483, allocations: 53.7 MB / 0.8174 GB, free: 2.262 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2088/1.692, allocations: 3.264 MB / 0.8206 GB, free: 99.99 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009951/1.702, allocations: 6.579 MB / 0.827 GB, free: 99.64 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001193/1.703, allocations: 76.27 kB / 0.8271 GB, free: 99.61 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00312/1.706, allocations: 5.213 MB / 0.8322 GB, free: 98.24 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001794/1.708, allocations: 1.344 MB / 0.8335 GB, free: 97.46 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005823/1.709, allocations: 192.1 kB / 0.8337 GB, free: 97.46 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0003746/1.709, allocations: 0.7117 MB / 0.8344 GB, free: 97.14 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005259/1.714, allocations: 4.581 MB / 0.8388 GB, free: 97.12 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008184/1.723, allocations: 9.88 MB / 0.8485 GB, free: 90.36 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009226/1.732, allocations: 6.576 MB / 0.8549 GB, free: 90.31 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002724/1.732, allocations: 52.41 kB / 0.8549 GB, free: 90.31 MB / 458.8 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.06729/1.799, allocations: 31.64 MB / 0.8858 GB, free: 86.68 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002724/1.8, allocations: 88.38 kB / 0.8859 GB, free: 86.68 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04295/1.843, allocations: 20.7 MB / 0.9061 GB, free: 83.33 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04143/1.884, allocations: 16.61 MB / 0.9224 GB, free: 70.67 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006865/1.891, allocations: 2.123 MB / 0.9244 GB, free: 68.55 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03996/1.931, allocations: 35.36 MB / 0.959 GB, free: 32.76 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009014/1.94, allocations: 0.7793 MB / 0.9597 GB, free: 31.98 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002136/1.942, allocations: 0.5624 MB / 0.9603 GB, free: 31.42 MB / 458.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.007333/1.95, allocations: 3.44 MB / 0.9636 GB, free: 27.98 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001457/1.951, allocations: 0.6749 MB / 0.9643 GB, free: 27.3 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01762/1.969, allocations: 10.22 MB / 0.9743 GB, free: 17.06 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2206/2.189, allocations: 8.908 MB / 0.983 GB, free: 84.5 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.501e-05/2.189, allocations: 13.56 kB / 0.983 GB, free: 84.5 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001004/2.19, allocations: 17.81 kB / 0.983 GB, free: 84.5 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04065/2.23, allocations: 23.67 MB / 1.006 GB, free: 83.35 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.411e-05/2.23, allocations: 6.031 kB / 1.006 GB, free: 83.35 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003026/2.233, allocations: 0.5732 MB / 1.007 GB, free: 83.35 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01225/2.246, allocations: 3.625 MB / 1.01 GB, free: 83.29 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008609/2.247, allocations: 95.64 kB / 1.01 GB, free: 83.29 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02461/2.271, allocations: 22.76 MB / 1.033 GB, free: 74.92 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001486/2.273, allocations: 2.994 MB / 1.035 GB, free: 72.04 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02237/2.295, allocations: 15.82 MB / 1.051 GB, free: 65.8 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004143/2.299, allocations: 1.388 MB / 1.052 GB, free: 65.41 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00146/2.301, allocations: 80.06 kB / 1.052 GB, free: 65.36 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00397/2.305, allocations: 328 kB / 1.053 GB, free: 65.32 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007024/2.305, allocations: 246.5 kB / 1.053 GB, free: 65.29 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002786/2.306, allocations: 99.72 kB / 1.053 GB, free: 65.27 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.007209/2.313, allocations: 4.717 MB / 1.058 GB, free: 63.77 MB / 458.8 MB Notification: Performance of sort global known variables: time 4.31e-07/2.313, allocations: 1.5 kB / 1.058 GB, free: 63.77 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.009924/2.323, allocations: 2.133 MB / 1.06 GB, free: 63.55 MB / 458.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.02307/2.346, allocations: 16.9 MB / 1.076 GB, free: 56.12 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01458/2.361, allocations: 12.03 MB / 1.088 GB, free: 48.58 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/2.361, allocations: 6.062 kB / 1.088 GB, free: 48.58 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005804/2.366, allocations: 5.151 MB / 1.093 GB, free: 44.04 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004254/2.371, allocations: 0.9365 MB / 1.094 GB, free: 43.27 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3778/2.749, allocations: 220.1 MB / 1.309 GB, free: 10.52 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007525/2.756, allocations: 5.517 MB / 1.314 GB, free: 9.637 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.008552/2.765, allocations: 3.19 MB / 1.317 GB, free: 9.574 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005323/2.77, allocations: 3.689 MB / 1.321 GB, free: 9.566 MB / 0.4949 GB Notification: Performance of SimCode: time 2.505e-06/2.77, allocations: 0 / 1.321 GB, free: 9.566 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3989/3.169, allocations: 177.2 MB / 1.494 GB, free: 52.4 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000148/3.169, allocations: 249.6 kB / 1.494 GB, free: 52.15 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.262/9.431, allocations: 4 kB / 1.494 GB, free: 52.14 MB / 0.4949 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat does not exist to compare? outputFormat=mat