Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.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.Elementary.RollingWheel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, 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.001368/0.001368, allocations: 194.6 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.496/1.496, 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.001446/0.001446, allocations: 60.25 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2522, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.009259/0.2615, allocations: 7.036 MB / 332.4 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008389/0.27, allocations: 3.142 MB / 335.5 MB, free: 9.727 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001777/0.2719, allocations: 27.94 kB / 335.5 MB, free: 9.699 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002418/0.2743, allocations: 0.899 MB / 336.4 MB, free: 8.797 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004279/0.2786, allocations: 1.37 MB / 337.8 MB, free: 7.422 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001284/0.2799, allocations: 0.5186 MB / 338.3 MB, free: 6.902 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004357/0.2843, allocations: 2.735 MB / 341 MB, free: 4.156 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002633/0.2869, allocations: 1.329 MB / 342.4 MB, free: 2.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002035/0.289, allocations: 0.8641 MB / 343.2 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003101/0.2921, allocations: 2.018 MB / 345.3 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008529/0.293, allocations: 176 kB / 345.4 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002726/0.2957, allocations: 0.9633 MB / 346.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001824/0.2976, allocations: 1.13 MB / 347.5 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002606/0.3002, allocations: 1.312 MB / 348.8 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00626/0.3065, allocations: 4.258 MB / 353.1 MB, free: 8.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.351e-06/0.3065, allocations: 0 / 353.1 MB, free: 8.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3065, allocations: 0 / 353.1 MB, free: 8.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001628/0.3067, allocations: 0 / 353.1 MB, free: 8.07 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 947 * Number of variables: 947 Notification: Performance of Generate backend data structure: time 0.009247/0.3159, allocations: 3.265 MB / 356.4 MB, free: 4.746 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.316, allocations: 12.03 kB / 356.4 MB, free: 4.734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006196/0.3222, allocations: 1.651 MB / 358 MB, free: 3.078 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003236/0.3255, allocations: 1.565 MB / 359.6 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.3256, allocations: 135.1 kB / 359.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005942/0.3262, allocations: 175.8 kB / 359.9 MB, free: 1.164 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01251/0.3387, allocations: 6.588 MB / 366.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000157/0.3389, allocations: 31.66 kB / 366.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005876/0.3395, allocations: 91.89 kB / 366.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002282/0.3418, allocations: 1.327 MB / 367.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01169/0.3535, allocations: 5.843 MB / 373.8 MB, free: 2.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03445/0.388, allocations: 28.06 MB / 401.8 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006256/0.3943, allocations: 2.79 MB / 404.6 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001679/0.396, allocations: 1.307 MB / 405.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007518/0.3968, allocations: 0.6317 MB / 406.6 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/0.3968, allocations: 47.06 kB / 406.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 5.971e-06/0.3968, allocations: 0 / 406.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of matching and sorting (n=163): time 0.07025/0.4671, allocations: 21.02 MB / 427.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.957e-05/0.4672, allocations: 175.2 kB / 427.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003474/0.4707, allocations: 2.8 MB / 430.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002791/0.471, allocations: 49.7 kB / 430.6 MB, free: 8.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.4723, allocations: 2.071 MB / 432.7 MB, free: 6.414 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007246/0.473, allocations: 0.6286 MB / 433.3 MB, free: 5.777 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001258/0.4743, allocations: 0.9998 MB / 434.3 MB, free: 4.766 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.758e-05/0.4744, allocations: 305.1 kB / 434.6 MB, free: 4.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002956/0.4774, allocations: 2.227 MB / 436.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004757/0.4821, allocations: 5.154 MB / 442 MB, free: 11.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008724/0.4909, allocations: 7.966 MB / 450 MB, free: 2.211 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.126e-05/0.491, allocations: 32 kB / 450 MB, free: 2.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=645) (initialization): time 0.212/0.703, allocations: 10.29 MB / 460.3 MB, free: 107.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/0.7032, allocations: 50.55 kB / 460.4 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000187/0.7033, allocations: 102.8 kB / 460.5 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01085/0.7142, allocations: 3.437 MB / 463.9 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003482/0.7177, allocations: 1.093 MB / 465 MB, free: 106.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01665/0.7344, allocations: 12.84 MB / 477.8 MB, free: 95.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004681/0.7391, allocations: 331.3 kB / 478.2 MB, free: 95.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001005/0.7402, allocations: 311.4 kB / 478.5 MB, free: 94.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 469 * Number of states: 0 () * Number of discrete variables: 15 (world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],wheel1.body.sphereColor[3],wheel1.body.sphereColor[2],wheel1.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (577): * Single equations (assignments): 566 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(2,100.0%), (2,100.0%), (2,100.0%), (3,88.9%), (3,88.9%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,23,80.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003266/0.7434, allocations: 1.466 MB / 479.9 MB, free: 93.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006051/0.7441, allocations: 251.3 kB / 480.2 MB, free: 93.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01425/0.7583, allocations: 6.005 MB / 486.2 MB, free: 87.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.905e-05/0.7585, allocations: 31.55 kB / 486.2 MB, free: 87.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.781e-05/0.7585, allocations: 8 kB / 486.2 MB, free: 87.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.713e-05/0.7585, allocations: 7.984 kB / 486.2 MB, free: 87.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02703/0.7856, allocations: 13.24 MB / 499.5 MB, free: 74.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.291e-05/0.7857, allocations: 0 / 499.5 MB, free: 74.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.7869, allocations: 235.6 kB / 499.7 MB, free: 73.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01147/0.7984, allocations: 4.018 MB / 0.4919 GB, free: 69.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003534/0.7988, allocations: 47.95 kB / 0.492 GB, free: 69.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01625/0.815, allocations: 12.83 MB / 0.5045 GB, free: 56.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.8151, allocations: 0 / 0.5045 GB, free: 56.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01898/0.8341, allocations: 10.08 MB / 0.5143 GB, free: 46.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007185/0.8348, allocations: 317.5 kB / 0.5146 GB, free: 46.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007173/0.8356, allocations: 35.98 kB / 0.5147 GB, free: 46.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/0.8377, allocations: 183.9 kB / 0.5148 GB, free: 46.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005541/0.8383, allocations: 108.8 kB / 0.5149 GB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002037/0.8385, allocations: 55.97 kB / 0.515 GB, free: 45.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002873/0.8414, allocations: 1.742 MB / 0.5167 GB, free: 44.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.8414, allocations: 0 / 0.5167 GB, free: 44.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004016/0.8454, allocations: 0.8225 MB / 0.5175 GB, free: 43.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (wheel1.x,wheel1.y,wheel1.angles[1],wheel1.angles[2],wheel1.angles[3],wheel1.der_angles[1],wheel1.der_angles[2],wheel1.der_angles[3]) * 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 (105): * Single equations (assignments): 94 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(2,100.0%), (2,100.0%), (3,88.9%), (2,100.0%), (3,88.9%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,19,80.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004679/0.8459, allocations: 166.2 kB / 0.5177 GB, free: 43.19 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Parts.mo:2605:5-2609:74:writable] Warning: Variable $DER.wheel1.der_angles[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Parts.mo:2605:5-2609:74:writable] Warning: Variable $DER.wheel1.der_angles[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.009811/0.8557, allocations: 6.799 MB / 0.5243 GB, free: 36.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.8557, allocations: 0 / 0.5243 GB, free: 36.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00447/0.8602, allocations: 2.897 MB / 0.5271 GB, free: 33.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.8622, allocations: 305.9 kB / 0.5274 GB, free: 32.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009369/0.8716, allocations: 7.385 MB / 0.5346 GB, free: 25.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001658/0.8733, allocations: 2.318 MB / 0.5369 GB, free: 23.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003273/0.8766, allocations: 1.507 MB / 0.5384 GB, free: 21.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005621/0.8772, allocations: 195.4 kB / 0.5385 GB, free: 21.5 MB / 382.1 MB Notification: Performance of SimCode: time 2.314e-06/0.8772, allocations: 0 / 0.5385 GB, free: 21.5 MB / 382.1 MB Notification: Performance of Templates: time 0.05844/0.9356, allocations: 40.84 MB / 0.5784 GB, free: 12.67 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1)