Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.000994/0.000994, allocations: 198.6 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.163/1.163, allocations: 226.6 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008068/0.0008069, allocations: 101.9 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002033/0.0002033, allocations: 4 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.184, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects): time 0.06214/0.2462, allocations: 85.76 MB / 493.9 MB, free: 5.719 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03408/0.2803, allocations: 17.71 MB / 0.4996 GB, free: 3.965 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01352/0.2939, allocations: 430.9 kB / 0.5 GB, free: 3.543 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1969/0.4908, allocations: 4.506 MB / 0.5044 GB, free: 2.98 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02868/0.5195, allocations: 13.44 MB / 0.5175 GB, free: 2.336 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005487/0.525, allocations: 1.324 MB / 0.5188 GB, free: 2.305 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1364/0.6615, allocations: 122.4 MB / 0.6383 GB, free: 15.03 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01174/0.6733, allocations: 8.318 MB / 0.6465 GB, free: 9.051 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004933/0.6782, allocations: 2.553 MB / 0.649 GB, free: 7.305 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005532/0.6838, allocations: 3.838 MB / 0.6527 GB, free: 4.414 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001437/0.6852, allocations: 240 kB / 0.6529 GB, free: 4.18 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003841/0.6891, allocations: 1.632 MB / 0.6545 GB, free: 2.844 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004054/0.6932, allocations: 3.325 MB / 0.6578 GB, free: 44 kB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005346/0.6985, allocations: 3.446 MB / 0.6611 GB, free: 13.58 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01033/0.7089, allocations: 9.782 MB / 0.6707 GB, free: 5.07 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.7089, allocations: 4 kB / 0.6707 GB, free: 5.066 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.7089, allocations: 0 / 0.6707 GB, free: 5.066 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004023/0.7093, allocations: 0 / 0.6707 GB, free: 5.066 MB / 490.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.02573/0.7351, allocations: 8.253 MB / 0.6788 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.7351, allocations: 8.031 kB / 0.6788 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002793/0.7379, allocations: 1.077 MB / 0.6798 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3865/1.124, allocations: 16.79 MB / 0.6962 GB, free: 212.2 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01585/1.14, allocations: 8.071 MB / 0.7041 GB, free: 210.3 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002137/1.141, allocations: 375.1 kB / 0.7045 GB, free: 210.2 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001898/1.143, allocations: 0.6942 MB / 0.7051 GB, free: 209.9 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02631/1.169, allocations: 16.91 MB / 0.7217 GB, free: 194.5 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001894/1.169, allocations: 91.2 kB / 0.7217 GB, free: 194.4 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006478/1.17, allocations: 241.5 kB / 0.722 GB, free: 194.2 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003326/1.173, allocations: 2.767 MB / 0.7247 GB, free: 191.5 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02525/1.198, allocations: 14.44 MB / 0.7388 GB, free: 177 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06964/1.268, allocations: 67.15 MB / 0.8043 GB, free: 108.8 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02605/1.294, allocations: 9.003 MB / 0.8131 GB, free: 99.62 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004494/1.299, allocations: 4.492 MB / 0.8175 GB, free: 95.11 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001076/1.3, allocations: 1.041 MB / 0.8185 GB, free: 93.92 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.528e-05/1.3, allocations: 64.44 kB / 0.8186 GB, free: 93.85 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=268): time 5.149e-06/1.3, allocations: 0 / 0.8186 GB, free: 93.85 MB / 0.4949 GB Notification: Performance of matching and sorting (n=348): time 0.1516/1.451, allocations: 54.17 MB / 0.8715 GB, free: 39.22 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001711/1.453, allocations: 3.229 MB / 0.8747 GB, free: 35.65 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01026/1.463, allocations: 7.453 MB / 0.8819 GB, free: 28.23 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0009031/1.464, allocations: 81.7 kB / 0.882 GB, free: 28.15 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002466/1.467, allocations: 5.136 MB / 0.887 GB, free: 22.95 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001385/1.468, allocations: 1.322 MB / 0.8883 GB, free: 21.61 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005271/1.469, allocations: 195.9 kB / 0.8885 GB, free: 21.42 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0003111/1.469, allocations: 0.707 MB / 0.8892 GB, free: 20.7 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005509/1.475, allocations: 5.043 MB / 0.8941 GB, free: 15.65 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007387/1.482, allocations: 10.31 MB / 0.9042 GB, free: 2.762 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1941/1.676, allocations: 16.42 MB / 0.9202 GB, free: 178.7 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-05/1.676, allocations: 50.94 kB / 0.9203 GB, free: 178.7 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1242) (initialization): time 0.06053/1.737, allocations: 33.11 MB / 0.9526 GB, free: 162.7 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 7.915e-05/1.737, allocations: 84 kB / 0.9527 GB, free: 162.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0422/1.779, allocations: 22.13 MB / 0.9743 GB, free: 140.5 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04174/1.821, allocations: 17.23 MB / 0.9911 GB, free: 123.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00685/1.828, allocations: 2.254 MB / 0.9933 GB, free: 120.9 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03929/1.867, allocations: 35.14 MB / 1.028 GB, free: 85.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007958/1.875, allocations: 0.7682 MB / 1.028 GB, free: 84.76 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001532/1.877, allocations: 0.5936 MB / 1.029 GB, free: 84.16 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 833 * 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 (1076): * Single equations (assignments): 1059 * Array equations: 11 * 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 {(4,100.0%) 41,(3,100.0%) 38} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.005777/1.883, allocations: 3.423 MB / 1.032 GB, free: 80.83 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001481/1.884, allocations: 0.6703 MB / 1.033 GB, free: 80.52 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01858/1.903, allocations: 11.33 MB / 1.044 GB, free: 69.13 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01562/1.918, allocations: 10.01 MB / 1.054 GB, free: 59.07 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-05/1.918, allocations: 19.98 kB / 1.054 GB, free: 59.05 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.013e-05/1.918, allocations: 11.95 kB / 1.054 GB, free: 59.04 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04003/1.958, allocations: 25.49 MB / 1.079 GB, free: 33.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.804e-05/1.958, allocations: 7.984 kB / 1.079 GB, free: 33.59 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003536/1.962, allocations: 0.7526 MB / 1.079 GB, free: 32.84 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0123/1.974, allocations: 4.122 MB / 1.084 GB, free: 28.71 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007071/1.975, allocations: 140.3 kB / 1.084 GB, free: 28.57 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1961/2.171, allocations: 23.6 MB / 1.107 GB, free: 170.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001327/2.173, allocations: 2.961 MB / 1.11 GB, free: 167.9 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02255/2.195, allocations: 17.12 MB / 1.126 GB, free: 161.8 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/2.197, allocations: 0.7153 MB / 1.127 GB, free: 161.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008806/2.198, allocations: 77.53 kB / 1.127 GB, free: 161.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003291/2.201, allocations: 324.6 kB / 1.127 GB, free: 161.6 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001033/2.202, allocations: 294.7 kB / 1.128 GB, free: 161.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003241/2.202, allocations: 133.9 kB / 1.128 GB, free: 161.5 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.005799/2.208, allocations: 4.739 MB / 1.132 GB, free: 158.9 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.3e-07/2.208, allocations: 0 / 1.132 GB, free: 158.9 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.007257/2.215, allocations: 2.156 MB / 1.135 GB, free: 156.8 MB / 0.4949 GB 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],bodyCylinder1.body.w_a[1],bodyCylinder1.body.w_a[2],bodyCylinder1.body.w_a[3],revolute.phi,revolute.w,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3]) * 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 (242): * Single equations (assignments): 232 * 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 {(5,100.0%) 34,(3,100.0%) 33,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02195/2.237, allocations: 17.84 MB / 1.152 GB, free: 141.4 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01487/2.252, allocations: 12.92 MB / 1.165 GB, free: 128.5 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 6.984e-06/2.252, allocations: 0 / 1.165 GB, free: 128.5 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.006434/2.259, allocations: 5.607 MB / 1.17 GB, free: 122.8 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0086/2.267, allocations: 0.9767 MB / 1.171 GB, free: 121.9 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1525/2.42, allocations: 97 MB / 1.266 GB, free: 18.85 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0083/2.428, allocations: 5.336 MB / 1.271 GB, free: 13.48 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005671/2.434, allocations: 3.869 MB / 1.275 GB, free: 9.613 MB / 0.4949 GB Notification: Performance of SimCode: time 8.91e-07/2.434, allocations: 0 / 1.275 GB, free: 9.613 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 17.46/19.9, allocations: 345 MB / 1.612 GB, free: 40.89 MB / 0.4949 GB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1)