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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 107.6 kB / 16.92 MB, free: 6.141 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002114/0.002114, allocations: 191.3 kB / 17.85 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 55.92 kB / 280 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09232/0.09425, allocations: 46.63 MB / 326.6 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.0131/0.1074, allocations: 11.74 MB / 338.4 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008839/0.1163, allocations: 3.918 MB / 342.3 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002298/0.1187, allocations: 63.88 kB / 342.3 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005341/0.124, allocations: 2.714 MB / 345.1 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005122/0.1292, allocations: 1.883 MB / 346.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001501/0.1307, allocations: 0.5693 MB / 347.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005303/0.136, allocations: 3.758 MB / 351.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00535/0.1414, allocations: 3.694 MB / 355 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003437/0.1448, allocations: 1.534 MB / 356.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0036/0.1485, allocations: 2.122 MB / 358.6 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001212/0.1497, allocations: 340 kB / 359 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002719/0.1524, allocations: 1.057 MB / 360 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002421/0.1549, allocations: 1.909 MB / 361.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003674/0.1586, allocations: 2.256 MB / 364.2 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008099/0.1667, allocations: 6.931 MB / 371.1 MB, free: 7.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1667, allocations: 3.938 kB / 371.1 MB, free: 7.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1667, allocations: 0 / 371.1 MB, free: 7.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002341/0.167, allocations: 0 / 371.1 MB, free: 7.766 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01916/0.1861, allocations: 5.306 MB / 376.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.1862, allocations: 11.97 kB / 376.4 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006677/0.1929, allocations: 1.886 MB / 378.3 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2089/0.4018, allocations: 2.341 MB / 380.7 MB, free: 48.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002626/0.4021, allocations: 236.9 kB / 380.9 MB, free: 48.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001071/0.4032, allocations: 314.3 kB / 381.2 MB, free: 48.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02595/0.4291, allocations: 10.73 MB / 391.9 MB, free: 43.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000133/0.4293, allocations: 40.25 kB / 392 MB, free: 43.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004504/0.4298, allocations: 147.5 kB / 392.1 MB, free: 43.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003391/0.4332, allocations: 1.985 MB / 394.1 MB, free: 43.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01641/0.4496, allocations: 9.569 MB / 403.7 MB, free: 36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04172/0.4914, allocations: 39.92 MB / 443.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0135/0.5049, allocations: 3.844 MB / 447.4 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002733/0.5077, allocations: 1.848 MB / 449.3 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006283/0.5083, allocations: 356.3 kB / 449.6 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/0.5084, allocations: 51.5 kB / 449.7 MB, free: 4.758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=148): time 3.847e-06/0.5084, allocations: 0 / 449.7 MB, free: 4.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=154): time 0.04256/0.551, allocations: 13.77 MB / 463.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.834e-05/0.5511, allocations: 141.5 kB / 463.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005412/0.5565, allocations: 4.167 MB / 467.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003589/0.5569, allocations: 45.7 kB / 467.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002008/0.5589, allocations: 3.168 MB / 471 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006937/0.5596, allocations: 0.6096 MB / 471.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/0.561, allocations: 1.229 MB / 472.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.222e-05/0.5612, allocations: 309.1 kB / 473.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002906/0.5641, allocations: 2.131 MB / 475.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00532/0.5694, allocations: 5.96 MB / 481.2 MB, free: 3.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009497/0.5789, allocations: 8.778 MB / 490 MB, free: 8.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/0.5791, allocations: 40 kB / 490 MB, free: 8.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01408/0.5932, allocations: 8.581 MB / 498.6 MB, free: 15.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.288e-05/0.5933, allocations: 60 kB / 498.6 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/0.5934, allocations: 140.1 kB / 498.8 MB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002318/0.5957, allocations: 0.9114 MB / 499.7 MB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003962/0.5997, allocations: 1.4 MB / 0.4893 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006399/0.6061, allocations: 5.205 MB / 0.4944 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004382/0.6105, allocations: 323.6 kB / 0.4947 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007209/0.6112, allocations: 384 kB / 0.4951 GB, free: 7.195 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (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.groundColor[3],world.groundColor[2],world.groundColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (740): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00352/0.6148, allocations: 2.114 MB / 0.4972 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006941/0.6155, allocations: 347.5 kB / 0.4975 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005726/0.6212, allocations: 3.148 MB / 0.5006 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.57e-05/0.6212, allocations: 16 kB / 0.5006 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/0.6213, allocations: 4 kB / 0.5006 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.541e-05/0.6213, allocations: 3.984 kB / 0.5006 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01298/0.6343, allocations: 7.83 MB / 0.5082 GB, free: 9.625 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.6343, allocations: 4 kB / 0.5082 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.6356, allocations: 259.7 kB / 0.5085 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002124/0.6377, allocations: 0.7186 MB / 0.5092 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/0.6379, allocations: 35.97 kB / 0.5092 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005894/0.6438, allocations: 4.751 MB / 0.5139 GB, free: 3.723 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/0.6438, allocations: 7.969 kB / 0.5139 GB, free: 3.715 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008384/0.6522, allocations: 5.672 MB / 0.5194 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/0.6536, allocations: 0.6291 MB / 0.52 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004073/0.654, allocations: 28 kB / 0.5201 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.6553, allocations: 83.89 kB / 0.5201 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002937/0.6556, allocations: 104.7 kB / 0.5202 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/0.6557, allocations: 55.95 kB / 0.5203 GB, free: 13.09 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003654/0.6594, allocations: 2.607 MB / 0.5228 GB, free: 10.47 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6594, allocations: 0 / 0.5228 GB, free: 10.47 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004488/0.6639, allocations: 0.9635 MB / 0.5238 GB, free: 9.512 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * 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 (123): * Single equations (assignments): 119 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004018/0.6643, allocations: 160.4 kB / 0.5239 GB, free: 9.348 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009437/0.6738, allocations: 5.741 MB / 0.5295 GB, free: 3.641 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.086e-06/0.6738, allocations: 0 / 0.5295 GB, free: 3.641 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.676, allocations: 1.541 MB / 0.531 GB, free: 2.094 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002673/0.6787, allocations: 452.7 kB / 0.5315 GB, free: 1.656 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1761/0.8548, allocations: 9.077 MB / 0.5403 GB, free: 143.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005078/0.86, allocations: 3.241 MB / 0.5435 GB, free: 142.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005709/0.8657, allocations: 1.927 MB / 0.5454 GB, free: 142.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008601/0.8666, allocations: 273.3 kB / 0.5456 GB, free: 142.1 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8666, allocations: 0 / 0.5456 GB, free: 142.1 MB / 430.1 MB Notification: Performance of Templates: time 0.06738/0.934, allocations: 37.12 MB / 0.5819 GB, free: 114.6 MB / 430.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)