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.0009824/0.0009823, allocations: 175.1 kB / 16.72 MB, free: 5.059 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 / 222.9 MB, free: 9.027 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.0007646/0.0007646, allocations: 100.1 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002907/0.0002907, allocations: 11.98 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2093, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects): time 0.06015/0.2695, allocations: 85.83 MB / 461 MB, free: 10.65 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03673/0.3063, allocations: 17.65 MB / 478.7 MB, free: 8.941 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01462/0.321, allocations: 430.8 kB / 479.1 MB, free: 8.52 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01265/0.3337, allocations: 4.506 MB / 483.6 MB, free: 3.992 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0334/0.3671, allocations: 13.46 MB / 497.1 MB, free: 6.484 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005869/0.373, allocations: 1.334 MB / 498.4 MB, free: 5.148 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.2425/0.6155, allocations: 67.61 MB / 0.5527 GB, free: 3.211 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01025/0.6258, allocations: 8.332 MB / 0.5609 GB, free: 13.26 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004079/0.6299, allocations: 2.564 MB / 0.5634 GB, free: 11.5 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004815/0.6347, allocations: 3.852 MB / 0.5671 GB, free: 8.73 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.6357, allocations: 243.3 kB / 0.5674 GB, free: 8.496 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003131/0.6389, allocations: 1.63 MB / 0.569 GB, free: 7.23 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003133/0.642, allocations: 3.341 MB / 0.5722 GB, free: 4.734 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003468/0.6455, allocations: 3.469 MB / 0.5756 GB, free: 3.473 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00862/0.6541, allocations: 9.826 MB / 0.5852 GB, free: 10.93 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.6542, allocations: 4 kB / 0.5852 GB, free: 10.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.6542, allocations: 0 / 0.5852 GB, free: 10.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003096/0.6545, allocations: 0 / 0.5852 GB, free: 10.93 MB / 426.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.02442/0.6789, allocations: 8.275 MB / 0.5933 GB, free: 3.266 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.679, allocations: 8.031 kB / 0.5933 GB, free: 3.258 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002302/0.6813, allocations: 1.08 MB / 0.5944 GB, free: 2.609 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.081/0.7623, allocations: 15.85 MB / 0.6098 GB, free: 3.586 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01698/0.7793, allocations: 9.389 MB / 0.619 GB, free: 12.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/0.7797, allocations: 380.5 kB / 0.6194 GB, free: 12.54 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002325/0.782, allocations: 0.6888 MB / 0.62 GB, free: 12.07 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03057/0.8126, allocations: 16.91 MB / 0.6366 GB, free: 14.57 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002234/0.8129, allocations: 81.28 kB / 0.6366 GB, free: 14.52 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007334/0.8136, allocations: 240.9 kB / 0.6369 GB, free: 14.45 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003945/0.8176, allocations: 2.777 MB / 0.6396 GB, free: 12.18 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0285/0.8461, allocations: 14.44 MB / 0.6537 GB, free: 1.75 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3485/1.195, allocations: 67.21 MB / 0.7193 GB, free: 163.5 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0254/1.22, allocations: 9.006 MB / 0.7281 GB, free: 159.1 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004324/1.224, allocations: 4.491 MB / 0.7325 GB, free: 156.1 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009894/1.225, allocations: 1.036 MB / 0.7335 GB, free: 154.9 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/1.225, allocations: 64.39 kB / 0.7336 GB, free: 154.9 MB / 490.8 MB Notification: Performance of pre-optimization done (n=268): time 4.449e-06/1.225, allocations: 6.016 kB / 0.7336 GB, free: 154.9 MB / 490.8 MB Notification: Performance of matching and sorting (n=348): time 0.14/1.366, allocations: 54.39 MB / 0.7867 GB, free: 100.6 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001564/1.367, allocations: 3.238 MB / 0.7899 GB, free: 96.99 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008095/1.375, allocations: 7.513 MB / 0.7972 GB, free: 89.52 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009731/1.376, allocations: 78.72 kB / 0.7973 GB, free: 89.44 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002608/1.379, allocations: 5.152 MB / 0.8023 GB, free: 84.32 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001526/1.38, allocations: 1.329 MB / 0.8036 GB, free: 83 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006031/1.381, allocations: 184 kB / 0.8038 GB, free: 82.82 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003254/1.381, allocations: 0.7109 MB / 0.8045 GB, free: 82.11 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005525/1.387, allocations: 5.047 MB / 0.8094 GB, free: 77.05 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007532/1.394, allocations: 10.31 MB / 0.8195 GB, free: 64.25 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01398/1.408, allocations: 16.41 MB / 0.8355 GB, free: 45.39 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.271e-05/1.409, allocations: 52 kB / 0.8355 GB, free: 45.34 MB / 490.8 MB Notification: Performance of matching and sorting (n=1242) (initialization): time 0.06391/1.472, allocations: 32.74 MB / 0.8675 GB, free: 12.54 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001605/1.473, allocations: 84 kB / 0.8676 GB, free: 12.46 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2169/1.69, allocations: 21.76 MB / 0.8888 GB, free: 183.4 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04308/1.733, allocations: 16.86 MB / 0.9053 GB, free: 180.5 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007491/1.74, allocations: 2.251 MB / 0.9075 GB, free: 180 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04032/1.781, allocations: 35.12 MB / 0.9418 GB, free: 149.8 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00841/1.789, allocations: 0.7736 MB / 0.9426 GB, free: 149 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001487/1.791, allocations: 0.591 MB / 0.9431 GB, free: 148.4 MB / 490.8 MB 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.005221/1.796, allocations: 3.426 MB / 0.9465 GB, free: 145.1 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001226/1.797, allocations: 0.673 MB / 0.9471 GB, free: 144.8 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01787/1.815, allocations: 11.34 MB / 0.9582 GB, free: 133.4 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01528/1.83, allocations: 10.01 MB / 0.968 GB, free: 123.4 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-05/1.83, allocations: 19.12 kB / 0.968 GB, free: 123.4 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.574e-05/1.83, allocations: 15.94 kB / 0.968 GB, free: 123.4 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03983/1.87, allocations: 25.53 MB / 0.9929 GB, free: 97.94 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.507e-05/1.87, allocations: 4 kB / 0.9929 GB, free: 97.94 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004165/1.874, allocations: 0.7526 MB / 0.9937 GB, free: 97.18 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01223/1.887, allocations: 4.122 MB / 0.9977 GB, free: 93.12 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008342/1.888, allocations: 131.8 kB / 0.9978 GB, free: 92.99 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02363/1.911, allocations: 23.62 MB / 1.021 GB, free: 68.91 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00145/1.913, allocations: 2.969 MB / 1.024 GB, free: 65.68 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02489/1.938, allocations: 17.11 MB / 1.041 GB, free: 48.62 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003698/1.941, allocations: 1.433 MB / 1.042 GB, free: 47.16 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002135/1.943, allocations: 84.64 kB / 1.042 GB, free: 47.09 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004677/1.948, allocations: 319.5 kB / 1.042 GB, free: 46.77 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001507/1.95, allocations: 294.3 kB / 1.043 GB, free: 46.49 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006658/1.95, allocations: 137.3 kB / 1.043 GB, free: 46.36 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007754/1.958, allocations: 4.783 MB / 1.047 GB, free: 41.62 MB / 490.8 MB Notification: Performance of sort global known variables: time 3.71e-07/1.958, allocations: 0 / 1.047 GB, free: 41.62 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.009803/1.968, allocations: 2.154 MB / 1.049 GB, free: 39.47 MB / 490.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],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.02659/1.995, allocations: 17.82 MB / 1.067 GB, free: 21.55 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.1737/2.168, allocations: 12.93 MB / 1.08 GB, free: 187.5 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/2.168, allocations: 0 / 1.08 GB, free: 187.5 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007822/2.176, allocations: 5.608 MB / 1.085 GB, free: 186.1 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007396/2.184, allocations: 0.978 MB / 1.086 GB, free: 185.7 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1431/2.327, allocations: 97.08 MB / 1.181 GB, free: 97.06 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006169/2.333, allocations: 5.357 MB / 1.186 GB, free: 91.67 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005658/2.339, allocations: 3.881 MB / 1.19 GB, free: 87.79 MB / 490.8 MB Notification: Performance of SimCode: time 1.062e-06/2.339, allocations: 4 kB / 1.19 GB, free: 87.79 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 17.39/19.73, allocations: 346.2 MB / 1.528 GB, free: 108.5 MB / 490.8 MB (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)