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.009664/0.009664, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001694/0.001694, allocations: 198 kB / 16.68 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.563/1.563, allocations: 205.1 MB / 222.5 MB, free: 4.562 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.001161/0.001161, allocations: 53.97 kB / 326.5 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1165, allocations: 46.63 MB / 373.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01234/0.1289, allocations: 11.75 MB / 384.9 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00947/0.1384, allocations: 3.914 MB / 388.8 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002549/0.1411, allocations: 63.81 kB / 388.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005337/0.1465, allocations: 2.718 MB / 391.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006177/0.1527, allocations: 1.887 MB / 393.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00201/0.1547, allocations: 0.5732 MB / 394.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00722/0.1619, allocations: 3.75 MB / 397.8 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0064/0.1684, allocations: 3.675 MB / 401.5 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003619/0.172, allocations: 1.534 MB / 403 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004122/0.1761, allocations: 2.122 MB / 405.1 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001527/0.1777, allocations: 344 kB / 405.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003226/0.1809, allocations: 1.061 MB / 406.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002989/0.184, allocations: 1.917 MB / 408.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005575/0.1895, allocations: 2.237 MB / 410.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01174/0.2013, allocations: 7.213 MB / 417.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.2014, allocations: 4 kB / 417.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2014, allocations: 4 kB / 417.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003962/0.2018, allocations: 4 kB / 417.9 MB, free: 4.355 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.02181/0.2236, allocations: 5.427 MB / 423.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.2237, allocations: 11.97 kB / 423.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007629/0.2313, allocations: 1.917 MB / 425.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00668/0.238, allocations: 2.394 MB / 427.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003287/0.2384, allocations: 238 kB / 427.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001836/0.2402, allocations: 323.8 kB / 428.2 MB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02492/0.2652, allocations: 10.71 MB / 438.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002506/0.2655, allocations: 43.64 kB / 439 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001438/0.2669, allocations: 159.8 kB / 439.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003841/0.2708, allocations: 1.982 MB / 441.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02095/0.2918, allocations: 9.563 MB / 450.7 MB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2891/0.5809, allocations: 39.84 MB / 490.5 MB, free: 37.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01291/0.5938, allocations: 3.836 MB / 494.4 MB, free: 35.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00237/0.5962, allocations: 1.855 MB / 496.2 MB, free: 34.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005963/0.5968, allocations: 356.1 kB / 496.6 MB, free: 34.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.5969, allocations: 47.44 kB / 496.6 MB, free: 34.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 5.921e-06/0.5969, allocations: 6.234 kB / 496.6 MB, free: 34.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.0443/0.6412, allocations: 13.99 MB / 0.4986 GB, free: 22.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.6413, allocations: 149.4 kB / 0.4988 GB, free: 22.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005289/0.6466, allocations: 4.174 MB / 0.5028 GB, free: 18.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003328/0.647, allocations: 49.7 kB / 0.5029 GB, free: 18.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001368/0.6484, allocations: 3.289 MB / 0.5061 GB, free: 15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005748/0.6489, allocations: 0.6411 MB / 0.5067 GB, free: 14.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001382/0.6503, allocations: 1.234 MB / 0.5079 GB, free: 13.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.573e-05/0.6504, allocations: 301.1 kB / 0.5082 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002362/0.6528, allocations: 2.132 MB / 0.5103 GB, free: 10.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003915/0.6567, allocations: 5.964 MB / 0.5161 GB, free: 2.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009133/0.6658, allocations: 8.769 MB / 0.5247 GB, free: 8.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/0.666, allocations: 43.94 kB / 0.5247 GB, free: 8.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01639/0.6824, allocations: 8.609 MB / 0.5331 GB, free: 15.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-05/0.6825, allocations: 64 kB / 0.5332 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001609/0.6827, allocations: 136 kB / 0.5333 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002434/0.6851, allocations: 0.91 MB / 0.5342 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004667/0.6898, allocations: 1.4 MB / 0.5356 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006833/0.6967, allocations: 5.211 MB / 0.5407 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00515/0.7018, allocations: 331.7 kB / 0.541 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001196/0.7031, allocations: 392 kB / 0.5414 GB, free: 6.895 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.00504/0.7081, allocations: 2.095 MB / 0.5434 GB, free: 4.785 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/0.7092, allocations: 365.5 kB / 0.5438 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007291/0.7166, allocations: 3.148 MB / 0.5468 GB, free: 1.262 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.813e-05/0.7166, allocations: 19.91 kB / 0.5469 GB, free: 1.246 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.877e-05/0.7167, allocations: 4 kB / 0.5469 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.314e-05/0.7167, allocations: 11.97 kB / 0.5469 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01847/0.7352, allocations: 7.81 MB / 0.5545 GB, free: 9.367 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-05/0.7353, allocations: 3.938 kB / 0.5545 GB, free: 9.363 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/0.7368, allocations: 260.1 kB / 0.5548 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002196/0.739, allocations: 0.7148 MB / 0.5554 GB, free: 8.391 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001952/0.7392, allocations: 39.97 kB / 0.5555 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006783/0.746, allocations: 4.753 MB / 0.5601 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/0.7461, allocations: 4.031 kB / 0.5601 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01056/0.7566, allocations: 5.694 MB / 0.5657 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002258/0.7589, allocations: 0.6467 MB / 0.5663 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001268/0.7602, allocations: 28 kB / 0.5664 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002224/0.7625, allocations: 87.89 kB / 0.5664 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004038/0.7629, allocations: 104.8 kB / 0.5665 GB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001833/0.7631, allocations: 55.97 kB / 0.5666 GB, free: 12.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006333/0.7694, allocations: 2.603 MB / 0.5691 GB, free: 10.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7695, allocations: 0 / 0.5691 GB, free: 10.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006865/0.7763, allocations: 0.9647 MB / 0.5701 GB, free: 9.219 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.0006696/0.777, allocations: 162.2 kB / 0.5702 GB, free: 9.055 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01056/0.7876, allocations: 5.093 MB / 0.5752 GB, free: 3.977 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.7876, allocations: 0 / 0.5752 GB, free: 3.977 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002473/0.7901, allocations: 1.535 MB / 0.5767 GB, free: 2.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004459/0.7946, allocations: 440.7 kB / 0.5771 GB, free: 2.004 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01855/0.8132, allocations: 9.133 MB / 0.586 GB, free: 8.812 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00579/0.819, allocations: 3.231 MB / 0.5892 GB, free: 5.551 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005267/0.8243, allocations: 1.937 MB / 0.5911 GB, free: 3.605 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/0.8254, allocations: 271.3 kB / 0.5913 GB, free: 3.34 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8254, allocations: 0 / 0.5913 GB, free: 3.34 MB / 462.1 MB Notification: Performance of Templates: time 0.07536/0.9008, allocations: 33.81 MB / 0.6244 GB, free: 1.492 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)