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.006071/0.006071, allocations: 100.5 kB / 15.73 MB, free: 6.059 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.001239/0.001239, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.501/1.501, 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.001169/0.001169, allocations: 54.61 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09682, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01189/0.1088, allocations: 11.74 MB / 384.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009825/0.1186, allocations: 3.914 MB / 388.8 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002364/0.1211, allocations: 67.81 kB / 388.9 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005431/0.1265, allocations: 2.714 MB / 391.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005613/0.1322, allocations: 1.879 MB / 393.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001778/0.134, allocations: 0.5771 MB / 394.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00591/0.1399, allocations: 3.758 MB / 397.8 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004353/0.1443, allocations: 3.686 MB / 401.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002441/0.1467, allocations: 1.522 MB / 403 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002788/0.1496, allocations: 2.13 MB / 405.2 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008522/0.1504, allocations: 340 kB / 405.5 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002168/0.1526, allocations: 1.061 MB / 406.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001708/0.1543, allocations: 1.917 MB / 408.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002389/0.1567, allocations: 2.245 MB / 410.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007358/0.1641, allocations: 7.182 MB / 417.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.1641, allocations: 0 / 417.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1641, allocations: 0 / 417.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002125/0.1644, allocations: 4 kB / 417.9 MB, free: 4.359 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.01889/0.1833, allocations: 5.306 MB / 423.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.1833, allocations: 12.03 kB / 423.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006835/0.1902, allocations: 1.882 MB / 425.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0054/0.1956, allocations: 2.389 MB / 427.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.1958, allocations: 234 kB / 427.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008283/0.1966, allocations: 323.7 kB / 428 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0195/0.2161, allocations: 10.71 MB / 438.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001349/0.2163, allocations: 47.58 kB / 438.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005019/0.2168, allocations: 147.9 kB / 438.9 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003388/0.2202, allocations: 1.974 MB / 440.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01874/0.239, allocations: 9.574 MB / 450.5 MB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3028/0.5418, allocations: 39.77 MB / 490.2 MB, free: 37.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01279/0.5546, allocations: 3.837 MB / 494.1 MB, free: 35.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002246/0.5569, allocations: 1.851 MB / 495.9 MB, free: 34.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005112/0.5575, allocations: 359.2 kB / 496.3 MB, free: 34.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.5575, allocations: 58.12 kB / 496.3 MB, free: 34.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.937e-06/0.5575, allocations: 0 / 496.3 MB, free: 34.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.04031/0.5978, allocations: 13.77 MB / 0.4982 GB, free: 22.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.5979, allocations: 141.5 kB / 0.4983 GB, free: 22.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004857/0.6028, allocations: 4.167 MB / 0.5024 GB, free: 18.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003544/0.6032, allocations: 53.7 kB / 0.5024 GB, free: 18.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001621/0.6048, allocations: 3.165 MB / 0.5055 GB, free: 15.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000695/0.6055, allocations: 0.6075 MB / 0.5061 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001281/0.6068, allocations: 1.229 MB / 0.5073 GB, free: 13.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.41e-05/0.6068, allocations: 305.1 kB / 0.5076 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002396/0.6092, allocations: 2.132 MB / 0.5097 GB, free: 10.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003701/0.613, allocations: 5.964 MB / 0.5155 GB, free: 3.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00974/0.6227, allocations: 8.765 MB / 0.524 GB, free: 8.328 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001506/0.6229, allocations: 43.94 kB / 0.5241 GB, free: 8.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01791/0.6408, allocations: 8.574 MB / 0.5325 GB, free: 15.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.641, allocations: 64 kB / 0.5325 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001507/0.6412, allocations: 144.1 kB / 0.5327 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002552/0.6437, allocations: 0.9115 MB / 0.5336 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004926/0.6487, allocations: 1.4 MB / 0.5349 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006914/0.6556, allocations: 5.2 MB / 0.54 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005378/0.661, allocations: 335.2 kB / 0.5403 GB, free: 7.516 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00132/0.6624, allocations: 388 kB / 0.5407 GB, free: 7.137 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.004138/0.6665, allocations: 2.107 MB / 0.5427 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008656/0.6674, allocations: 343.5 kB / 0.5431 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006326/0.6737, allocations: 3.152 MB / 0.5461 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-05/0.6738, allocations: 16 kB / 0.5462 GB, free: 1.492 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/0.6738, allocations: 4 kB / 0.5462 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.409e-05/0.6739, allocations: 7.984 kB / 0.5462 GB, free: 1.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01516/0.689, allocations: 7.793 MB / 0.5538 GB, free: 9.641 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-05/0.6891, allocations: 7.969 kB / 0.5538 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.6904, allocations: 259.6 kB / 0.554 GB, free: 9.379 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002177/0.6926, allocations: 0.7135 MB / 0.5547 GB, free: 8.664 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001791/0.6928, allocations: 43.97 kB / 0.5548 GB, free: 8.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005978/0.6988, allocations: 4.747 MB / 0.5594 GB, free: 3.746 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.6988, allocations: 4.031 kB / 0.5594 GB, free: 3.742 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008912/0.7077, allocations: 5.679 MB / 0.565 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001855/0.7096, allocations: 0.6291 MB / 0.5656 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004868/0.7101, allocations: 31.58 kB / 0.5656 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/0.7115, allocations: 83.91 kB / 0.5657 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/0.7118, allocations: 108.8 kB / 0.5658 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/0.712, allocations: 51.97 kB / 0.5658 GB, free: 13.11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004447/0.7164, allocations: 2.606 MB / 0.5684 GB, free: 10.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7165, allocations: 0 / 0.5684 GB, free: 10.49 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005811/0.7223, allocations: 0.9674 MB / 0.5693 GB, free: 9.527 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.0004874/0.7228, allocations: 160.4 kB / 0.5695 GB, free: 9.367 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008018/0.7308, allocations: 5.102 MB / 0.5745 GB, free: 4.285 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.7309, allocations: 0 / 0.5745 GB, free: 4.285 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00226/0.7331, allocations: 1.536 MB / 0.576 GB, free: 2.738 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003089/0.7362, allocations: 441.3 kB / 0.5764 GB, free: 2.312 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01654/0.7528, allocations: 8.977 MB / 0.5852 GB, free: 9.293 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003693/0.7565, allocations: 3.239 MB / 0.5883 GB, free: 6.023 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004558/0.7611, allocations: 1.933 MB / 0.5902 GB, free: 4.082 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007566/0.7619, allocations: 271.3 kB / 0.5905 GB, free: 3.816 MB / 462.1 MB Notification: Performance of SimCode: time 1.854e-06/0.7619, allocations: 4 kB / 0.5905 GB, free: 3.812 MB / 462.1 MB Notification: Performance of Templates: time 0.06617/0.8281, allocations: 33.81 MB / 0.6235 GB, free: 1.965 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)