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.00127/0.00127, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001465/0.001465, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.535/1.535, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001269/0.001269, allocations: 51.92 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1051, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.2652/0.3703, allocations: 11.76 MB / 386.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009162/0.3795, allocations: 3.913 MB / 390.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003256/0.3829, allocations: 67 kB / 390.2 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006256/0.3892, allocations: 2.708 MB / 392.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007447/0.3967, allocations: 1.884 MB / 394.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002172/0.3989, allocations: 0.5706 MB / 395.4 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008687/0.4076, allocations: 3.757 MB / 399.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007361/0.4151, allocations: 3.686 MB / 402.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004921/0.4201, allocations: 1.537 MB / 404.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006179/0.4263, allocations: 2.117 MB / 406.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002212/0.4286, allocations: 340.4 kB / 406.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004119/0.4327, allocations: 1.068 MB / 407.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003163/0.4359, allocations: 1.914 MB / 409.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005707/0.4416, allocations: 2.238 MB / 412 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01388/0.4556, allocations: 7.219 MB / 419.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.4556, allocations: 0 / 419.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4557, allocations: 0 / 419.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003159/0.456, allocations: 0 / 419.2 MB, free: 2.652 MB / 334.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.02137/0.4774, allocations: 5.439 MB / 424.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.477e-05/0.4774, allocations: 12.03 kB / 424.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00816/0.4856, allocations: 1.909 MB / 426.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00653/0.4922, allocations: 2.39 MB / 429 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002482/0.4925, allocations: 242 kB / 429.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001492/0.494, allocations: 311.8 kB / 429.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02436/0.5184, allocations: 10.72 MB / 440.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001823/0.5186, allocations: 47.58 kB / 440.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006672/0.5193, allocations: 155.8 kB / 440.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003794/0.5231, allocations: 1.982 MB / 442.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02139/0.5445, allocations: 9.567 MB / 452 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05778/0.6023, allocations: 39.83 MB / 491.8 MB, free: 8.078 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01327/0.6156, allocations: 3.844 MB / 495.7 MB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002766/0.6185, allocations: 1.848 MB / 497.5 MB, free: 2.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006429/0.6191, allocations: 364 kB / 497.9 MB, free: 1.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/0.6192, allocations: 43.56 kB / 497.9 MB, free: 1.766 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 5.19e-06/0.6192, allocations: 4 kB / 497.9 MB, free: 1.762 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.04468/0.6639, allocations: 13.99 MB / 0.4999 GB, free: 3.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/0.664, allocations: 145.5 kB / 0.5001 GB, free: 3.508 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006036/0.6701, allocations: 4.18 MB / 0.5041 GB, free: 15.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004737/0.6706, allocations: 49.7 kB / 0.5042 GB, free: 15.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002553/0.6731, allocations: 3.295 MB / 0.5074 GB, free: 11.92 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001052/0.6742, allocations: 0.6358 MB / 0.508 GB, free: 11.28 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001699/0.6759, allocations: 1.238 MB / 0.5092 GB, free: 10.03 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.676, allocations: 301.1 kB / 0.5095 GB, free: 9.734 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003086/0.6791, allocations: 2.131 MB / 0.5116 GB, free: 7.598 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006006/0.6851, allocations: 5.968 MB / 0.5174 GB, free: 15.71 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01242/0.6976, allocations: 8.772 MB / 0.526 GB, free: 5.023 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/0.6977, allocations: 40 kB / 0.526 GB, free: 4.984 MB / 462.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01703/0.7148, allocations: 8.602 MB / 0.5344 GB, free: 12.38 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001538/0.715, allocations: 64 kB / 0.5345 GB, free: 12.31 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001964/0.7152, allocations: 136 kB / 0.5346 GB, free: 12.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002587/0.7178, allocations: 0.9112 MB / 0.5355 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004931/0.7227, allocations: 1.4 MB / 0.5369 GB, free: 9.863 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007323/0.7301, allocations: 5.204 MB / 0.542 GB, free: 4.516 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006197/0.7363, allocations: 327.6 kB / 0.5423 GB, free: 4.195 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001742/0.7381, allocations: 392 kB / 0.5426 GB, free: 3.812 MB / 478.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.005381/0.7435, allocations: 2.107 MB / 0.5447 GB, free: 1.691 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/0.7447, allocations: 365.5 kB / 0.5451 GB, free: 1.332 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.289/1.034, allocations: 3.135 MB / 0.5481 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.325e-05/1.034, allocations: 19.34 kB / 0.5481 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/1.034, allocations: 3.844 kB / 0.5481 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.052e-05/1.034, allocations: 7.688 kB / 0.5481 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/1.051, allocations: 7.821 MB / 0.5558 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.547e-05/1.051, allocations: 1.938 kB / 0.5558 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001322/1.052, allocations: 257.8 kB / 0.556 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002487/1.055, allocations: 0.7125 MB / 0.5567 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002014/1.055, allocations: 35.7 kB / 0.5568 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006828/1.062, allocations: 4.753 MB / 0.5614 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/1.062, allocations: 2.25 kB / 0.5614 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009429/1.071, allocations: 5.703 MB / 0.567 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/1.073, allocations: 0.6369 MB / 0.5676 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004398/1.073, allocations: 26.22 kB / 0.5676 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/1.075, allocations: 84.23 kB / 0.5677 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003358/1.075, allocations: 110.3 kB / 0.5678 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/1.075, allocations: 51.06 kB / 0.5679 GB, free: 138.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003948/1.079, allocations: 2.61 MB / 0.5704 GB, free: 137.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.11e-07/1.079, allocations: 0 / 0.5704 GB, free: 137.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006042/1.085, allocations: 0.9687 MB / 0.5714 GB, free: 137.2 MB / 478.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.0004174/1.086, allocations: 157.5 kB / 0.5715 GB, free: 137.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007197/1.093, allocations: 5.105 MB / 0.5765 GB, free: 135.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/1.093, allocations: 3.812 kB / 0.5765 GB, free: 135.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001806/1.095, allocations: 1.534 MB / 0.578 GB, free: 134.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/1.097, allocations: 435.3 kB / 0.5784 GB, free: 134.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01514/1.112, allocations: 9.119 MB / 0.5873 GB, free: 129.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003014/1.116, allocations: 3.248 MB / 0.5905 GB, free: 126.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003871/1.119, allocations: 1.925 MB / 0.5924 GB, free: 124.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006936/1.12, allocations: 267.3 kB / 0.5926 GB, free: 124.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.723e-06/1.12, allocations: 0 / 0.5926 GB, free: 124.6 MB / 478.1 MB Notification: Performance of Templates: time 0.05677/1.177, allocations: 33.83 MB / 0.6257 GB, free: 90.77 MB / 478.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)