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.001007/0.001007, allocations: 86.11 kB / 16.64 MB, free: 6.176 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.001181/0.001181, allocations: 177.5 kB / 17.56 MB, free: 5.824 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.366/1.366, allocations: 205.4 MB / 223.7 MB, free: 12.98 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.0004456/0.0004456, allocations: 10.81 kB / 280.7 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09368, allocations: 47.58 MB / 328.3 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2434/0.3371, allocations: 71.44 MB / 399.8 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03004/0.3672, allocations: 14.62 MB / 414.4 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01608/0.3833, allocations: 320.4 kB / 414.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002701/0.3861, allocations: 0.6401 MB / 415.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0075/0.3936, allocations: 2.615 MB / 418 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003174/0.3968, allocations: 1.35 MB / 419.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0141/0.4109, allocations: 11.44 MB / 430.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01097/0.4219, allocations: 7.118 MB / 437.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004004/0.426, allocations: 2.084 MB / 439.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005967/0.432, allocations: 3.702 MB / 443.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00124/0.4332, allocations: 248 kB / 443.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003536/0.4368, allocations: 1.415 MB / 445.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003064/0.4399, allocations: 3.039 MB / 448.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004073/0.4439, allocations: 3.295 MB / 451.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.4555, allocations: 10.46 MB / 462.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.4555, allocations: 0 / 462.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4555, allocations: 0 / 462.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002905/0.4558, allocations: 0 / 462.1 MB, free: 12.35 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.01599/0.4718, allocations: 6.822 MB / 468.9 MB, free: 5.488 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.4719, allocations: 12.03 kB / 468.9 MB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0312/0.5031, allocations: 3.762 MB / 472.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01273/0.5159, allocations: 5.49 MB / 478.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003086/0.5162, allocations: 373.2 kB / 478.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001599/0.5178, allocations: 0.511 MB / 479.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0314/0.5492, allocations: 16.31 MB / 495.4 MB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002751/0.5496, allocations: 75.31 kB / 495.4 MB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007907/0.5504, allocations: 238.9 kB / 495.7 MB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005116/0.5555, allocations: 2.921 MB / 498.6 MB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0298/0.5853, allocations: 13.76 MB / 0.5004 GB, free: 9.262 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.293/0.8784, allocations: 64.84 MB / 0.5637 GB, free: 122.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02306/0.9015, allocations: 7.976 MB / 0.5715 GB, free: 122.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00565/0.9072, allocations: 4.342 MB / 0.5757 GB, free: 120.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02688/0.9341, allocations: 19.37 MB / 0.5946 GB, free: 108.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/0.9342, allocations: 69.06 kB / 0.5947 GB, free: 108.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 6.622e-06/0.9342, allocations: 0 / 0.5947 GB, free: 108.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.1573/1.092, allocations: 50.59 MB / 0.6441 GB, free: 60.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.873e-05/1.092, allocations: 277.4 kB / 0.6444 GB, free: 59.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00779/1.099, allocations: 6.085 MB / 0.6503 GB, free: 53.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000862/1.1, allocations: 77.7 kB / 0.6504 GB, free: 53.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002619/1.103, allocations: 4.68 MB / 0.6549 GB, free: 49.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001556/1.105, allocations: 1.371 MB / 0.6563 GB, free: 47.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00117/1.106, allocations: 0.8202 MB / 0.6571 GB, free: 46.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.234e-05/1.106, allocations: 305.1 kB / 0.6574 GB, free: 46.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005559/1.111, allocations: 4.224 MB / 0.6615 GB, free: 42.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007862/1.119, allocations: 9.455 MB / 0.6707 GB, free: 30.44 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01658/1.136, allocations: 14.63 MB / 0.685 GB, free: 13.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002225/1.136, allocations: 52 kB / 0.6851 GB, free: 13.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03721/1.173, allocations: 17.61 MB / 0.7023 GB, free: 11.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/1.174, allocations: 80 kB / 0.7023 GB, free: 11.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002382/1.174, allocations: 183.9 kB / 0.7025 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01537/1.189, allocations: 4.588 MB / 0.707 GB, free: 6.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007925/1.197, allocations: 2.125 MB / 0.7091 GB, free: 4.621 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2287/1.426, allocations: 23.75 MB / 0.7323 GB, free: 151.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007376/1.433, allocations: 0.5292 MB / 0.7328 GB, free: 151.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00147/1.435, allocations: 0.5376 MB / 0.7333 GB, free: 151.1 MB / 462.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.005977/1.441, allocations: 3.127 MB / 0.7364 GB, free: 150 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001312/1.442, allocations: 0.5654 MB / 0.7369 GB, free: 150 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02165/1.464, allocations: 10.76 MB / 0.7474 GB, free: 146.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.116e-05/1.464, allocations: 38.94 kB / 0.7475 GB, free: 146.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.255e-05/1.464, allocations: 15.56 kB / 0.7475 GB, free: 146.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-05/1.464, allocations: 18.52 kB / 0.7475 GB, free: 146.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03746/1.501, allocations: 20.56 MB / 0.7676 GB, free: 131.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.313e-05/1.502, allocations: 3.938 kB / 0.7676 GB, free: 131.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00278/1.504, allocations: 0.5342 MB / 0.7681 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01303/1.517, allocations: 4.228 MB / 0.7722 GB, free: 127.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007433/1.518, allocations: 64.69 kB / 0.7723 GB, free: 127.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02708/1.545, allocations: 21.57 MB / 0.7933 GB, free: 105.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.545, allocations: 7.984 kB / 0.7933 GB, free: 105.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02612/1.571, allocations: 15.67 MB / 0.8087 GB, free: 90.06 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003258/1.575, allocations: 1.189 MB / 0.8098 GB, free: 88.84 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001383/1.576, allocations: 60 kB / 0.8099 GB, free: 88.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003154/1.579, allocations: 223.8 kB / 0.8101 GB, free: 88.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008182/1.58, allocations: 230.2 kB / 0.8103 GB, free: 88.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002522/1.58, allocations: 94.56 kB / 0.8104 GB, free: 88.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00527/1.586, allocations: 3.808 MB / 0.8141 GB, free: 84.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.586, allocations: 0 / 0.8141 GB, free: 84.45 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009806/1.596, allocations: 1.939 MB / 0.816 GB, free: 82.52 MB / 462.1 MB 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.0009276/1.596, allocations: 216.1 kB / 0.8162 GB, free: 82.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01582/1.612, allocations: 10.5 MB / 0.8265 GB, free: 71.85 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/1.612, allocations: 3.75 kB / 0.8265 GB, free: 71.85 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005797/1.618, allocations: 4.127 MB / 0.8305 GB, free: 67.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005445/1.624, allocations: 0.7241 MB / 0.8312 GB, free: 66.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02562/1.649, allocations: 19.8 MB / 0.8506 GB, free: 47.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005578/1.655, allocations: 4.879 MB / 0.8553 GB, free: 42.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006913/1.662, allocations: 2.789 MB / 0.858 GB, free: 39.49 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001246/1.663, allocations: 379.4 kB / 0.8584 GB, free: 39.12 MB / 462.1 MB Notification: Performance of SimCode: time 2.455e-06/1.663, allocations: 3.938 kB / 0.8584 GB, free: 39.12 MB / 462.1 MB Notification: Performance of Templates: time 0.3226/1.986, allocations: 80.34 MB / 0.9369 GB, free: 113.6 MB / 462.1 MB 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)