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.005178/0.005177, allocations: 105.4 kB / 15.74 MB, free: 6.488 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.001094/0.001094, allocations: 196 kB / 16.68 MB, free: 6.375 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.452/1.452, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001151/0.001151, allocations: 46.22 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1027, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01319/0.1159, allocations: 11.75 MB / 384.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.1261, allocations: 3.91 MB / 388.8 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002223/0.1284, allocations: 67.81 kB / 388.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005017/0.1335, allocations: 2.71 MB / 391.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005177/0.1387, allocations: 1.93 MB / 393.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001491/0.1402, allocations: 0.5732 MB / 394.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005223/0.1454, allocations: 3.758 MB / 397.9 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00398/0.1494, allocations: 3.686 MB / 401.5 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002504/0.1519, allocations: 1.526 MB / 403.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002828/0.1548, allocations: 2.13 MB / 405.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007001/0.1555, allocations: 340 kB / 405.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002026/0.1575, allocations: 1.069 MB / 406.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00169/0.1593, allocations: 1.929 MB / 408.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00257/0.1618, allocations: 2.249 MB / 410.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008087/0.1699, allocations: 7.182 MB / 418 MB, free: 4.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.17, allocations: 4 kB / 418 MB, free: 4.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.17, allocations: 0 / 418 MB, free: 4.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002038/0.1702, 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.01814/0.1884, allocations: 5.314 MB / 423.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.1884, allocations: 8.031 kB / 423.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006758/0.1952, allocations: 1.878 MB / 425.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005238/0.2005, allocations: 2.396 MB / 427.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/0.2008, allocations: 238 kB / 427.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001435/0.2022, allocations: 311.8 kB / 428.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02492/0.2272, allocations: 10.72 MB / 438.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000202/0.2274, allocations: 39.59 kB / 438.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001254/0.2287, allocations: 151.9 kB / 439 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003395/0.2321, allocations: 1.986 MB / 441 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02103/0.2531, allocations: 9.563 MB / 450.6 MB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2772/0.5304, allocations: 39.77 MB / 490.3 MB, free: 37.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01214/0.5426, allocations: 3.836 MB / 494.2 MB, free: 35.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001987/0.5446, allocations: 1.849 MB / 496 MB, free: 34.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004743/0.5451, allocations: 356.2 kB / 496.4 MB, free: 34.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.5452, allocations: 54.05 kB / 496.4 MB, free: 34.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.947e-06/0.5452, allocations: 4 kB / 496.4 MB, free: 34.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.03657/0.5818, allocations: 13.76 MB / 0.4982 GB, free: 22.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.5818, allocations: 141.5 kB / 0.4984 GB, free: 22.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004917/0.5868, allocations: 4.171 MB / 0.5024 GB, free: 18.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002927/0.5871, allocations: 45.7 kB / 0.5025 GB, free: 18.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001792/0.5889, allocations: 3.168 MB / 0.5056 GB, free: 15.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006634/0.5895, allocations: 0.6152 MB / 0.5062 GB, free: 14.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001333/0.5909, allocations: 1.221 MB / 0.5074 GB, free: 13.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.686e-05/0.591, allocations: 305.1 kB / 0.5076 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00243/0.5934, allocations: 2.135 MB / 0.5097 GB, free: 10.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003695/0.5971, allocations: 5.956 MB / 0.5156 GB, free: 2.938 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009844/0.607, allocations: 8.773 MB / 0.5241 GB, free: 8.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.6e-05/0.6071, allocations: 43.94 kB / 0.5242 GB, free: 8.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01581/0.6229, allocations: 8.582 MB / 0.5325 GB, free: 15.62 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.807e-05/0.623, allocations: 64 kB / 0.5326 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/0.6232, allocations: 140 kB / 0.5327 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002364/0.6256, allocations: 0.914 MB / 0.5336 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004403/0.63, allocations: 1.396 MB / 0.535 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006477/0.6365, allocations: 5.2 MB / 0.5401 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005491/0.642, allocations: 331.5 kB / 0.5404 GB, free: 7.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001103/0.6431, allocations: 388 kB / 0.5408 GB, free: 7.059 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.004973/0.6481, allocations: 2.104 MB / 0.5428 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001305/0.6494, allocations: 344 kB / 0.5431 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005823/0.6553, allocations: 3.144 MB / 0.5462 GB, free: 1.441 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-05/0.6553, allocations: 16 kB / 0.5462 GB, free: 1.426 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.6553, allocations: 4 kB / 0.5462 GB, free: 1.422 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/0.6554, allocations: 11.97 kB / 0.5462 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01509/0.6705, allocations: 7.807 MB / 0.5539 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/0.6705, allocations: 3.938 kB / 0.5539 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.6718, allocations: 259.6 kB / 0.5541 GB, free: 9.297 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/0.674, allocations: 0.7109 MB / 0.5548 GB, free: 8.582 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000217/0.6742, allocations: 35.97 kB / 0.5548 GB, free: 8.547 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00652/0.6807, allocations: 4.759 MB / 0.5595 GB, free: 3.664 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.6808, allocations: 4.031 kB / 0.5595 GB, free: 3.66 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009486/0.6903, allocations: 5.687 MB / 0.565 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/0.6924, allocations: 0.6213 MB / 0.5657 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001058/0.6935, allocations: 24 kB / 0.5657 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00197/0.6955, allocations: 91.89 kB / 0.5658 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/0.6958, allocations: 96.86 kB / 0.5659 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/0.696, allocations: 53.92 kB / 0.5659 GB, free: 13.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004551/0.7005, allocations: 2.61 MB / 0.5685 GB, free: 10.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7005, allocations: 0 / 0.5685 GB, free: 10.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006377/0.7069, allocations: 0.9634 MB / 0.5694 GB, free: 9.449 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.000483/0.7074, allocations: 159.7 kB / 0.5696 GB, free: 9.289 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008887/0.7163, allocations: 5.106 MB / 0.5745 GB, free: 4.203 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/0.7164, allocations: 256 / 0.5745 GB, free: 4.203 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002494/0.7189, allocations: 1.535 MB / 0.576 GB, free: 2.656 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005517/0.7244, allocations: 440 kB / 0.5765 GB, free: 2.234 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/0.7435, allocations: 8.972 MB / 0.5852 GB, free: 9.219 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003822/0.7474, allocations: 3.245 MB / 0.5884 GB, free: 5.945 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004756/0.7522, allocations: 1.931 MB / 0.5903 GB, free: 4.008 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009175/0.7531, allocations: 267.3 kB / 0.5905 GB, free: 3.746 MB / 462.1 MB Notification: Performance of SimCode: time 2.755e-06/0.7531, allocations: 0 / 0.5905 GB, free: 3.746 MB / 462.1 MB Notification: Performance of Templates: time 0.07356/0.8267, allocations: 33.82 MB / 0.6236 GB, free: 1.871 MB / 494.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)