Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 202.7 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.142/1.142, allocations: 225.5 MB / 234.4 MB, free: 15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009669/0.000967, allocations: 90.91 kB / 286.4 MB, free: 12.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1035/0.1045, allocations: 56.88 MB / 343.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.3071, allocations: 51.46 MB / 394.7 MB, free: 33.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1175/0.4246, allocations: 99.73 MB / 494.4 MB, free: 13.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.4249, allocations: 87.94 kB / 494.5 MB, free: 13.21 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.5188/0.9437, allocations: 162.3 MB / 0.6415 GB, free: 10.78 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.9437, allocations: 8 kB / 0.6415 GB, free: 10.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.211/1.155, allocations: 15.6 MB / 0.6567 GB, free: 87.44 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02551/1.18, allocations: 11.35 MB / 0.6678 GB, free: 86.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00025/1.181, allocations: 211 kB / 0.668 GB, free: 86.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002111/1.183, allocations: 410 kB / 0.6684 GB, free: 86.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01353/1.196, allocations: 9.39 MB / 0.6775 GB, free: 86.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01886/1.215, allocations: 14.51 MB / 0.6917 GB, free: 82.85 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002467/1.215, allocations: 109 kB / 0.6918 GB, free: 82.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007626/1.216, allocations: 50.06 kB / 0.6919 GB, free: 82.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00174/1.218, allocations: 1.589 MB / 0.6934 GB, free: 82.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07272/1.291, allocations: 76.7 MB / 0.7683 GB, free: 34.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006375/1.297, allocations: 5.582 MB / 0.7738 GB, free: 32.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005165/1.302, allocations: 4.598 MB / 0.7783 GB, free: 30.08 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02302/1.325, allocations: 14.7 MB / 0.7926 GB, free: 20.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/1.325, allocations: 73.3 kB / 0.7927 GB, free: 20.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=262): time 5.971e-06/1.325, allocations: 0 / 0.7927 GB, free: 20.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=342): time 0.2606/1.586, allocations: 43.23 MB / 0.8349 GB, free: 79.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.522e-05/1.586, allocations: 292.8 kB / 0.8352 GB, free: 78.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008037/1.594, allocations: 5.696 MB / 0.8407 GB, free: 78.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008335/1.595, allocations: 29.48 kB / 0.8408 GB, free: 78.24 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002252/1.597, allocations: 4.465 MB / 0.8451 GB, free: 75.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001557/1.599, allocations: 1.273 MB / 0.8464 GB, free: 75.06 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000472/1.599, allocations: 0 / 0.8464 GB, free: 75.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003799/1.6, allocations: 0.7133 MB / 0.8471 GB, free: 74.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005141/1.605, allocations: 4.395 MB / 0.8514 GB, free: 74.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007337/1.612, allocations: 9.77 MB / 0.8609 GB, free: 67.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007404/1.62, allocations: 6.48 MB / 0.8672 GB, free: 67.74 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-05/1.62, allocations: 55.75 kB / 0.8673 GB, free: 67.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=1252) (initialization): time 0.06344/1.683, allocations: 24.84 MB / 0.8915 GB, free: 67.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/1.683, allocations: 5.5 kB / 0.8916 GB, free: 67.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04604/1.729, allocations: 16.22 MB / 0.9074 GB, free: 66.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04245/1.772, allocations: 11.6 MB / 0.9187 GB, free: 64.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007427/1.779, allocations: 2.088 MB / 0.9208 GB, free: 62.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03897/1.818, allocations: 28.91 MB / 0.949 GB, free: 37.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009776/1.828, allocations: 449.2 kB / 0.9494 GB, free: 37.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001963/1.83, allocations: 0.5686 MB / 0.95 GB, free: 36.75 MB / 426.7 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 (1106): * Single equations (assignments): 1093 * 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.001593/1.832, allocations: 0.5837 MB / 0.9505 GB, free: 36.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/1.833, allocations: 0.6248 MB / 0.9512 GB, free: 35.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1854/2.018, allocations: 10.02 MB / 0.9609 GB, free: 72 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01683/2.035, allocations: 8.566 MB / 0.9693 GB, free: 71.69 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-05/2.035, allocations: 24.22 kB / 0.9693 GB, free: 71.69 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.979e-05/2.035, allocations: 17.12 kB / 0.9693 GB, free: 71.69 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04324/2.079, allocations: 22.03 MB / 0.9909 GB, free: 70.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.212e-05/2.079, allocations: 3.969 kB / 0.9909 GB, free: 70.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003036/2.082, allocations: 478.6 kB / 0.9913 GB, free: 70.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01356/2.095, allocations: 3.824 MB / 0.995 GB, free: 70.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001045/2.096, allocations: 54.05 kB / 0.9951 GB, free: 70.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02635/2.123, allocations: 21.8 MB / 1.016 GB, free: 63.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001654/2.124, allocations: 2.764 MB / 1.019 GB, free: 60.61 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02452/2.149, allocations: 15.2 MB / 1.034 GB, free: 56.36 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03352/2.183, allocations: 20.59 MB / 1.054 GB, free: 48.24 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002262/2.185, allocations: 0.6426 MB / 1.055 GB, free: 47.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002189/2.187, allocations: 32.3 kB / 1.055 GB, free: 47.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004413/2.191, allocations: 171 kB / 1.055 GB, free: 47.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006884/2.192, allocations: 169.9 kB / 1.055 GB, free: 47.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003807/2.193, allocations: 99.52 kB / 1.055 GB, free: 47.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.006683/2.199, allocations: 3.94 MB / 1.059 GB, free: 46.42 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01149/2.211, allocations: 1.862 MB / 1.061 GB, free: 46.41 MB / 426.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],fixedRotation1.frame_b.R.w[1],fixedRotation1.frame_b.R.w[2],fixedRotation1.frame_b.R.w[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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (234): * Single equations (assignments): 223 * 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 {(5,100.0%) 35,(1,100.0%) 1,(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.0008724/2.212, allocations: 174.7 kB / 1.061 GB, free: 46.33 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01743/2.229, allocations: 11.22 MB / 1.072 GB, free: 39.31 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/2.229, allocations: 0 / 1.072 GB, free: 39.31 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006912/2.236, allocations: 4.811 MB / 1.077 GB, free: 34.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004749/2.241, allocations: 0.7851 MB / 1.077 GB, free: 34.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03728/2.278, allocations: 16.12 MB / 1.093 GB, free: 20.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01049/2.289, allocations: 5.947 MB / 1.099 GB, free: 15.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.693e-06/2.289, allocations: 0 / 1.099 GB, free: 15.9 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1)