Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.0011/0.0011, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001297/0.001297, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.4 MB / 222.1 MB, free: 5.488 MB / 174.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.0006455/0.0006455, allocations: 16 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2789, allocations: 47.57 MB / 326.5 MB, free: 1.465 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.04326/0.3223, allocations: 45.5 MB / 372 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03132/0.3536, allocations: 9.816 MB / 381.8 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01194/0.3656, allocations: 211.5 kB / 382 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008247/0.3739, allocations: 2.333 MB / 384.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01931/0.3933, allocations: 6.977 MB / 391.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003123/0.3964, allocations: 0.4993 MB / 391.8 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006295/0.4027, allocations: 4.374 MB / 396.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007459/0.4102, allocations: 4.32 MB / 400.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002815/0.4131, allocations: 1.226 MB / 401.7 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003261/0.4164, allocations: 1.947 MB / 403.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009819/0.4174, allocations: 140 kB / 403.8 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002426/0.4198, allocations: 0.7801 MB / 404.6 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002468/0.4223, allocations: 1.667 MB / 406.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001625/0.4239, allocations: 0.835 MB / 407.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006649/0.4306, allocations: 5.525 MB / 412.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.4306, allocations: 0 / 412.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4307, allocations: 0 / 412.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003094/0.431, allocations: 0 / 412.6 MB, free: 13.05 MB / 350.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.01562/0.4466, allocations: 4.417 MB / 417 MB, free: 8.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.4467, allocations: 12.03 kB / 417 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00684/0.4535, allocations: 1.928 MB / 419 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005187/0.4587, allocations: 2.307 MB / 421.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/0.459, allocations: 238 kB / 421.5 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001287/0.4603, allocations: 315.8 kB / 421.8 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02215/0.4825, allocations: 10.71 MB / 432.5 MB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002261/0.4827, allocations: 47.59 kB / 432.6 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001163/0.4839, allocations: 151.8 kB / 432.7 MB, free: 8.105 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003533/0.4875, allocations: 1.978 MB / 434.7 MB, free: 6.121 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02051/0.508, allocations: 9.559 MB / 444.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2585/0.7665, allocations: 39.88 MB / 484.1 MB, free: 86.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01165/0.7782, allocations: 3.836 MB / 488 MB, free: 84.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00234/0.7806, allocations: 1.849 MB / 489.8 MB, free: 83.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005802/0.7812, allocations: 358.3 kB / 490.2 MB, free: 83.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.7813, allocations: 51.78 kB / 490.2 MB, free: 83.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 5.601e-06/0.7813, allocations: 0 / 490.2 MB, free: 83.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.03986/0.8212, allocations: 13.75 MB / 0.4922 GB, free: 72.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.256e-05/0.8213, allocations: 149.5 kB / 0.4923 GB, free: 72.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006192/0.8275, allocations: 4.141 MB / 0.4964 GB, free: 68.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003696/0.8279, allocations: 49.7 kB / 0.4964 GB, free: 68.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002046/0.8299, allocations: 3.163 MB / 0.4995 GB, free: 65.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009451/0.8309, allocations: 0.611 MB / 0.5001 GB, free: 64.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006755/0.8316, allocations: 122.6 kB / 0.5002 GB, free: 64.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0006106/0.8322, allocations: 0.562 MB / 0.5008 GB, free: 63.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003728/0.8359, allocations: 2.112 MB / 0.5028 GB, free: 61.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004926/0.8409, allocations: 5.944 MB / 0.5086 GB, free: 53.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004764/0.8457, allocations: 3.469 MB / 0.512 GB, free: 50.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001497/0.8459, allocations: 40 kB / 0.512 GB, free: 50.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01462/0.8605, allocations: 8.528 MB / 0.5204 GB, free: 41.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001538/0.8607, allocations: 68.2 kB / 0.5204 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002938/0.861, allocations: 136 kB / 0.5206 GB, free: 41.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002551/0.8636, allocations: 0.9334 MB / 0.5215 GB, free: 40.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004945/0.8685, allocations: 1.403 MB / 0.5228 GB, free: 39.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005433/0.874, allocations: 4.862 MB / 0.5276 GB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004646/0.8787, allocations: 335.4 kB / 0.5279 GB, free: 33.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/0.8798, allocations: 390 kB / 0.5283 GB, free: 33.55 MB / 382.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 (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.004071/0.8839, allocations: 2.107 MB / 0.5303 GB, free: 31.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000809/0.8847, allocations: 347.4 kB / 0.5307 GB, free: 31.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00583/0.8905, allocations: 3.144 MB / 0.5337 GB, free: 27.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.185e-05/0.8906, allocations: 16 kB / 0.5338 GB, free: 27.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.8906, allocations: 4 kB / 0.5338 GB, free: 27.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-05/0.8906, allocations: 15.92 kB / 0.5338 GB, free: 27.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01717/0.9078, allocations: 7.845 MB / 0.5414 GB, free: 20 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-05/0.9079, allocations: 0 / 0.5414 GB, free: 20 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.9094, allocations: 259.6 kB / 0.5417 GB, free: 19.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001908/0.9113, allocations: 0.7148 MB / 0.5424 GB, free: 19.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001949/0.9115, allocations: 35.97 kB / 0.5424 GB, free: 18.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004906/0.9164, allocations: 4.402 MB / 0.5467 GB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.9165, allocations: 8.062 kB / 0.5467 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007458/0.9239, allocations: 5.68 MB / 0.5523 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/0.9255, allocations: 0.6369 MB / 0.5529 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008148/0.9263, allocations: 21.95 kB / 0.5529 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/0.9279, allocations: 95.89 kB / 0.553 GB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002728/0.9282, allocations: 104.7 kB / 0.5531 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.9283, allocations: 51.97 kB / 0.5532 GB, free: 7.809 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004208/0.9325, allocations: 2.583 MB / 0.5557 GB, free: 5.215 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9325, allocations: 0 / 0.5557 GB, free: 5.215 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005125/0.9377, allocations: 0.9615 MB / 0.5566 GB, free: 4.258 MB / 382.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 (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.0004786/0.9381, allocations: 163.8 kB / 0.5568 GB, free: 4.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007729/0.9459, allocations: 5.07 MB / 0.5617 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/0.9459, allocations: 0 / 0.5617 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002426/0.9484, allocations: 1.532 MB / 0.5632 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003671/0.9521, allocations: 414.7 kB / 0.5636 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02158/0.9737, allocations: 10.67 MB / 0.574 GB, free: 2.355 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006417/0.9801, allocations: 3.243 MB / 0.5772 GB, free: 15.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.006028/0.9862, allocations: 1.933 MB / 0.5791 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001143/0.9874, allocations: 267.3 kB / 0.5794 GB, free: 12.88 MB / 414.1 MB Notification: Performance of SimCode: time 1.313e-06/0.9874, allocations: 0 / 0.5794 GB, free: 12.88 MB / 414.1 MB Notification: Performance of Templates: time 0.2542/1.242, allocations: 34.55 MB / 0.6131 GB, free: 139 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1)