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.008538/0.008538, allocations: 101.1 kB / 15.73 MB, free: 6.004 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.002184/0.002184, allocations: 186.7 kB / 16.67 MB, free: 5.922 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.406/1.406, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001232/0.001232, allocations: 55.94 kB / 326.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09056/0.0918, allocations: 46.62 MB / 373.2 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2659/0.3577, allocations: 17.34 MB / 390.5 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01556/0.3733, allocations: 5.49 MB / 396 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006238/0.3797, allocations: 116.8 kB / 396.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0117/0.3914, allocations: 4.372 MB / 400.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01083/0.4023, allocations: 2.763 MB / 403.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00475/0.4071, allocations: 1.455 MB / 404.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01544/0.4225, allocations: 8.148 MB / 412.9 MB, free: 6.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01112/0.4337, allocations: 5.392 MB / 418.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007761/0.4415, allocations: 2.695 MB / 420.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007744/0.4493, allocations: 3.844 MB / 424.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003178/0.4525, allocations: 0.5352 MB / 425.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006167/0.4587, allocations: 1.623 MB / 426.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006008/0.4648, allocations: 3.351 MB / 430.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0088/0.4736, allocations: 3.659 MB / 434 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01908/0.4928, allocations: 11.28 MB / 445.2 MB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.4928, allocations: 0 / 445.2 MB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4928, allocations: 3.938 kB / 445.2 MB, free: 7.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000476/0.4933, allocations: 0 / 445.2 MB, free: 7.215 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.02786/0.5212, allocations: 8.444 MB / 453.7 MB, free: 14.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.414e-05/0.5212, allocations: 8.031 kB / 453.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03142/0.5527, allocations: 3.713 MB / 457.4 MB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01444/0.5671, allocations: 5.628 MB / 463 MB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000411/0.5676, allocations: 373.4 kB / 463.4 MB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002263/0.5699, allocations: 0.5074 MB / 463.9 MB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03549/0.6054, allocations: 16.24 MB / 480.1 MB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003181/0.6057, allocations: 79.36 kB / 480.2 MB, free: 2.969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001598/0.6073, allocations: 243.7 kB / 480.5 MB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00503/0.6124, allocations: 2.919 MB / 483.4 MB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03078/0.6432, allocations: 13.71 MB / 497.1 MB, free: 2.07 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.2975/0.9408, allocations: 64.67 MB / 0.5486 GB, free: 133.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02334/0.9642, allocations: 7.861 MB / 0.5563 GB, free: 132.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006068/0.9703, allocations: 4.344 MB / 0.5605 GB, free: 132.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02735/0.9976, allocations: 19.38 MB / 0.5794 GB, free: 122.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.882e-05/0.9977, allocations: 73.41 kB / 0.5795 GB, free: 122.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=290): time 6.732e-06/0.9978, allocations: 0 / 0.5795 GB, free: 122.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=372): time 0.1522/1.15, allocations: 50.29 MB / 0.6286 GB, free: 87.04 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.473e-05/1.15, allocations: 269.8 kB / 0.6289 GB, free: 86.71 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006979/1.157, allocations: 6.097 MB / 0.6348 GB, free: 80.72 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000859/1.158, allocations: 87.05 kB / 0.6349 GB, free: 80.63 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002536/1.161, allocations: 4.858 MB / 0.6397 GB, free: 76.11 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001572/1.162, allocations: 1.434 MB / 0.6411 GB, free: 74.69 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00236/1.164, allocations: 1.928 MB / 0.6429 GB, free: 72.75 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.55e-05/1.165, allocations: 313.1 kB / 0.6432 GB, free: 72.45 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005009/1.17, allocations: 4.22 MB / 0.6474 GB, free: 68.22 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006725/1.176, allocations: 9.456 MB / 0.6566 GB, free: 56.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01398/1.19, allocations: 14.63 MB / 0.6709 GB, free: 39.21 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001676/1.191, allocations: 48 kB / 0.6709 GB, free: 39.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03582/1.226, allocations: 17.59 MB / 0.6881 GB, free: 21.54 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002255/1.227, allocations: 80.47 kB / 0.6882 GB, free: 21.46 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003296/1.227, allocations: 183.9 kB / 0.6884 GB, free: 21.28 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01394/1.241, allocations: 4.555 MB / 0.6928 GB, free: 16.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007371/1.248, allocations: 2.126 MB / 0.6949 GB, free: 14.58 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03488/1.283, allocations: 25.4 MB / 0.7197 GB, free: 4.914 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008462/1.292, allocations: 0.5112 MB / 0.7202 GB, free: 4.402 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002322/1.294, allocations: 0.5464 MB / 0.7207 GB, free: 3.859 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.01045/1.305, allocations: 3.123 MB / 0.7238 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002696/1.307, allocations: 0.6046 MB / 0.7243 GB, free: 116 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2715/1.579, allocations: 10.7 MB / 0.7348 GB, free: 159.4 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.039e-05/1.579, allocations: 38.28 kB / 0.7348 GB, free: 159.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001145/1.579, allocations: 20.12 kB / 0.7349 GB, free: 159.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001194/1.579, allocations: 21.52 kB / 0.7349 GB, free: 159.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0504/1.63, allocations: 20.38 MB / 0.7548 GB, free: 154.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.8e-05/1.63, allocations: 1 kB / 0.7548 GB, free: 154.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002878/1.633, allocations: 0.537 MB / 0.7553 GB, free: 154 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01271/1.645, allocations: 4.179 MB / 0.7594 GB, free: 153.4 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006791/1.646, allocations: 63.28 kB / 0.7594 GB, free: 153.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02984/1.676, allocations: 23.15 MB / 0.7821 GB, free: 141.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.676, allocations: 3.562 kB / 0.7821 GB, free: 141.4 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02734/1.703, allocations: 15.66 MB / 0.7973 GB, free: 127.3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003556/1.707, allocations: 1.213 MB / 0.7985 GB, free: 126.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001857/1.709, allocations: 60 kB / 0.7986 GB, free: 126.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003779/1.712, allocations: 215.7 kB / 0.7988 GB, free: 126.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009631/1.713, allocations: 230.1 kB / 0.799 GB, free: 125.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003942/1.714, allocations: 95.98 kB / 0.7991 GB, free: 125.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006573/1.72, allocations: 3.801 MB / 0.8028 GB, free: 122 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/1.72, allocations: 7.75 kB / 0.8028 GB, free: 122 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008105/1.729, allocations: 1.936 MB / 0.8047 GB, free: 120.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.0007663/1.729, allocations: 218.1 kB / 0.8049 GB, free: 119.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01446/1.744, allocations: 10.53 MB / 0.8152 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/1.744, allocations: 0 / 0.8152 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005872/1.75, allocations: 4.138 MB / 0.8192 GB, free: 105.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007647/1.757, allocations: 0.7749 MB / 0.82 GB, free: 104.6 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0285/1.786, allocations: 16.52 MB / 0.8361 GB, free: 88.17 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007569/1.794, allocations: 4.876 MB / 0.8409 GB, free: 83.26 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006697/1.8, allocations: 2.793 MB / 0.8436 GB, free: 80.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001683/1.802, allocations: 383.4 kB / 0.844 GB, free: 80.09 MB / 0.4981 GB Notification: Performance of SimCode: time 1.173e-06/1.802, allocations: 0 / 0.844 GB, free: 80.09 MB / 0.4981 GB Notification: Performance of Templates: time 0.4061/2.208, allocations: 80.28 MB / 0.9224 GB, free: 143.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)