Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009082/0.0009082, allocations: 181.2 kB / 8.132 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.089/1.089, allocations: 221.4 MB / 229.9 MB, free: 3.086 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008935/0.0008935, allocations: 92.59 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09763/0.09856, allocations: 55.83 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.2897, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09678/0.3865, allocations: 99.06 MB / 486.1 MB, free: 3.688 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.3868, allocations: 90.61 kB / 486.2 MB, free: 3.602 MB / 362.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.477/0.8638, allocations: 153.4 MB / 0.6245 GB, free: 14.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.8639, allocations: 8 kB / 0.6245 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05612/0.92, allocations: 14.76 MB / 0.639 GB, free: 15.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0316/0.9517, allocations: 12.53 MB / 0.6512 GB, free: 3.152 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004172/0.9521, allocations: 208 kB / 0.6514 GB, free: 2.949 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002744/0.9549, allocations: 411.7 kB / 0.6518 GB, free: 2.547 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1352/1.09, allocations: 9.388 MB / 0.661 GB, free: 92.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01805/1.108, allocations: 14.52 MB / 0.6751 GB, free: 88.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002102/1.108, allocations: 105.6 kB / 0.6752 GB, free: 88.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006517/1.109, allocations: 46.56 kB / 0.6753 GB, free: 88.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001589/1.111, allocations: 1.588 MB / 0.6768 GB, free: 88.76 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06598/1.177, allocations: 76.69 MB / 0.7517 GB, free: 43.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00561/1.182, allocations: 5.589 MB / 0.7572 GB, free: 41.12 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004751/1.187, allocations: 4.597 MB / 0.7617 GB, free: 39.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01958/1.207, allocations: 14.71 MB / 0.776 GB, free: 31.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/1.207, allocations: 65.88 kB / 0.7761 GB, free: 31.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=262): time 5.05e-06/1.207, allocations: 0 / 0.7761 GB, free: 31.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=342): time 0.09562/1.302, allocations: 43.14 MB / 0.8182 GB, free: 4.074 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/1.303, allocations: 293.3 kB / 0.8185 GB, free: 3.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1316/1.434, allocations: 5.733 MB / 0.8241 GB, free: 87.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008222/1.435, allocations: 25.7 kB / 0.8241 GB, free: 87.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002111/1.437, allocations: 4.472 MB / 0.8285 GB, free: 86.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001317/1.438, allocations: 1.266 MB / 0.8297 GB, free: 85.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004764/1.439, allocations: 0 / 0.8297 GB, free: 85.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003415/1.439, allocations: 0.7225 MB / 0.8304 GB, free: 85.28 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004779/1.444, allocations: 4.394 MB / 0.8347 GB, free: 85.25 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006628/1.451, allocations: 9.772 MB / 0.8443 GB, free: 78.33 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006812/1.457, allocations: 6.472 MB / 0.8506 GB, free: 78.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.508e-05/1.458, allocations: 53.22 kB / 0.8506 GB, free: 78.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=1252) (initialization): time 0.05766/1.515, allocations: 24.63 MB / 0.8747 GB, free: 77.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/1.515, allocations: 5.844 kB / 0.8747 GB, free: 77.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04063/1.556, allocations: 16.02 MB / 0.8903 GB, free: 77.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04169/1.598, allocations: 11.4 MB / 0.9015 GB, free: 77.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007339/1.605, allocations: 2.086 MB / 0.9035 GB, free: 77.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03829/1.643, allocations: 28.92 MB / 0.9318 GB, free: 61.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009198/1.653, allocations: 454.4 kB / 0.9322 GB, free: 61.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001921/1.655, allocations: 0.5713 MB / 0.9327 GB, free: 60.54 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.002508/1.657, allocations: 0.5899 MB / 0.9333 GB, free: 59.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001273/1.658, allocations: 0.617 MB / 0.9339 GB, free: 59.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01695/1.675, allocations: 9.776 MB / 0.9435 GB, free: 51.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01399/1.689, allocations: 8.569 MB / 0.9518 GB, free: 44.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.572e-05/1.689, allocations: 20 kB / 0.9519 GB, free: 44.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.082e-05/1.689, allocations: 14.67 kB / 0.9519 GB, free: 44.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1721/1.862, allocations: 22.03 MB / 0.9734 GB, free: 78.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.259e-05/1.862, allocations: 3.688 kB / 0.9734 GB, free: 78.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002736/1.864, allocations: 480.2 kB / 0.9738 GB, free: 78.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01238/1.877, allocations: 3.822 MB / 0.9776 GB, free: 78.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005888/1.877, allocations: 57.06 kB / 0.9776 GB, free: 78.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02261/1.9, allocations: 21.8 MB / 0.9989 GB, free: 70.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00132/1.901, allocations: 2.77 MB / 1.002 GB, free: 68.05 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02101/1.922, allocations: 15.2 MB / 1.016 GB, free: 66.79 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02595/1.948, allocations: 20.57 MB / 1.037 GB, free: 61.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/1.95, allocations: 0.6392 MB / 1.037 GB, free: 61.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001098/1.951, allocations: 39.41 kB / 1.037 GB, free: 61.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003081/1.954, allocations: 164.3 kB / 1.037 GB, free: 61.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004725/1.955, allocations: 170.7 kB / 1.038 GB, free: 61.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000335/1.955, allocations: 101.8 kB / 1.038 GB, free: 61.05 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.007425/1.963, allocations: 3.941 MB / 1.041 GB, free: 59.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01137/1.974, allocations: 1.854 MB / 1.043 GB, free: 59.7 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.0007472/1.975, allocations: 177.7 kB / 1.043 GB, free: 59.61 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01548/1.99, allocations: 11.23 MB / 1.054 GB, free: 55.79 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/1.99, allocations: 0 / 1.054 GB, free: 55.79 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006285/1.997, allocations: 4.808 MB / 1.059 GB, free: 53.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004371/2.001, allocations: 0.7773 MB / 1.06 GB, free: 53.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03347/2.034, allocations: 16.12 MB / 1.076 GB, free: 41.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008336/2.043, allocations: 5.946 MB / 1.081 GB, free: 37.05 MB / 426.7 MB Notification: Performance of SimCode: time 1.713e-06/2.043, allocations: 0 / 1.081 GB, free: 37.05 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.pipe 2>&1)