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"}) [: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 3.2.3+maint.om/package.mo): time 0.001604/0.001604, allocations: 179.6 kB / 8.478 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.318/1.318, allocations: 205.2 MB / 214.1 MB, free: 5.52 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009475/0.0009475, allocations: 94.2 kB / 262.1 MB, free: 5.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1989/0.1999, allocations: 52.97 MB / 315.1 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08512/0.2851, allocations: 47.57 MB / 362.6 MB, free: 9.934 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.275/0.5601, allocations: 97.38 MB / 460 MB, free: 7.113 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.5604, allocations: 84.11 kB / 460.1 MB, free: 7.102 MB / 314.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.5744/1.135, allocations: 151.6 MB / 0.5973 GB, free: 69.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/1.135, allocations: 7.656 kB / 0.5974 GB, free: 69.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05722/1.192, allocations: 14.76 MB / 0.6118 GB, free: 68.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03245/1.225, allocations: 13.18 MB / 0.6246 GB, free: 67.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003796/1.225, allocations: 211.3 kB / 0.6248 GB, free: 67.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002955/1.228, allocations: 415.2 kB / 0.6252 GB, free: 67.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01994/1.248, allocations: 9.389 MB / 0.6344 GB, free: 66.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02913/1.277, allocations: 14.52 MB / 0.6486 GB, free: 53.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006383/1.278, allocations: 106.2 kB / 0.6487 GB, free: 53.53 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002496/1.28, allocations: 47.91 kB / 0.6487 GB, free: 53.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002185/1.282, allocations: 1.593 MB / 0.6503 GB, free: 52.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2524/1.535, allocations: 76.79 MB / 0.7253 GB, free: 72.31 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006772/1.542, allocations: 5.591 MB / 0.7307 GB, free: 71.64 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006103/1.548, allocations: 4.593 MB / 0.7352 GB, free: 71.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02256/1.57, allocations: 14.75 MB / 0.7496 GB, free: 68.04 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.935e-05/1.571, allocations: 69.45 kB / 0.7497 GB, free: 68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=262): time 7.404e-06/1.571, allocations: 3.797 kB / 0.7497 GB, free: 68 MB / 426.7 MB Notification: Performance of matching and sorting (n=342): time 0.1093/1.68, allocations: 43.39 MB / 0.7921 GB, free: 57.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/1.68, allocations: 293.7 kB / 0.7923 GB, free: 56.78 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01213/1.692, allocations: 5.751 MB / 0.798 GB, free: 54.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001201/1.693, allocations: 25.7 kB / 0.798 GB, free: 54.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003556/1.697, allocations: 4.475 MB / 0.8024 GB, free: 51.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002955/1.7, allocations: 1.268 MB / 0.8036 GB, free: 50.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001718/1.702, allocations: 0 / 0.8036 GB, free: 50.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001105/1.703, allocations: 0.7211 MB / 0.8043 GB, free: 50.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006977/1.71, allocations: 4.392 MB / 0.8086 GB, free: 48.49 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01004/1.72, allocations: 9.768 MB / 0.8181 GB, free: 37.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009587/1.729, allocations: 6.488 MB / 0.8245 GB, free: 32.41 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002075/1.73, allocations: 52 kB / 0.8245 GB, free: 32.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=1252) (initialization): time 0.06824/1.798, allocations: 24.62 MB / 0.8486 GB, free: 14.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/1.798, allocations: 8 kB / 0.8486 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04573/1.844, allocations: 16.02 MB / 0.8642 GB, free: 2.789 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04514/1.889, allocations: 11.39 MB / 0.8753 GB, free: 7.398 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008421/1.897, allocations: 2.1 MB / 0.8774 GB, free: 5.305 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2023/2.1, allocations: 28.91 MB / 0.9056 GB, free: 112.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01058/2.11, allocations: 445.3 kB / 0.906 GB, free: 112.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002623/2.113, allocations: 0.5722 MB / 0.9066 GB, free: 112.6 MB / 442.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.003713/2.117, allocations: 0.5886 MB / 0.9072 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002306/2.119, allocations: 0.625 MB / 0.9078 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0219/2.141, allocations: 9.778 MB / 0.9173 GB, free: 112.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01945/2.16, allocations: 8.581 MB / 0.9257 GB, free: 111.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.869e-05/2.16, allocations: 18.44 kB / 0.9257 GB, free: 111.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.373e-05/2.161, allocations: 17.06 kB / 0.9257 GB, free: 111.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04912/2.21, allocations: 22.05 MB / 0.9473 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.853e-05/2.21, allocations: 6.594 kB / 0.9473 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003133/2.213, allocations: 481.1 kB / 0.9477 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01387/2.227, allocations: 3.819 MB / 0.9515 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001071/2.228, allocations: 57.86 kB / 0.9515 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02718/2.255, allocations: 21.79 MB / 0.9728 GB, free: 90.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001474/2.257, allocations: 2.773 MB / 0.9755 GB, free: 87.63 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02556/2.282, allocations: 15.21 MB / 0.9904 GB, free: 77.89 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03068/2.313, allocations: 20.59 MB / 1.01 GB, free: 59.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003982/2.317, allocations: 1.293 MB / 1.012 GB, free: 58.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002635/2.32, allocations: 37.38 kB / 1.012 GB, free: 58.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004804/2.324, allocations: 165.7 kB / 1.012 GB, free: 58.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008454/2.325, allocations: 179.2 kB / 1.012 GB, free: 58.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005793/2.326, allocations: 92.98 kB / 1.012 GB, free: 58.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00797/2.334, allocations: 3.984 MB / 1.016 GB, free: 54.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01259/2.347, allocations: 1.856 MB / 1.018 GB, free: 53.02 MB / 442.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.001259/2.348, allocations: 175.1 kB / 1.018 GB, free: 52.89 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01745/2.365, allocations: 11.23 MB / 1.029 GB, free: 43.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/2.365, allocations: 0 / 1.029 GB, free: 43.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007016/2.372, allocations: 4.81 MB / 1.034 GB, free: 38.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00489/2.377, allocations: 0.7792 MB / 1.034 GB, free: 38.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04296/2.42, allocations: 16.16 MB / 1.05 GB, free: 24.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.187/2.607, allocations: 5.958 MB / 1.056 GB, free: 114.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.513e-06/2.607, allocations: 3.844 kB / 1.056 GB, free: 114.7 MB / 442.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)