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.0009489/0.0009489, allocations: 87.81 kB / 16.31 MB, free: 5.684 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.001163/0.001163, allocations: 176.8 kB / 17.21 MB, free: 5.602 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.61/1.61, allocations: 205.4 MB / 223.4 MB, free: 13.16 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.0004579/0.0004579, allocations: 12 kB / 280.1 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1153, allocations: 47.58 MB / 327.7 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.04544/0.1608, allocations: 45.51 MB / 373.2 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2537/0.4145, allocations: 9.799 MB / 383 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01102/0.4256, allocations: 209.1 kB / 383.2 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008878/0.4345, allocations: 2.33 MB / 385.6 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02336/0.4579, allocations: 6.986 MB / 392.6 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004206/0.4621, allocations: 0.5 MB / 393.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008301/0.4705, allocations: 4.369 MB / 397.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00777/0.4783, allocations: 4.327 MB / 401.8 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003029/0.4813, allocations: 1.221 MB / 403 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003416/0.4848, allocations: 1.944 MB / 404.9 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001211/0.486, allocations: 142.8 kB / 405.1 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002964/0.489, allocations: 0.7785 MB / 405.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003178/0.4922, allocations: 1.674 MB / 407.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002137/0.4944, allocations: 0.8357 MB / 408.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006094/0.5005, allocations: 5.515 MB / 413.9 MB, free: 460 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.5005, allocations: 0 / 413.9 MB, free: 460 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.5005, allocations: 0 / 413.9 MB, free: 460 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003321/0.5008, allocations: 2.156 kB / 413.9 MB, free: 460 kB / 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.01712/0.518, allocations: 4.426 MB / 418.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.518, allocations: 8.031 kB / 418.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007731/0.5258, allocations: 1.931 MB / 420.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005456/0.5313, allocations: 2.312 MB / 422.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.5315, allocations: 234.8 kB / 422.8 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001099/0.5326, allocations: 313.2 kB / 423.1 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01918/0.5518, allocations: 10.71 MB / 433.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001148/0.5519, allocations: 43.59 kB / 433.8 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004228/0.5524, allocations: 150.7 kB / 434 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003207/0.5556, allocations: 1.991 MB / 436 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.019/0.5746, allocations: 9.547 MB / 445.5 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05412/0.6288, allocations: 39.88 MB / 485.4 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01292/0.6417, allocations: 3.846 MB / 489.2 MB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003028/0.6448, allocations: 1.85 MB / 491.1 MB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007278/0.6456, allocations: 358.6 kB / 491.4 MB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.987e-05/0.6457, allocations: 47.5 kB / 491.5 MB, free: 10.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=148): time 4.539e-06/0.6457, allocations: 0 / 491.5 MB, free: 10.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=154): time 0.04368/0.6894, allocations: 13.75 MB / 0.4934 GB, free: 12.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.6895, allocations: 153.4 kB / 0.4935 GB, free: 12.64 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006417/0.6959, allocations: 4.143 MB / 0.4976 GB, free: 8.473 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004059/0.6964, allocations: 55.22 kB / 0.4976 GB, free: 8.418 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002454/0.6988, allocations: 3.157 MB / 0.5007 GB, free: 5.273 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000897/0.6997, allocations: 0.6122 MB / 0.5013 GB, free: 4.664 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002594/0.7, allocations: 120 kB / 0.5014 GB, free: 4.547 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003739/0.7004, allocations: 0.5581 MB / 0.502 GB, free: 3.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003364/0.7038, allocations: 2.112 MB / 0.504 GB, free: 1.863 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005991/0.7098, allocations: 5.944 MB / 0.5098 GB, free: 9.996 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00523/0.715, allocations: 3.472 MB / 0.5132 GB, free: 6.527 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.368e-05/0.7151, allocations: 40 kB / 0.5133 GB, free: 6.488 MB / 430.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01624/0.7313, allocations: 8.539 MB / 0.5216 GB, free: 13.94 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.7315, allocations: 68.25 kB / 0.5217 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001591/0.7317, allocations: 136 kB / 0.5218 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002404/0.7341, allocations: 0.9295 MB / 0.5227 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004345/0.7384, allocations: 1.404 MB / 0.5241 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006464/0.7449, allocations: 4.859 MB / 0.5288 GB, free: 6.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004622/0.7496, allocations: 331.6 kB / 0.5291 GB, free: 6.086 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007601/0.7503, allocations: 384 kB / 0.5295 GB, free: 5.711 MB / 446.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.003706/0.754, allocations: 2.111 MB / 0.5316 GB, free: 3.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000613/0.7547, allocations: 347.5 kB / 0.5319 GB, free: 3.246 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005756/0.7604, allocations: 3.156 MB / 0.535 GB, free: 72 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/0.7605, allocations: 16 kB / 0.535 GB, free: 56 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.7605, allocations: 4 kB / 0.535 GB, free: 52 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.7605, allocations: 3.984 kB / 0.535 GB, free: 48 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2432/1.004, allocations: 7.829 MB / 0.5427 GB, free: 157.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-05/1.004, allocations: 2.156 kB / 0.5427 GB, free: 157.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/1.005, allocations: 263.5 kB / 0.5429 GB, free: 157.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002081/1.007, allocations: 0.7171 MB / 0.5436 GB, free: 157.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001411/1.007, allocations: 37.22 kB / 0.5436 GB, free: 157.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005896/1.013, allocations: 4.42 MB / 0.548 GB, free: 154.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/1.013, allocations: 2.75 kB / 0.548 GB, free: 154.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008599/1.022, allocations: 5.678 MB / 0.5535 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/1.024, allocations: 0.633 MB / 0.5541 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004561/1.024, allocations: 28.05 kB / 0.5542 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/1.026, allocations: 86.48 kB / 0.5542 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000279/1.026, allocations: 104.1 kB / 0.5543 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/1.026, allocations: 57.14 kB / 0.5544 GB, free: 152.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004583/1.031, allocations: 2.587 MB / 0.5569 GB, free: 151.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.41e-07/1.031, allocations: 0 / 0.5569 GB, free: 151.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005791/1.036, allocations: 0.958 MB / 0.5579 GB, free: 151.5 MB / 446.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.0004859/1.037, allocations: 157.3 kB / 0.558 GB, free: 151.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008229/1.045, allocations: 5.062 MB / 0.5629 GB, free: 149.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/1.045, allocations: 0 / 0.5629 GB, free: 149.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002185/1.047, allocations: 1.541 MB / 0.5645 GB, free: 149.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002966/1.05, allocations: 430.9 kB / 0.5649 GB, free: 148.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0168/1.067, allocations: 10.66 MB / 0.5753 GB, free: 140.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003619/1.071, allocations: 3.235 MB / 0.5784 GB, free: 137.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00479/1.076, allocations: 1.937 MB / 0.5803 GB, free: 135.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008454/1.077, allocations: 271.3 kB / 0.5806 GB, free: 135 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/1.077, allocations: 0 / 0.5806 GB, free: 135 MB / 446.1 MB Notification: Performance of Templates: time 0.0675/1.144, allocations: 34.55 MB / 0.6143 GB, free: 100.4 MB / 446.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)