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.00144/0.00144, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.461/1.461, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008738/0.0008738, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.571e-05/3.573e-05, allocations: 8 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1047, allocations: 47.57 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3281/0.4329, allocations: 98.1 MB / 468.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.4333, allocations: 93.91 kB / 468.3 MB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5968/1.03, allocations: 148.1 MB / 0.602 GB, free: 81.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/1.03, allocations: 0 / 0.602 GB, free: 81.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005669/1.031, allocations: 145.9 kB / 0.6021 GB, free: 81.17 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.03454/1.065, allocations: 8.568 MB / 0.6105 GB, free: 72.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/1.065, allocations: 8.031 kB / 0.6105 GB, free: 72.69 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00518/1.071, allocations: 1.162 MB / 0.6116 GB, free: 71.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05818/1.129, allocations: 16.68 MB / 0.6279 GB, free: 54.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03262/1.161, allocations: 13.16 MB / 0.6407 GB, free: 41.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004108/1.162, allocations: 497.1 kB / 0.6412 GB, free: 41.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003028/1.165, allocations: 0.6675 MB / 0.6419 GB, free: 40.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03544/1.2, allocations: 16.78 MB / 0.6583 GB, free: 22.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003158/1.201, allocations: 103 kB / 0.6584 GB, free: 22.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001148/1.202, allocations: 319.8 kB / 0.6587 GB, free: 21.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001696/1.204, allocations: 1.471 MB / 0.6601 GB, free: 20.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02739/1.231, allocations: 13.49 MB / 0.6733 GB, free: 6.691 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3537/1.585, allocations: 76.85 MB / 0.7483 GB, free: 32.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02489/1.61, allocations: 8.533 MB / 0.7567 GB, free: 31.96 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005653/1.615, allocations: 4.091 MB / 0.7607 GB, free: 31.92 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001873/1.617, allocations: 1.348 MB / 0.762 GB, free: 30.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/1.617, allocations: 65.78 kB / 0.762 GB, free: 30.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=268): time 6.071e-06/1.617, allocations: 0 / 0.762 GB, free: 30.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=354): time 0.1379/1.755, allocations: 46.89 MB / 0.8078 GB, free: 20.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001767/1.757, allocations: 3.236 MB / 0.811 GB, free: 16.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0102/1.767, allocations: 6.51 MB / 0.8173 GB, free: 13.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001054/1.769, allocations: 77.7 kB / 0.8174 GB, free: 13.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002935/1.771, allocations: 5.215 MB / 0.8225 GB, free: 8.793 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001681/1.773, allocations: 1.349 MB / 0.8238 GB, free: 7.605 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004558/1.774, allocations: 195.3 kB / 0.824 GB, free: 7.418 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003805/1.774, allocations: 0.7043 MB / 0.8247 GB, free: 6.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005474/1.779, allocations: 4.508 MB / 0.8291 GB, free: 2.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01627/1.796, allocations: 10.33 MB / 0.8392 GB, free: 8.379 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01068/1.806, allocations: 6.559 MB / 0.8456 GB, free: 2.879 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001404/1.807, allocations: 52 kB / 0.8457 GB, free: 2.828 MB / 442.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.353/2.16, allocations: 31.64 MB / 0.8766 GB, free: 102.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001589/2.16, allocations: 84 kB / 0.8766 GB, free: 102.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04469/2.205, allocations: 20.63 MB / 0.8968 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04241/2.247, allocations: 16.6 MB / 0.913 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007685/2.255, allocations: 2.122 MB / 0.9151 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04114/2.296, allocations: 33.33 MB / 0.9476 GB, free: 88.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009812/2.306, allocations: 0.7715 MB / 0.9484 GB, free: 87.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002378/2.308, allocations: 0.5633 MB / 0.9489 GB, free: 87.17 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.002112/2.31, allocations: 0.8119 MB / 0.9497 GB, free: 86.65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001719/2.312, allocations: 0.6821 MB / 0.9504 GB, free: 86.33 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01888/2.331, allocations: 10.24 MB / 0.9604 GB, free: 76.08 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0151/2.346, allocations: 8.931 MB / 0.9691 GB, free: 67.12 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-05/2.346, allocations: 22.22 kB / 0.9691 GB, free: 67.11 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.147e-05/2.346, allocations: 19.94 kB / 0.9691 GB, free: 67.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04188/2.388, allocations: 23.53 MB / 0.9921 GB, free: 43.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-05/2.388, allocations: 4 kB / 0.9921 GB, free: 43.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003035/2.391, allocations: 0.5629 MB / 0.9927 GB, free: 43.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01229/2.404, allocations: 4.016 MB / 0.9966 GB, free: 39.18 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001061/2.405, allocations: 99.92 kB / 0.9967 GB, free: 39.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02558/2.43, allocations: 23.99 MB / 1.02 GB, free: 14.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001687/2.432, allocations: 2.966 MB / 1.023 GB, free: 11.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2911/2.723, allocations: 15.7 MB / 1.038 GB, free: 97.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004447/2.728, allocations: 1.388 MB / 1.04 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001259/2.729, allocations: 88.06 kB / 1.04 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003699/2.733, allocations: 331.8 kB / 1.04 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008552/2.733, allocations: 249.6 kB / 1.04 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003074/2.734, allocations: 100.2 kB / 1.04 GB, free: 97.19 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00985/2.744, allocations: 4.644 MB / 1.045 GB, free: 96.95 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.9e-07/2.744, allocations: 0 / 1.045 GB, free: 96.95 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01171/2.755, allocations: 2.134 MB / 1.047 GB, free: 96.95 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.02411/2.78, allocations: 16.71 MB / 1.063 GB, free: 94.87 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0172/2.797, allocations: 11.88 MB / 1.075 GB, free: 92.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.964e-06/2.797, allocations: 1.656 kB / 1.075 GB, free: 92.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007105/2.804, allocations: 5.2 MB / 1.08 GB, free: 89.67 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005925/2.81, allocations: 0.9513 MB / 1.081 GB, free: 89.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04281/2.853, allocations: 18.81 MB / 1.099 GB, free: 82.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005862/2.859, allocations: 5.518 MB / 1.105 GB, free: 81.19 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007627/2.866, allocations: 3.19 MB / 1.108 GB, free: 80.99 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004884/2.871, allocations: 3.683 MB / 1.111 GB, free: 77.98 MB / 458.7 MB Notification: Performance of SimCode: time 8.62e-07/2.871, allocations: 2.625 kB / 1.111 GB, free: 77.98 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4788/3.35, allocations: 176.4 MB / 1.284 GB, free: 84.53 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/3.35, allocations: 221.5 kB / 1.284 GB, free: 84.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.607/9.957, allocations: 0 / 1.284 GB, free: 84.3 MB / 474.7 MB (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