Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.MovingActuatedDrive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007308/0.007308, allocations: 101.6 kB / 15.73 MB, free: 5.555 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.001308/0.001308, allocations: 194.5 kB / 16.67 MB, free: 5.484 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.586/1.586, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001311/0.001311, allocations: 53.44 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1069, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01548/0.1225, allocations: 13.76 MB / 386.9 MB, free: 3.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.1361, allocations: 4.373 MB / 391.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003303/0.1395, allocations: 79.81 kB / 391.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007337/0.1469, allocations: 3.742 MB / 395.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007298/0.1542, allocations: 2.171 MB / 397.3 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002412/0.1566, allocations: 0.6863 MB / 398 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007076/0.1637, allocations: 4.412 MB / 402.4 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007351/0.1711, allocations: 4.832 MB / 407.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004099/0.1753, allocations: 1.912 MB / 409.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004669/0.18, allocations: 2.605 MB / 411.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001165/0.1812, allocations: 436 kB / 412.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002567/0.1837, allocations: 1.155 MB / 413.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002278/0.186, allocations: 2.334 MB / 415.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003419/0.1895, allocations: 2.754 MB / 418.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01134/0.2008, allocations: 8.634 MB / 427 MB, free: 11.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.2009, allocations: 0 / 427 MB, free: 11.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.2009, allocations: 0 / 427 MB, free: 11.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003277/0.2012, allocations: 0 / 427 MB, free: 11.17 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.02485/0.2261, allocations: 6.582 MB / 433.6 MB, free: 4.504 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.261e-05/0.2262, allocations: 15.89 kB / 433.6 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008009/0.2342, allocations: 2.017 MB / 435.7 MB, free: 2.465 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008223/0.2425, allocations: 2.824 MB / 438.5 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003124/0.2428, allocations: 307.7 kB / 438.8 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001728/0.2446, allocations: 415.7 kB / 439.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02345/0.268, allocations: 12.87 MB / 452.1 MB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/0.2682, allocations: 47.58 kB / 452.1 MB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005529/0.2688, allocations: 187.8 kB / 452.3 MB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2297/0.4985, allocations: 2.363 MB / 454.7 MB, free: 64.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02936/0.5279, allocations: 11.74 MB / 466.4 MB, free: 61.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06201/0.59, allocations: 48.51 MB / 0.5028 GB, free: 17.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01651/0.6065, allocations: 5.568 MB / 0.5083 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004255/0.6108, allocations: 3.482 MB / 0.5117 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007522/0.6116, allocations: 378.5 kB / 0.512 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.616e-05/0.6117, allocations: 55.81 kB / 0.5121 GB, free: 7.406 MB / 382.1 MB Notification: Performance of pre-optimization done (n=221): time 7.735e-06/0.6117, allocations: 0 / 0.5121 GB, free: 7.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=252): time 0.07662/0.6883, allocations: 28.22 MB / 0.5396 GB, free: 11.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.6885, allocations: 160.5 kB / 0.5398 GB, free: 11.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008068/0.6966, allocations: 4.618 MB / 0.5443 GB, free: 6.613 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001123/0.6978, allocations: 61.7 kB / 0.5444 GB, free: 6.547 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003402/0.7012, allocations: 3.727 MB / 0.548 GB, free: 2.906 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002065/0.7032, allocations: 0.9827 MB / 0.549 GB, free: 1.934 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0027/0.706, allocations: 1.522 MB / 0.5505 GB, free: 416 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.7061, allocations: 309.1 kB / 0.5507 GB, free: 104 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005102/0.7112, allocations: 3.449 MB / 0.5541 GB, free: 12.65 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009302/0.7205, allocations: 7.526 MB / 0.5615 GB, free: 3.117 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01726/0.7378, allocations: 11.82 MB / 0.573 GB, free: 5.289 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001159/0.738, allocations: 40 kB / 0.5731 GB, free: 5.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02379/0.7618, allocations: 11.9 MB / 0.5847 GB, free: 9.336 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001147/0.762, allocations: 75.89 kB / 0.5847 GB, free: 9.262 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001941/0.7622, allocations: 143.9 kB / 0.5849 GB, free: 9.121 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002961/0.7651, allocations: 1.13 MB / 0.586 GB, free: 7.988 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007282/0.7724, allocations: 1.801 MB / 0.5877 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009148/0.7816, allocations: 6.355 MB / 0.594 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007835/0.7895, allocations: 423.6 kB / 0.5944 GB, free: 15.28 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002071/0.7916, allocations: 470.5 kB / 0.5948 GB, free: 14.82 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (875): * Single equations (assignments): 871 * 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.007386/0.799, allocations: 2.444 MB / 0.5972 GB, free: 12.37 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001736/0.8008, allocations: 441 kB / 0.5976 GB, free: 11.93 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01264/0.8134, allocations: 6.478 MB / 0.6039 GB, free: 5.434 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.522e-05/0.8135, allocations: 35.98 kB / 0.604 GB, free: 5.398 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.8135, allocations: 0 / 0.604 GB, free: 5.398 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-05/0.8136, allocations: 15.95 kB / 0.604 GB, free: 5.383 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0299/0.8435, allocations: 13.49 MB / 0.6172 GB, free: 7.805 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.227e-05/0.8436, allocations: 7.938 kB / 0.6172 GB, free: 7.797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003332/0.8469, allocations: 0.5733 MB / 0.6177 GB, free: 7.223 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002794/0.8497, allocations: 0.9533 MB / 0.6187 GB, free: 6.266 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006859/0.8504, allocations: 87.89 kB / 0.6187 GB, free: 6.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2968/1.147, allocations: 6.083 MB / 0.6247 GB, free: 158.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/1.147, allocations: 3.344 kB / 0.6247 GB, free: 158.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02115/1.168, allocations: 10.95 MB / 0.6354 GB, free: 156 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003399/1.172, allocations: 0.9579 MB / 0.6363 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001076/1.173, allocations: 46.92 kB / 0.6364 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002748/1.176, allocations: 171.7 kB / 0.6365 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005395/1.176, allocations: 194.2 kB / 0.6367 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002723/1.177, allocations: 105.7 kB / 0.6368 GB, free: 155.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004693/1.181, allocations: 2.901 MB / 0.6397 GB, free: 154.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.181, allocations: 0 / 0.6397 GB, free: 154.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006705/1.188, allocations: 1.272 MB / 0.6409 GB, free: 154.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (225): * Single equations (assignments): 221 * 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 Backend phase and start with SimCode phase: time 0.000787/1.189, allocations: 188.1 kB / 0.6411 GB, free: 154.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01183/1.201, allocations: 8.147 MB / 0.649 GB, free: 151.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/1.201, allocations: 3.969 kB / 0.649 GB, free: 151.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004517/1.205, allocations: 3.169 MB / 0.6521 GB, free: 150.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003663/1.209, allocations: 0.5196 MB / 0.6526 GB, free: 150.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01949/1.229, allocations: 12.63 MB / 0.665 GB, free: 141 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004054/1.233, allocations: 3.798 MB / 0.6687 GB, free: 138 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00539/1.238, allocations: 2.389 MB / 0.671 GB, free: 136.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001364/1.239, allocations: 439.1 kB / 0.6714 GB, free: 135.7 MB / 494.1 MB Notification: Performance of SimCode: time 2.244e-06/1.239, allocations: 0 / 0.6714 GB, free: 135.7 MB / 494.1 MB Notification: Performance of Templates: time 0.09432/1.334, allocations: 54.53 MB / 0.7247 GB, free: 81.18 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1)