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.001491/0.001491, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.435/1.435, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001318/0.001318, allocations: 56.36 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2285, allocations: 46.63 MB / 325.3 MB, free: 1.82 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01425/0.2428, allocations: 13.76 MB / 339.1 MB, free: 6.109 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009695/0.2525, allocations: 4.367 MB / 343.4 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002039/0.2546, allocations: 83.81 kB / 343.5 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00613/0.2608, allocations: 3.75 MB / 347.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005098/0.2659, allocations: 2.104 MB / 349.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002202/0.2681, allocations: 0.6902 MB / 350.1 MB, free: 11.08 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006732/0.2749, allocations: 4.408 MB / 354.5 MB, free: 6.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005184/0.2801, allocations: 4.836 MB / 359.3 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003279/0.2834, allocations: 1.908 MB / 361.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003861/0.2872, allocations: 2.593 MB / 363.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009766/0.2882, allocations: 432 kB / 364.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002408/0.2907, allocations: 1.159 MB / 365.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002158/0.2928, allocations: 2.314 MB / 367.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002857/0.2957, allocations: 2.758 MB / 370.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008592/0.3043, allocations: 8.325 MB / 378.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.3043, allocations: 4 kB / 378.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3044, allocations: 0 / 378.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002374/0.3046, allocations: 0 / 378.8 MB, free: 14.21 MB / 318.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.0204/0.325, allocations: 6.431 MB / 385.2 MB, free: 7.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.3251, allocations: 11.89 kB / 385.2 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006844/0.3319, allocations: 1.983 MB / 387.2 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005049/0.337, allocations: 2.761 MB / 390 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002047/0.3372, allocations: 303.8 kB / 390.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008251/0.3381, allocations: 411.7 kB / 390.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02375/0.3618, allocations: 12.88 MB / 403.6 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002088/0.3621, allocations: 51.44 kB / 403.6 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001013/0.3631, allocations: 191.8 kB / 403.8 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004407/0.3675, allocations: 2.374 MB / 406.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02491/0.3924, allocations: 11.74 MB / 417.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2504/0.6429, allocations: 48.63 MB / 466.5 MB, free: 80.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01757/0.6605, allocations: 5.566 MB / 472.1 MB, free: 79.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003853/0.6644, allocations: 3.489 MB / 475.6 MB, free: 78.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00069/0.6651, allocations: 380.6 kB / 476 MB, free: 78.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/0.6652, allocations: 55.03 kB / 476 MB, free: 78.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=221): time 5.671e-06/0.6652, allocations: 0 / 476 MB, free: 78.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=252): time 0.07728/0.7425, allocations: 27.93 MB / 0.4921 GB, free: 57.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.7426, allocations: 158 kB / 0.4923 GB, free: 57.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007716/0.7503, allocations: 4.609 MB / 0.4968 GB, free: 52.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001033/0.7514, allocations: 61.7 kB / 0.4968 GB, free: 52.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002113/0.7536, allocations: 3.59 MB / 0.5004 GB, free: 49.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001428/0.755, allocations: 0.943 MB / 0.5013 GB, free: 48.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003509/0.7585, allocations: 1.505 MB / 0.5027 GB, free: 46.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.813e-05/0.7586, allocations: 309 kB / 0.503 GB, free: 46.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004516/0.7632, allocations: 3.453 MB / 0.5064 GB, free: 42.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006051/0.7692, allocations: 7.518 MB / 0.5138 GB, free: 33.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01111/0.7804, allocations: 11.84 MB / 0.5253 GB, free: 19.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001311/0.7805, allocations: 40 kB / 0.5253 GB, free: 19.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=914) (initialization): time 0.01934/0.7999, allocations: 11.87 MB / 0.5369 GB, free: 7.793 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001933/0.8001, allocations: 68 kB / 0.537 GB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000323/0.8005, allocations: 144 kB / 0.5371 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002826/0.8033, allocations: 1.134 MB / 0.5383 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006012/0.8093, allocations: 1.805 MB / 0.54 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007252/0.8166, allocations: 6.353 MB / 0.5462 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005738/0.8224, allocations: 427.4 kB / 0.5466 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001229/0.8236, allocations: 466.6 kB / 0.5471 GB, free: 13.29 MB / 398.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.004858/0.8285, allocations: 2.451 MB / 0.5495 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001215/0.8297, allocations: 410.7 kB / 0.5499 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/0.8417, allocations: 6.481 MB / 0.5562 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.158e-05/0.8418, allocations: 34.73 kB / 0.5562 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.031e-05/0.8419, allocations: 4 kB / 0.5562 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.816e-05/0.8419, allocations: 11.95 kB / 0.5562 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02657/0.8685, allocations: 13.63 MB / 0.5695 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-05/0.8685, allocations: 4 kB / 0.5695 GB, free: 6.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003111/0.8717, allocations: 0.5694 MB / 0.5701 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002754/0.8744, allocations: 0.9569 MB / 0.571 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004988/0.875, allocations: 91.83 kB / 0.5711 GB, free: 4.559 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007947/0.8829, allocations: 6.053 MB / 0.577 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.883, allocations: 4 kB / 0.577 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01659/0.8996, allocations: 10.92 MB / 0.5877 GB, free: 3.336 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002371/0.902, allocations: 0.9327 MB / 0.5886 GB, free: 2.379 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001157/0.9031, allocations: 44 kB / 0.5887 GB, free: 2.336 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002775/0.9059, allocations: 167.8 kB / 0.5888 GB, free: 2.172 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006151/0.9066, allocations: 201.6 kB / 0.589 GB, free: 1.973 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003182/0.9069, allocations: 111.8 kB / 0.5891 GB, free: 1.867 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005309/0.9122, allocations: 2.9 MB / 0.5919 GB, free: 14.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.9122, allocations: 0 / 0.5919 GB, free: 14.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006257/0.9185, allocations: 1.264 MB / 0.5932 GB, free: 13.71 MB / 446.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.0006746/0.9192, allocations: 185.5 kB / 0.5934 GB, free: 13.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01741/0.9366, allocations: 10.66 MB / 0.6038 GB, free: 2.906 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.587e-06/0.9367, allocations: 0 / 0.6038 GB, free: 2.906 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1677/1.104, allocations: 3.157 MB / 0.6068 GB, free: 161 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005347/1.11, allocations: 0.5068 MB / 0.6073 GB, free: 161 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01786/1.128, allocations: 12.6 MB / 0.6196 GB, free: 156.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003129/1.131, allocations: 3.8 MB / 0.6234 GB, free: 155.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005208/1.136, allocations: 2.392 MB / 0.6257 GB, free: 155.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/1.137, allocations: 434 kB / 0.6261 GB, free: 155.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.222e-06/1.137, allocations: 0 / 0.6261 GB, free: 155.3 MB / 446.1 MB Notification: Performance of Templates: time 0.0912/1.229, allocations: 58.23 MB / 0.683 GB, free: 99.5 MB / 446.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)