Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.007237/0.007236, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001364/0.001364, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.464/1.464, allocations: 205.1 MB / 222.5 MB, free: 4.461 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.00114/0.00114, allocations: 58.47 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1186, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01515/0.1338, allocations: 13.75 MB / 386.9 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01213/0.146, allocations: 4.369 MB / 391.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004033/0.1501, allocations: 83.81 kB / 391.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009206/0.1594, allocations: 3.742 MB / 395.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008454/0.1679, allocations: 2.108 MB / 397.2 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002647/0.1706, allocations: 0.6941 MB / 397.9 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008689/0.1793, allocations: 4.412 MB / 402.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008209/0.1875, allocations: 4.839 MB / 407.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004627/0.1922, allocations: 1.912 MB / 409.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004967/0.1972, allocations: 2.605 MB / 411.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002024/0.1993, allocations: 432 kB / 412.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003905/0.2032, allocations: 1.151 MB / 413.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004365/0.2076, allocations: 2.314 MB / 415.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008061/0.2157, allocations: 2.754 MB / 418.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01446/0.2302, allocations: 8.641 MB / 427 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.2302, allocations: 0 / 427 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2303, allocations: 0 / 427 MB, free: 11.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004344/0.2307, allocations: 0 / 427 MB, free: 11.25 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.02747/0.2582, allocations: 6.578 MB / 433.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.913e-05/0.2583, allocations: 11.89 kB / 433.6 MB, free: 4.582 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008483/0.2668, allocations: 2.021 MB / 435.6 MB, free: 2.555 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007358/0.2742, allocations: 2.82 MB / 438.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003795/0.2746, allocations: 311.8 kB / 438.7 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002169/0.2768, allocations: 407.7 kB / 439.1 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0329/0.3097, allocations: 12.87 MB / 452 MB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003458/0.3101, allocations: 47.62 kB / 452 MB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00192/0.312, allocations: 195.8 kB / 452.2 MB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2874/0.5995, allocations: 2.365 MB / 454.6 MB, free: 64.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02997/0.6295, allocations: 11.74 MB / 466.3 MB, free: 61.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07539/0.705, allocations: 48.51 MB / 0.5028 GB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01668/0.7217, allocations: 5.563 MB / 0.5082 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004408/0.7262, allocations: 3.482 MB / 0.5116 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007459/0.727, allocations: 375.1 kB / 0.512 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.296e-05/0.727, allocations: 59.81 kB / 0.512 GB, free: 7.504 MB / 382.1 MB Notification: Performance of pre-optimization done (n=221): time 7.313e-06/0.7271, allocations: 0 / 0.512 GB, free: 7.504 MB / 382.1 MB Notification: Performance of matching and sorting (n=252): time 0.08997/0.817, allocations: 28.22 MB / 0.5396 GB, free: 11.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001629/0.8173, allocations: 154.5 kB / 0.5397 GB, free: 11.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01077/0.828, allocations: 4.617 MB / 0.5442 GB, free: 6.719 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001259/0.8294, allocations: 61.7 kB / 0.5443 GB, free: 6.652 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004307/0.8337, allocations: 3.727 MB / 0.5479 GB, free: 3.016 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002323/0.8361, allocations: 0.9905 MB / 0.5489 GB, free: 2.039 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005467/0.8415, allocations: 1.518 MB / 0.5504 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.8417, allocations: 309.1 kB / 0.5507 GB, free: 212 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006446/0.8482, allocations: 3.457 MB / 0.554 GB, free: 12.75 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01027/0.8585, allocations: 7.524 MB / 0.5614 GB, free: 3.215 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01686/0.8754, allocations: 11.82 MB / 0.5729 GB, free: 5.395 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001911/0.8756, allocations: 40 kB / 0.573 GB, free: 5.355 MB / 446.1 MB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02852/0.9042, allocations: 11.91 MB / 0.5846 GB, free: 9.438 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000226/0.9044, allocations: 71.91 kB / 0.5847 GB, free: 9.367 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002981/0.9048, allocations: 144 kB / 0.5848 GB, free: 9.227 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003348/0.9081, allocations: 1.134 MB / 0.5859 GB, free: 8.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007738/0.9159, allocations: 1.801 MB / 0.5877 GB, free: 6.285 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009581/0.9255, allocations: 6.351 MB / 0.5939 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007844/0.9334, allocations: 423.3 kB / 0.5943 GB, free: 15.39 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002128/0.9356, allocations: 467.8 kB / 0.5947 GB, free: 14.93 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.00754/0.9431, allocations: 2.451 MB / 0.5971 GB, free: 12.46 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001901/0.945, allocations: 433.1 kB / 0.5975 GB, free: 12.04 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01443/0.9595, allocations: 6.478 MB / 0.6039 GB, free: 5.539 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.606e-05/0.9596, allocations: 28 kB / 0.6039 GB, free: 5.512 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.687e-05/0.9596, allocations: 8 kB / 0.6039 GB, free: 5.504 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.363e-05/0.9597, allocations: 12.05 kB / 0.6039 GB, free: 5.492 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03301/0.9927, allocations: 13.5 MB / 0.6171 GB, free: 7.902 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.991e-05/0.9928, allocations: 8 kB / 0.6171 GB, free: 7.895 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003796/0.9966, allocations: 0.5712 MB / 0.6177 GB, free: 7.324 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002994/0.9996, allocations: 0.9499 MB / 0.6186 GB, free: 6.371 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000823/1, allocations: 95.83 kB / 0.6187 GB, free: 6.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009291/1.01, allocations: 6.078 MB / 0.6246 GB, free: 68 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/1.01, allocations: 4 kB / 0.6246 GB, free: 64 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2755/1.285, allocations: 10.96 MB / 0.6353 GB, free: 156.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002538/1.288, allocations: 0.9568 MB / 0.6362 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008246/1.289, allocations: 44.08 kB / 0.6363 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002339/1.291, allocations: 170.9 kB / 0.6365 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005657/1.292, allocations: 194.8 kB / 0.6366 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002799/1.292, allocations: 112.1 kB / 0.6367 GB, free: 156.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004685/1.297, allocations: 2.892 MB / 0.6396 GB, free: 155.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.11e-07/1.297, allocations: 1.406 kB / 0.6396 GB, free: 155.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005934/1.303, allocations: 1.273 MB / 0.6408 GB, free: 155 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.0005019/1.303, allocations: 189 kB / 0.641 GB, free: 154.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01074/1.314, allocations: 8.148 MB / 0.649 GB, free: 152.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.314, allocations: 0 / 0.649 GB, free: 152.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003919/1.318, allocations: 3.175 MB / 0.6521 GB, free: 151.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003095/1.321, allocations: 0.5098 MB / 0.6526 GB, free: 150.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01874/1.34, allocations: 12.63 MB / 0.6649 GB, free: 141.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003558/1.343, allocations: 3.807 MB / 0.6686 GB, free: 138.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004998/1.348, allocations: 2.388 MB / 0.6709 GB, free: 136.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001375/1.35, allocations: 435.1 kB / 0.6714 GB, free: 136.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.553e-06/1.35, allocations: 0 / 0.6714 GB, free: 136.2 MB / 494.1 MB Notification: Performance of Templates: time 0.0863/1.436, allocations: 54.53 MB / 0.7246 GB, free: 81.68 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1)