Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0008548/0.0008548, allocations: 90.53 kB / 15.35 MB, free: 0.7422 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.005919/0.005919, allocations: 180.8 kB / 16.26 MB, free: 6.605 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.696/1.696, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0006545/0.0006544, allocations: 16 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2978, allocations: 47.59 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.04575/0.3435, allocations: 48.9 MB / 375.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02661/0.3702, allocations: 10.27 MB / 386.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01323/0.3835, allocations: 207.5 kB / 386.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001929/0.3855, allocations: 429.8 kB / 386.8 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006026/0.3915, allocations: 1.771 MB / 388.6 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001766/0.3933, allocations: 0.5266 MB / 389.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007935/0.4013, allocations: 5.497 MB / 394.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008955/0.4103, allocations: 5.013 MB / 399.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002958/0.4133, allocations: 1.112 MB / 400.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003811/0.4171, allocations: 1.977 MB / 402.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001147/0.4183, allocations: 140 kB / 402.9 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00283/0.4212, allocations: 0.9281 MB / 403.8 MB, free: 6.281 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002522/0.4237, allocations: 1.71 MB / 405.5 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003581/0.4273, allocations: 2.012 MB / 407.5 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007948/0.4353, allocations: 6.66 MB / 414.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4353, allocations: 0 / 414.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4353, allocations: 4 kB / 414.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002375/0.4356, allocations: 0 / 414.2 MB, free: 11.85 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.0164/0.452, allocations: 4.378 MB / 418.6 MB, free: 7.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.4521, allocations: 8.031 kB / 418.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007547/0.4596, allocations: 1.937 MB / 420.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004929/0.4646, allocations: 2.346 MB / 422.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001826/0.4648, allocations: 238 kB / 423.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000811/0.4656, allocations: 315.8 kB / 423.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02169/0.4873, allocations: 10.73 MB / 434.1 MB, free: 7.078 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001852/0.4875, allocations: 51.58 kB / 434.2 MB, free: 7.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006256/0.4882, allocations: 147.9 kB / 434.3 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003638/0.4918, allocations: 1.982 MB / 436.3 MB, free: 4.895 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01971/0.5116, allocations: 9.586 MB / 445.9 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2742/0.7858, allocations: 39.9 MB / 485.8 MB, free: 84.81 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0127/0.7986, allocations: 3.849 MB / 489.6 MB, free: 83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00228/0.8009, allocations: 1.854 MB / 491.5 MB, free: 82.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006069/0.8015, allocations: 361.2 kB / 491.8 MB, free: 81.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.8016, allocations: 53.53 kB / 491.9 MB, free: 81.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 4.538e-06/0.8016, allocations: 0 / 491.9 MB, free: 81.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.04251/0.8441, allocations: 13.78 MB / 0.4938 GB, free: 71.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.833e-05/0.8442, allocations: 149.5 kB / 0.494 GB, free: 71.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005511/0.8497, allocations: 4.165 MB / 0.498 GB, free: 66.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004554/0.8502, allocations: 45.7 kB / 0.4981 GB, free: 66.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001822/0.8521, allocations: 3.161 MB / 0.5012 GB, free: 63.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009115/0.853, allocations: 0.6218 MB / 0.5018 GB, free: 63 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005599/0.8536, allocations: 0.5007 MB / 0.5023 GB, free: 62.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.014e-05/0.8536, allocations: 309 kB / 0.5025 GB, free: 62.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002708/0.8563, allocations: 2.147 MB / 0.5046 GB, free: 60.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0041/0.8604, allocations: 5.964 MB / 0.5105 GB, free: 52.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008036/0.8685, allocations: 8.785 MB / 0.519 GB, free: 41.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001135/0.8687, allocations: 40 kB / 0.5191 GB, free: 41.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01563/0.8843, allocations: 8.581 MB / 0.5275 GB, free: 32.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.18e-05/0.8844, allocations: 64.62 kB / 0.5275 GB, free: 32.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/0.8846, allocations: 136 kB / 0.5277 GB, free: 32.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002221/0.8868, allocations: 0.9182 MB / 0.5286 GB, free: 31.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004298/0.8911, allocations: 1.396 MB / 0.5299 GB, free: 30.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005381/0.8965, allocations: 4.875 MB / 0.5347 GB, free: 25.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005075/0.9016, allocations: 328.5 kB / 0.535 GB, free: 24.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/0.9027, allocations: 384.1 kB / 0.5354 GB, free: 24.61 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 (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.004141/0.9069, allocations: 2.112 MB / 0.5374 GB, free: 22.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007776/0.9076, allocations: 355.4 kB / 0.5378 GB, free: 22.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005658/0.9133, allocations: 3.144 MB / 0.5408 GB, free: 18.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.012e-05/0.9134, allocations: 25.02 kB / 0.5409 GB, free: 18.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.9134, allocations: 4 kB / 0.5409 GB, free: 18.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/0.9134, allocations: 7.984 kB / 0.5409 GB, free: 18.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01277/0.9262, allocations: 7.848 MB / 0.5485 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/0.9263, allocations: 0 / 0.5485 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/0.9275, allocations: 259.6 kB / 0.5488 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/0.9295, allocations: 0.7262 MB / 0.5495 GB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001728/0.9297, allocations: 39.97 kB / 0.5495 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004772/0.9344, allocations: 4.409 MB / 0.5538 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.9345, allocations: 3.938 kB / 0.5538 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00756/0.942, allocations: 5.695 MB / 0.5594 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001699/0.9438, allocations: 0.6369 MB / 0.56 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003986/0.9442, allocations: 25.48 kB / 0.56 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.9455, allocations: 87.89 kB / 0.5601 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003157/0.9458, allocations: 104.9 kB / 0.5602 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/0.9459, allocations: 51.97 kB / 0.5603 GB, free: 14.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004276/0.9502, allocations: 2.607 MB / 0.5628 GB, free: 12.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.9502, allocations: 0 / 0.5628 GB, free: 12.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005249/0.9555, allocations: 0.9648 MB / 0.5638 GB, free: 11.25 MB / 398.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.0004854/0.956, allocations: 163.7 kB / 0.5639 GB, free: 11.08 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008695/0.9647, allocations: 5.091 MB / 0.5689 GB, free: 6.008 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.9647, allocations: 0 / 0.5689 GB, free: 6.008 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002384/0.9671, allocations: 1.543 MB / 0.5704 GB, free: 4.453 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003648/0.9708, allocations: 421.3 kB / 0.5708 GB, free: 4.039 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0204/0.9912, allocations: 11.13 MB / 0.5817 GB, free: 8.863 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004238/0.9955, allocations: 3.243 MB / 0.5848 GB, free: 5.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.005044/1.001, allocations: 1.929 MB / 0.5867 GB, free: 3.652 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008117/1.001, allocations: 267.3 kB / 0.587 GB, free: 3.391 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/1.001, allocations: 4 kB / 0.587 GB, free: 3.387 MB / 414.1 MB Notification: Performance of Templates: time 0.2888/1.29, allocations: 35.23 MB / 0.6214 GB, free: 135.9 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1)