Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001324/0.001324, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.00167/0.00167, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.581/1.581, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004433/0.0004433, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2269, allocations: 47.58 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.03986/0.2668, allocations: 42.99 MB / 369.4 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02149/0.2883, allocations: 10.22 MB / 379.7 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008287/0.2967, allocations: 211.5 kB / 379.9 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007579/0.3043, allocations: 2.119 MB / 382 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01852/0.3228, allocations: 6.214 MB / 388.2 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002813/0.3257, allocations: 0.5108 MB / 388.7 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004462/0.3301, allocations: 2.121 MB / 390.8 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007081/0.3372, allocations: 4.285 MB / 395.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002401/0.3397, allocations: 0.9965 MB / 396.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002182/0.3419, allocations: 1.371 MB / 397.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004151/0.3423, allocations: 140 kB / 397.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001508/0.3438, allocations: 0.7568 MB / 398.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001323/0.3451, allocations: 1.562 MB / 399.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007984/0.3459, allocations: 0.835 MB / 400.8 MB, free: 8.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005137/0.3511, allocations: 5.522 MB / 406.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.3511, allocations: 3.938 kB / 406.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3511, allocations: 0 / 406.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001821/0.3513, allocations: 0 / 406.3 MB, free: 3.41 MB / 334.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.01592/0.3672, allocations: 4.515 MB / 410.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3673, allocations: 8.031 kB / 410.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008241/0.3756, allocations: 2.244 MB / 413.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005593/0.3812, allocations: 2.518 MB / 415.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/0.3814, allocations: 234 kB / 415.8 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007379/0.3822, allocations: 315.8 kB / 416.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01858/0.4008, allocations: 10.76 MB / 426.9 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001124/0.4009, allocations: 39.59 kB / 426.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004143/0.4013, allocations: 151.8 kB / 427.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003312/0.4046, allocations: 1.989 MB / 429.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01984/0.4245, allocations: 9.617 MB / 438.7 MB, free: 2.188 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2589/0.6834, allocations: 39.97 MB / 478.6 MB, free: 85.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01253/0.696, allocations: 3.86 MB / 482.5 MB, free: 84.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005816/0.6966, allocations: 357.7 kB / 482.8 MB, free: 83.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.6967, allocations: 60.89 kB / 482.9 MB, free: 83.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.607e-06/0.6967, allocations: 0 / 482.9 MB, free: 83.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.04154/0.7382, allocations: 14.1 MB / 497 MB, free: 75.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.7383, allocations: 143.5 kB / 497.1 MB, free: 75.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004689/0.743, allocations: 4.279 MB / 0.4897 GB, free: 71.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000355/0.7434, allocations: 45.7 kB / 0.4897 GB, free: 71.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001513/0.7449, allocations: 3.172 MB / 0.4928 GB, free: 68.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005843/0.7455, allocations: 0.6133 MB / 0.4934 GB, free: 67.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002226/0.7458, allocations: 117.9 kB / 0.4935 GB, free: 67.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002408/0.746, allocations: 0.558 MB / 0.4941 GB, free: 66.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002582/0.7486, allocations: 2.106 MB / 0.4961 GB, free: 64.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00375/0.7524, allocations: 5.914 MB / 0.5019 GB, free: 56.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003936/0.7563, allocations: 3.451 MB / 0.5053 GB, free: 53.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.54e-05/0.7564, allocations: 36 kB / 0.5053 GB, free: 53.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01278/0.7692, allocations: 8.519 MB / 0.5136 GB, free: 44.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.62e-05/0.7693, allocations: 67.95 kB / 0.5137 GB, free: 44.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/0.7694, allocations: 136 kB / 0.5138 GB, free: 44.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002264/0.7717, allocations: 0.9297 MB / 0.5147 GB, free: 43.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004215/0.7759, allocations: 1.388 MB / 0.5161 GB, free: 42.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005307/0.7812, allocations: 4.982 MB / 0.521 GB, free: 37.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006126/0.7874, allocations: 331.6 kB / 0.5213 GB, free: 37.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001422/0.7888, allocations: 380 kB / 0.5216 GB, free: 36.65 MB / 382.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 (736): * Single equations (assignments): 732 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004073/0.7929, allocations: 2.104 MB / 0.5237 GB, free: 34.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007738/0.7937, allocations: 351.4 kB / 0.524 GB, free: 34.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005431/0.7991, allocations: 3.144 MB / 0.5271 GB, free: 31.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.224e-05/0.7992, allocations: 17.33 kB / 0.5271 GB, free: 31.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.7992, allocations: 4 kB / 0.5271 GB, free: 31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.981e-05/0.7992, allocations: 15.92 kB / 0.5271 GB, free: 30.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01412/0.8134, allocations: 7.857 MB / 0.5348 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.8134, allocations: 0 / 0.5348 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/0.8146, allocations: 263.6 kB / 0.535 GB, free: 22.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0019/0.8166, allocations: 0.7147 MB / 0.5357 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/0.8167, allocations: 35.97 kB / 0.5358 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004803/0.8215, allocations: 4.512 MB / 0.5402 GB, free: 17.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.8216, allocations: 8.016 kB / 0.5402 GB, free: 17.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007831/0.8294, allocations: 5.842 MB / 0.5459 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001818/0.8312, allocations: 0.6331 MB / 0.5465 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009472/0.8322, allocations: 28 kB / 0.5465 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001726/0.8339, allocations: 89.02 kB / 0.5466 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002774/0.8342, allocations: 109.7 kB / 0.5467 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.8344, allocations: 47.97 kB / 0.5468 GB, free: 10.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004024/0.8384, allocations: 2.689 MB / 0.5494 GB, free: 7.887 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.032e-06/0.8384, allocations: 0 / 0.5494 GB, free: 7.887 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004773/0.8432, allocations: 0.9835 MB / 0.5504 GB, free: 6.91 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004204/0.8436, allocations: 180.3 kB / 0.5505 GB, free: 6.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006655/0.8503, allocations: 5.056 MB / 0.5555 GB, free: 1.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.8503, allocations: 0 / 0.5555 GB, free: 1.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001706/0.852, allocations: 1.535 MB / 0.557 GB, free: 148 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/0.8542, allocations: 393.5 kB / 0.5574 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01999/0.8742, allocations: 10.62 MB / 0.5677 GB, free: 5.078 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005341/0.8796, allocations: 3.334 MB / 0.571 GB, free: 1.719 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.005655/0.8853, allocations: 1.933 MB / 0.5729 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/0.8864, allocations: 271.3 kB / 0.5731 GB, free: 15.51 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.8864, allocations: 0 / 0.5731 GB, free: 15.51 MB / 414.1 MB Notification: Performance of Templates: time 0.2356/1.122, allocations: 35.14 MB / 0.6074 GB, free: 141.8 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) Environment - environmentSimulation: