Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005067/0.005067, allocations: 105.5 kB / 15.74 MB, free: 5.594 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.001143/0.001143, allocations: 193.8 kB / 16.67 MB, free: 5.531 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.5 MB, free: 12.22 MB / 190.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.001216/0.001216, allocations: 47.94 kB / 326.5 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1138, allocations: 46.62 MB / 373.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2478/0.3617, allocations: 17.34 MB / 390.5 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01453/0.3763, allocations: 5.494 MB / 396 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006065/0.3824, allocations: 117.5 kB / 396.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01007/0.3925, allocations: 4.368 MB / 400.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01006/0.4026, allocations: 2.759 MB / 403.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00424/0.4069, allocations: 1.456 MB / 404.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01515/0.422, allocations: 8.155 MB / 412.9 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0084/0.4305, allocations: 5.388 MB / 418.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00664/0.4372, allocations: 2.691 MB / 420.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006625/0.4438, allocations: 3.86 MB / 424.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00159/0.4454, allocations: 0.5352 MB / 425.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003963/0.4494, allocations: 1.623 MB / 427 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003325/0.4527, allocations: 3.406 MB / 430.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004754/0.4575, allocations: 3.659 MB / 434 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01287/0.4704, allocations: 11.24 MB / 445.3 MB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.4704, allocations: 0 / 445.3 MB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4704, allocations: 0 / 445.3 MB, free: 7.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003263/0.4708, allocations: 0 / 445.3 MB, free: 7.23 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02022/0.491, allocations: 8.23 MB / 453.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.4911, allocations: 8.031 kB / 453.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03087/0.5219, allocations: 3.677 MB / 457.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0147/0.5367, allocations: 5.61 MB / 462.8 MB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003273/0.537, allocations: 369.4 kB / 463.1 MB, free: 5.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002168/0.5392, allocations: 0.5112 MB / 463.6 MB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0318/0.571, allocations: 16.24 MB / 479.9 MB, free: 3.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002605/0.5713, allocations: 79.3 kB / 480 MB, free: 3.262 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008705/0.5722, allocations: 239.7 kB / 480.2 MB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004744/0.577, allocations: 2.927 MB / 483.1 MB, free: 100 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02989/0.6069, allocations: 13.7 MB / 496.8 MB, free: 2.371 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2915/0.8984, allocations: 64.56 MB / 0.5482 GB, free: 133.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02471/0.9232, allocations: 7.859 MB / 0.5559 GB, free: 132.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005873/0.9291, allocations: 4.342 MB / 0.5601 GB, free: 132.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02882/0.9579, allocations: 19.37 MB / 0.5791 GB, free: 122.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.828e-05/0.958, allocations: 69.62 kB / 0.5791 GB, free: 122.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=290): time 5.54e-06/0.958, allocations: 2.312 kB / 0.5791 GB, free: 122.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=372): time 0.1607/1.119, allocations: 49.92 MB / 0.6279 GB, free: 87.48 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.436e-05/1.119, allocations: 273.8 kB / 0.6281 GB, free: 87.16 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008046/1.127, allocations: 6.091 MB / 0.6341 GB, free: 81.05 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008251/1.128, allocations: 81.7 kB / 0.6342 GB, free: 80.97 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002212/1.13, allocations: 4.673 MB / 0.6387 GB, free: 76.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00152/1.132, allocations: 1.371 MB / 0.6401 GB, free: 74.94 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002275/1.134, allocations: 1.919 MB / 0.6419 GB, free: 73.01 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.366e-05/1.134, allocations: 309.1 kB / 0.6422 GB, free: 72.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005506/1.139, allocations: 4.224 MB / 0.6464 GB, free: 68.47 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006674/1.146, allocations: 9.45 MB / 0.6556 GB, free: 56.55 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01316/1.159, allocations: 14.63 MB / 0.6699 GB, free: 39.46 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001421/1.159, allocations: 55.25 kB / 0.6699 GB, free: 39.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03294/1.192, allocations: 17.54 MB / 0.6871 GB, free: 21.83 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002305/1.193, allocations: 84.47 kB / 0.6871 GB, free: 21.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003002/1.193, allocations: 180 kB / 0.6873 GB, free: 21.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01391/1.207, allocations: 4.551 MB / 0.6917 GB, free: 17.01 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007426/1.214, allocations: 2.133 MB / 0.6938 GB, free: 14.87 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03553/1.25, allocations: 25.37 MB / 0.7186 GB, free: 5.227 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008403/1.258, allocations: 0.5188 MB / 0.7191 GB, free: 4.707 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002152/1.261, allocations: 0.539 MB / 0.7196 GB, free: 4.168 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1136): * Single equations (assignments): 1131 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,44,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007829/1.268, allocations: 3.129 MB / 0.7227 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002191/1.271, allocations: 0.5747 MB / 0.7233 GB, free: 452 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.261/1.532, allocations: 10.7 MB / 0.7337 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.621e-05/1.532, allocations: 38.27 kB / 0.7337 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.215e-05/1.532, allocations: 24.44 kB / 0.7338 GB, free: 158.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.819e-05/1.532, allocations: 17.69 kB / 0.7338 GB, free: 158.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04723/1.579, allocations: 20.37 MB / 0.7537 GB, free: 153.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-05/1.579, allocations: 1.125 kB / 0.7537 GB, free: 153.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002883/1.582, allocations: 0.5383 MB / 0.7542 GB, free: 153.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01287/1.595, allocations: 4.176 MB / 0.7583 GB, free: 152.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007472/1.596, allocations: 66.19 kB / 0.7583 GB, free: 152.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02711/1.623, allocations: 23.13 MB / 0.7809 GB, free: 141.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/1.623, allocations: 7.922 kB / 0.7809 GB, free: 141.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02465/1.648, allocations: 15.62 MB / 0.7962 GB, free: 128.3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004334/1.652, allocations: 1.184 MB / 0.7974 GB, free: 127.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002076/1.654, allocations: 58.44 kB / 0.7974 GB, free: 127.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003997/1.658, allocations: 219.2 kB / 0.7976 GB, free: 127.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009493/1.659, allocations: 230.1 kB / 0.7978 GB, free: 127 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000354/1.659, allocations: 95.98 kB / 0.7979 GB, free: 126.9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006738/1.666, allocations: 3.801 MB / 0.8016 GB, free: 123.1 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.51e-07/1.666, allocations: 0 / 0.8016 GB, free: 123.1 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.009658/1.676, allocations: 1.938 MB / 0.8035 GB, free: 121.1 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (272): * Single equations (assignments): 267 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001324/1.677, allocations: 222.5 kB / 0.8037 GB, free: 120.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01604/1.693, allocations: 10.52 MB / 0.814 GB, free: 110.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/1.693, allocations: 4 kB / 0.814 GB, free: 110.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00617/1.699, allocations: 4.127 MB / 0.8181 GB, free: 106.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00686/1.706, allocations: 0.7754 MB / 0.8188 GB, free: 105.6 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03199/1.738, allocations: 16.29 MB / 0.8347 GB, free: 89.46 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007433/1.746, allocations: 4.875 MB / 0.8395 GB, free: 84.56 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.007222/1.753, allocations: 2.793 MB / 0.8422 GB, free: 81.76 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001978/1.755, allocations: 383.4 kB / 0.8426 GB, free: 81.39 MB / 0.4981 GB Notification: Performance of SimCode: time 8.71e-07/1.755, allocations: 0 / 0.8426 GB, free: 81.39 MB / 0.4981 GB Notification: Performance of Templates: time 0.3535/2.109, allocations: 80.99 MB / 0.9217 GB, free: 142.9 MB / 0.4981 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)