Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001367/0.001366, allocations: 111 kB / 17.06 MB, free: 5.965 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.001458/0.001458, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.439/1.439, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.002165/0.002165, allocations: 51.94 kB / 327.9 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1155, allocations: 46.61 MB / 374.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2382/0.3538, allocations: 17.34 MB / 391.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.3689, allocations: 5.496 MB / 397.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004812/0.3738, allocations: 117.5 kB / 397.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009633/0.3835, allocations: 4.368 MB / 401.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01168/0.3952, allocations: 2.76 MB / 404.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003866/0.3991, allocations: 1.46 MB / 406 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01297/0.4121, allocations: 8.154 MB / 414.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007428/0.4195, allocations: 5.383 MB / 419.6 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005451/0.425, allocations: 2.687 MB / 422.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0061/0.4312, allocations: 3.863 MB / 426.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001413/0.4326, allocations: 0.5352 MB / 426.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003592/0.4362, allocations: 1.623 MB / 428.3 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003235/0.4394, allocations: 3.398 MB / 431.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005256/0.4447, allocations: 3.663 MB / 435.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01409/0.4588, allocations: 11.24 MB / 446.6 MB, free: 7.223 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4589, allocations: 0 / 446.6 MB, free: 7.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4589, allocations: 0 / 446.6 MB, free: 7.223 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003278/0.4592, allocations: 0 / 446.6 MB, free: 7.223 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.02021/0.4794, allocations: 8.23 MB / 454.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.4795, allocations: 12.02 kB / 454.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03022/0.5097, allocations: 3.677 MB / 458.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01489/0.5246, allocations: 5.602 MB / 464.1 MB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003637/0.525, allocations: 369.4 kB / 464.5 MB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002606/0.5277, allocations: 0.5112 MB / 465 MB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03232/0.56, allocations: 16.24 MB / 481.2 MB, free: 3.336 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000273/0.5603, allocations: 83.23 kB / 481.3 MB, free: 3.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001244/0.5616, allocations: 235.8 kB / 481.5 MB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004766/0.5663, allocations: 2.927 MB / 484.4 MB, free: 96 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0291/0.5955, allocations: 13.7 MB / 498.2 MB, free: 2.363 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.3029/0.8984, allocations: 64.56 MB / 0.5495 GB, free: 133.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0234/0.9218, allocations: 7.856 MB / 0.5572 GB, free: 132.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006251/0.9281, allocations: 4.347 MB / 0.5614 GB, free: 132.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02773/0.9558, allocations: 19.36 MB / 0.5803 GB, free: 122.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.9559, allocations: 73.16 kB / 0.5804 GB, free: 122.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=290): time 5.871e-06/0.9559, allocations: 0 / 0.5804 GB, free: 122.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=372): time 0.15/1.106, allocations: 49.92 MB / 0.6292 GB, free: 87.51 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/1.106, allocations: 269.8 kB / 0.6294 GB, free: 87.19 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007489/1.114, allocations: 6.091 MB / 0.6354 GB, free: 81.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001033/1.115, allocations: 89.64 kB / 0.6355 GB, free: 80.99 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00217/1.117, allocations: 4.675 MB / 0.64 GB, free: 76.32 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00177/1.119, allocations: 1.372 MB / 0.6414 GB, free: 74.96 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002441/1.121, allocations: 1.912 MB / 0.6432 GB, free: 73.04 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.892e-05/1.121, allocations: 305.1 kB / 0.6435 GB, free: 72.74 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004877/1.126, allocations: 4.227 MB / 0.6476 GB, free: 68.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007658/1.134, allocations: 9.449 MB / 0.6569 GB, free: 56.58 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01434/1.148, allocations: 14.64 MB / 0.6712 GB, free: 39.48 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001264/1.148, allocations: 52 kB / 0.6712 GB, free: 39.43 MB / 478.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03369/1.182, allocations: 17.54 MB / 0.6883 GB, free: 21.84 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.853e-05/1.182, allocations: 84 kB / 0.6884 GB, free: 21.76 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000169/1.182, allocations: 184.3 kB / 0.6886 GB, free: 21.58 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01379/1.196, allocations: 4.55 MB / 0.693 GB, free: 17.02 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007581/1.204, allocations: 2.125 MB / 0.6951 GB, free: 14.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03359/1.237, allocations: 25.37 MB / 0.7199 GB, free: 5.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008122/1.245, allocations: 0.5266 MB / 0.7204 GB, free: 4.723 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001515/1.247, allocations: 0.539 MB / 0.7209 GB, free: 4.184 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.00508/1.252, allocations: 3.122 MB / 0.724 GB, free: 1.043 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/1.253, allocations: 0.5708 MB / 0.7245 GB, free: 476 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2834/1.537, allocations: 10.71 MB / 0.735 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001106/1.537, allocations: 38.08 kB / 0.735 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.567e-05/1.537, allocations: 21.34 kB / 0.7351 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001252/1.537, allocations: 18 kB / 0.7351 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05073/1.588, allocations: 20.38 MB / 0.755 GB, free: 153.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.465e-05/1.588, allocations: 5.016 kB / 0.755 GB, free: 153.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003187/1.591, allocations: 0.5295 MB / 0.7555 GB, free: 153.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01329/1.604, allocations: 4.182 MB / 0.7596 GB, free: 152.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008551/1.605, allocations: 64.95 kB / 0.7596 GB, free: 152.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02909/1.634, allocations: 23.14 MB / 0.7822 GB, free: 141.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/1.634, allocations: 2.344 kB / 0.7822 GB, free: 141.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02563/1.66, allocations: 15.61 MB / 0.7975 GB, free: 128.3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004859/1.665, allocations: 1.187 MB / 0.7986 GB, free: 127.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001739/1.667, allocations: 63.73 kB / 0.7987 GB, free: 127.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003487/1.67, allocations: 215.7 kB / 0.7989 GB, free: 127.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008533/1.671, allocations: 226.1 kB / 0.7991 GB, free: 126.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002738/1.671, allocations: 91.98 kB / 0.7992 GB, free: 126.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006003/1.677, allocations: 3.805 MB / 0.8029 GB, free: 123 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.02e-07/1.677, allocations: 3.969 kB / 0.8029 GB, free: 123 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01017/1.687, allocations: 1.934 MB / 0.8048 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.001169/1.689, allocations: 225.8 kB / 0.805 GB, free: 120.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01511/1.704, allocations: 10.52 MB / 0.8153 GB, free: 110.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.704, allocations: 3.969 kB / 0.8153 GB, free: 110.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005694/1.71, allocations: 4.127 MB / 0.8193 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.00451/1.714, allocations: 0.7814 MB / 0.8201 GB, free: 105.6 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02436/1.738, allocations: 16.29 MB / 0.836 GB, free: 89.44 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005652/1.744, allocations: 4.883 MB / 0.8408 GB, free: 84.53 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006542/1.751, allocations: 2.789 MB / 0.8435 GB, free: 81.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001317/1.752, allocations: 379.4 kB / 0.8439 GB, free: 81.36 MB / 0.4981 GB Notification: Performance of SimCode: time 1.172e-06/1.752, allocations: 0 / 0.8439 GB, free: 81.36 MB / 0.4981 GB Notification: Performance of Templates: time 0.3392/2.091, allocations: 80.99 MB / 0.923 GB, free: 142.3 MB / 0.4981 GB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)