Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001479/0.001479, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.601/1.601, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001665/0.001665, allocations: 114.8 kB / 248.1 MB, free: 6.324 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.881e-05/1.871e-05, allocations: 4 kB / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0989/0.09894, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3346/0.4336, allocations: 91.63 MB / 434.2 MB, free: 4.457 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.4339, allocations: 85.89 kB / 434.3 MB, free: 4.414 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2281/0.662, allocations: 82.17 MB / 0.5044 GB, free: 9.16 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.6621, allocations: 0 / 0.5044 GB, free: 9.16 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003749/0.6625, allocations: 76 kB / 0.5044 GB, free: 9.086 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1525 * Number of variables: 1525 Notification: Performance of Generate backend data structure: time 0.02201/0.6845, allocations: 4.471 MB / 0.5088 GB, free: 4.551 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.6846, allocations: 15.97 kB / 0.5088 GB, free: 4.535 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01154/0.6961, allocations: 2.217 MB / 0.511 GB, free: 2.309 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2518/0.948, allocations: 4.442 MB / 0.5153 GB, free: 72.97 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.9483, allocations: 136.6 kB / 0.5154 GB, free: 72.97 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001506/0.9498, allocations: 251.1 kB / 0.5157 GB, free: 72.97 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0107/0.9605, allocations: 6.344 MB / 0.5219 GB, free: 72.95 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/0.9747, allocations: 9.671 MB / 0.5313 GB, free: 70.15 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000139/0.9749, allocations: 60.25 kB / 0.5314 GB, free: 70.15 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004781/0.9754, allocations: 32.47 kB / 0.5314 GB, free: 70.15 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001314/0.9767, allocations: 0.9975 MB / 0.5324 GB, free: 70.14 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04397/1.021, allocations: 46.92 MB / 0.5782 GB, free: 39.5 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004278/1.025, allocations: 3.223 MB / 0.5814 GB, free: 37.83 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003029/1.028, allocations: 1.738 MB / 0.5831 GB, free: 37.11 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00786/1.036, allocations: 4.234 MB / 0.5872 GB, free: 34.78 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/1.036, allocations: 48.28 kB / 0.5872 GB, free: 34.73 MB / 395.1 MB Notification: Performance of pre-optimization done (n=139): time 4.729e-06/1.036, allocations: 3 kB / 0.5872 GB, free: 34.73 MB / 395.1 MB Notification: Performance of matching and sorting (n=146): time 0.02437/1.06, allocations: 12.04 MB / 0.599 GB, free: 29.5 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/1.061, allocations: 144.9 kB / 0.5991 GB, free: 29.35 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006333/1.067, allocations: 3.131 MB / 0.6022 GB, free: 28.12 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004352/1.067, allocations: 28.84 kB / 0.6022 GB, free: 28.09 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002344/1.07, allocations: 3.245 MB / 0.6054 GB, free: 25.54 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009097/1.071, allocations: 0.5768 MB / 0.6059 GB, free: 25.13 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003184/1.071, allocations: 0 / 0.6059 GB, free: 25.13 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003849/1.071, allocations: 0.5657 MB / 0.6065 GB, free: 24.71 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00285/1.074, allocations: 1.858 MB / 0.6083 GB, free: 24.06 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005012/1.079, allocations: 5.795 MB / 0.614 GB, free: 17.98 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007165/1.086, allocations: 3.255 MB / 0.6172 GB, free: 16.75 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001593/1.087, allocations: 38.69 kB / 0.6172 GB, free: 16.75 MB / 395.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.0208/1.107, allocations: 7.425 MB / 0.6244 GB, free: 14.29 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001382/1.108, allocations: 70.41 kB / 0.6245 GB, free: 14.29 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002837/1.108, allocations: 147.2 kB / 0.6246 GB, free: 14.28 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003386/1.111, allocations: 0.9257 MB / 0.6256 GB, free: 14.15 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007543/1.119, allocations: 1.43 MB / 0.6269 GB, free: 13.98 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007852/1.127, allocations: 4.617 MB / 0.6315 GB, free: 27.5 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007897/1.135, allocations: 220.3 kB / 0.6317 GB, free: 27.47 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001849/1.137, allocations: 389 kB / 0.632 GB, free: 27.43 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 649 * Number of states: 0 () * Number of discrete variables: 33 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 756 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002453/1.139, allocations: 467 kB / 0.6325 GB, free: 27.05 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001162/1.14, allocations: 311.7 kB / 0.6328 GB, free: 26.88 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008152/1.149, allocations: 2.706 MB / 0.6354 GB, free: 25.96 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.909e-05/1.149, allocations: 23.05 kB / 0.6354 GB, free: 25.94 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-05/1.149, allocations: 4 kB / 0.6354 GB, free: 25.93 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.552e-05/1.149, allocations: 7.5 kB / 0.6355 GB, free: 25.93 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01956/1.168, allocations: 6.127 MB / 0.6414 GB, free: 21.07 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.857e-05/1.168, allocations: 4 kB / 0.6414 GB, free: 21.06 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001966/1.17, allocations: 247.1 kB / 0.6417 GB, free: 20.87 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002964/1.173, allocations: 0.6917 MB / 0.6424 GB, free: 20.42 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002939/1.174, allocations: 7.844 kB / 0.6424 GB, free: 20.42 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007417/1.181, allocations: 4.181 MB / 0.6464 GB, free: 16.68 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.416e-05/1.181, allocations: 4 kB / 0.6464 GB, free: 16.67 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0134/1.195, allocations: 4.991 MB / 0.6513 GB, free: 12.38 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002458/1.197, allocations: 0.5664 MB / 0.6519 GB, free: 11.83 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001246/1.198, allocations: 4 kB / 0.6519 GB, free: 11.83 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00247/1.201, allocations: 69.62 kB / 0.6519 GB, free: 11.79 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003774/1.201, allocations: 90.25 kB / 0.652 GB, free: 11.73 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000168/1.201, allocations: 36 kB / 0.6521 GB, free: 11.7 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.004058/1.205, allocations: 2.083 MB / 0.6541 GB, free: 9.898 MB / 411.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.205, allocations: 0 / 0.6541 GB, free: 9.898 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.006655/1.212, allocations: 0.8242 MB / 0.6549 GB, free: 9.082 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 111 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005043/1.213, allocations: 137.1 kB / 0.655 GB, free: 8.949 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.008817/1.221, allocations: 4.443 MB / 0.6594 GB, free: 4.945 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/1.222, allocations: 0 / 0.6594 GB, free: 4.945 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/1.224, allocations: 1.308 MB / 0.6607 GB, free: 3.762 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003158/1.227, allocations: 324.2 kB / 0.661 GB, free: 3.488 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2707/1.497, allocations: 7.519 MB / 0.6683 GB, free: 76.57 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00369/1.501, allocations: 3.316 MB / 0.6715 GB, free: 75.79 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.004571/1.506, allocations: 1.904 MB / 0.6734 GB, free: 75.75 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005807/1.506, allocations: 224.4 kB / 0.6736 GB, free: 75.75 MB / 411.1 MB Notification: Performance of SimCode: time 1.653e-06/1.506, allocations: 0 / 0.6736 GB, free: 75.75 MB / 411.1 MB Notification: Performance of Templates: time 0.06252/1.569, allocations: 28.12 MB / 0.7011 GB, free: 74.57 MB / 411.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1)