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.008822/0.008822, allocations: 100.3 kB / 15.73 MB, free: 6.004 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.001681/0.001681, allocations: 194.5 kB / 16.67 MB, free: 5.926 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.422/1.422, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001235/0.001235, allocations: 54.38 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09114/0.09239, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01176/0.1042, allocations: 11.74 MB / 384.9 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007911/0.1122, allocations: 3.918 MB / 388.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001866/0.1141, allocations: 67.81 kB / 388.9 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005226/0.1194, allocations: 2.714 MB / 391.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005556/0.125, allocations: 1.934 MB / 393.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002263/0.1273, allocations: 0.5732 MB / 394.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006783/0.1341, allocations: 3.75 MB / 397.9 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00539/0.1395, allocations: 3.686 MB / 401.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003022/0.1426, allocations: 1.526 MB / 403.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003318/0.1459, allocations: 2.134 MB / 405.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001106/0.1471, allocations: 340 kB / 405.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002559/0.1496, allocations: 1.061 MB / 406.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002356/0.152, allocations: 1.94 MB / 408.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003591/0.1556, allocations: 2.241 MB / 410.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008218/0.1639, allocations: 7.186 MB / 418 MB, free: 4.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.1639, allocations: 0 / 418 MB, free: 4.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1639, allocations: 3.938 kB / 418 MB, free: 4.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002436/0.1642, allocations: 0 / 418 MB, free: 4.293 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.0187/0.1829, allocations: 5.31 MB / 423.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.183, allocations: 16.02 kB / 423.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00764/0.1906, allocations: 1.878 MB / 425.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005909/0.1966, allocations: 2.385 MB / 427.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/0.1969, allocations: 234 kB / 427.8 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0015/0.1984, allocations: 315.8 kB / 428.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02429/0.2227, allocations: 10.72 MB / 438.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001873/0.2229, allocations: 43.59 kB / 438.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001333/0.2243, allocations: 147.9 kB / 439 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0041/0.2284, allocations: 1.982 MB / 441 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02114/0.2496, allocations: 9.567 MB / 450.6 MB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2721/0.5217, allocations: 39.77 MB / 490.3 MB, free: 37.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0133/0.535, allocations: 3.831 MB / 494.2 MB, free: 35.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002542/0.5376, allocations: 1.849 MB / 496 MB, free: 34.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005677/0.5382, allocations: 354.6 kB / 496.3 MB, free: 34.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.5383, allocations: 58.22 kB / 496.4 MB, free: 34.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.637e-06/0.5383, allocations: 0 / 496.4 MB, free: 34.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.04186/0.5801, allocations: 13.77 MB / 0.4982 GB, free: 22.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.5802, allocations: 151.1 kB / 0.4984 GB, free: 22.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004669/0.5849, allocations: 4.167 MB / 0.5024 GB, free: 18.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002301/0.5852, allocations: 45.7 kB / 0.5025 GB, free: 18.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001325/0.5865, allocations: 3.161 MB / 0.5056 GB, free: 15.13 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00047/0.587, allocations: 0.6153 MB / 0.5062 GB, free: 14.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/0.5882, allocations: 1.225 MB / 0.5074 GB, free: 13.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.391e-05/0.5882, allocations: 305.1 kB / 0.5076 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002459/0.5907, allocations: 2.139 MB / 0.5097 GB, free: 10.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003752/0.5945, allocations: 5.956 MB / 0.5156 GB, free: 2.965 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009869/0.6044, allocations: 8.765 MB / 0.5241 GB, free: 8.285 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000127/0.6045, allocations: 47.94 kB / 0.5242 GB, free: 8.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01646/0.621, allocations: 8.58 MB / 0.5325 GB, free: 15.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.293e-05/0.6211, allocations: 64 kB / 0.5326 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000122/0.6213, allocations: 136 kB / 0.5327 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002416/0.6237, allocations: 0.9111 MB / 0.5336 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004211/0.6279, allocations: 1.396 MB / 0.535 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00647/0.6344, allocations: 5.203 MB / 0.5401 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004324/0.6387, allocations: 339.5 kB / 0.5404 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007203/0.6395, allocations: 385.9 kB / 0.5408 GB, free: 7.094 MB / 414.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.003229/0.6427, allocations: 2.107 MB / 0.5428 GB, free: 4.973 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006057/0.6433, allocations: 347.5 kB / 0.5431 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005857/0.6492, allocations: 3.14 MB / 0.5462 GB, free: 1.473 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.797e-05/0.6492, allocations: 20 kB / 0.5462 GB, free: 1.453 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.6493, allocations: 4 kB / 0.5462 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/0.6493, allocations: 3.984 kB / 0.5462 GB, free: 1.445 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/0.662, allocations: 7.8 MB / 0.5539 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/0.6621, allocations: 4.406 kB / 0.5539 GB, free: 9.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.6634, allocations: 259.6 kB / 0.5541 GB, free: 9.336 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00222/0.6656, allocations: 0.7173 MB / 0.5548 GB, free: 8.617 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001908/0.6658, allocations: 38 kB / 0.5548 GB, free: 8.582 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005987/0.6718, allocations: 4.764 MB / 0.5595 GB, free: 3.691 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.6718, allocations: 0 / 0.5595 GB, free: 3.691 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008624/0.6805, allocations: 5.683 MB / 0.565 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001737/0.6823, allocations: 0.6253 MB / 0.5657 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006081/0.6829, allocations: 24 kB / 0.5657 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/0.6844, allocations: 87.89 kB / 0.5658 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004239/0.6848, allocations: 104.8 kB / 0.5659 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001441/0.685, allocations: 53.92 kB / 0.5659 GB, free: 13.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004557/0.6895, allocations: 2.603 MB / 0.5685 GB, free: 10.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6895, allocations: 0 / 0.5685 GB, free: 10.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004728/0.6943, allocations: 0.9675 MB / 0.5694 GB, free: 9.48 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 (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.0004006/0.6947, allocations: 155.7 kB / 0.5695 GB, free: 9.324 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007716/0.7024, allocations: 5.113 MB / 0.5745 GB, free: 4.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.7024, allocations: 0 / 0.5745 GB, free: 4.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002173/0.7046, allocations: 1.535 MB / 0.576 GB, free: 2.684 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00257/0.7072, allocations: 442.5 kB / 0.5765 GB, free: 2.258 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/0.7217, allocations: 8.97 MB / 0.5852 GB, free: 9.246 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003286/0.725, allocations: 3.243 MB / 0.5884 GB, free: 5.973 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004184/0.7292, allocations: 1.933 MB / 0.5903 GB, free: 4.031 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000667/0.7299, allocations: 271.3 kB / 0.5905 GB, free: 3.766 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.7299, allocations: 4 kB / 0.5905 GB, free: 3.762 MB / 462.1 MB Notification: Performance of Templates: time 0.06928/0.7992, allocations: 33.82 MB / 0.6236 GB, free: 1.887 MB / 494.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)