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.001073/0.001073, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.001142/0.001142, allocations: 198.7 kB / 16.25 MB, free: 6.621 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.304/1.304, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.001101/0.001101, allocations: 51.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1925, allocations: 46.62 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.06232/0.2548, allocations: 73.24 MB / 398.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03107/0.2859, allocations: 14.6 MB / 412.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0164/0.3024, allocations: 323.2 kB / 413 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008597/0.3111, allocations: 4.196 MB / 417.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00685/0.3179, allocations: 2.573 MB / 419.8 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003234/0.3212, allocations: 1.381 MB / 421.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01186/0.3331, allocations: 8.367 MB / 429.5 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008737/0.3418, allocations: 5.675 MB / 435.2 MB, free: 5.312 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005895/0.3478, allocations: 2.761 MB / 438 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006697/0.3545, allocations: 4.269 MB / 442.2 MB, free: 14.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002874/0.3574, allocations: 0.5391 MB / 442.8 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005027/0.3625, allocations: 1.635 MB / 444.4 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00581/0.3683, allocations: 3.398 MB / 447.8 MB, free: 8.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006243/0.3746, allocations: 3.698 MB / 451.5 MB, free: 4.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2467/0.6213, allocations: 10.96 MB / 462.4 MB, free: 20.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.408e-06/0.6214, allocations: 0 / 462.4 MB, free: 20.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.6214, allocations: 1.125 kB / 462.4 MB, free: 20.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006188/0.6221, allocations: 0 / 462.4 MB, free: 20.83 MB / 382.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.03346/0.6555, allocations: 8.236 MB / 470.7 MB, free: 17.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.6556, allocations: 10 kB / 470.7 MB, free: 17.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02904/0.6846, allocations: 3.677 MB / 474.4 MB, free: 17.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01489/0.6996, allocations: 5.493 MB / 479.9 MB, free: 16.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003357/0.7, allocations: 366.2 kB / 480.2 MB, free: 16.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003379/0.7034, allocations: 0.5208 MB / 480.7 MB, free: 16.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03301/0.7364, allocations: 16.24 MB / 497 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003832/0.7368, allocations: 78.03 kB / 497.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00169/0.7385, allocations: 234.7 kB / 497.3 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004261/0.7428, allocations: 2.926 MB / 0.4885 GB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02788/0.7707, allocations: 13.71 MB / 0.5019 GB, free: 0.6406 MB / 382.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.08446/0.8552, allocations: 64.85 MB / 0.5652 GB, free: 14.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0222/0.8774, allocations: 7.863 MB / 0.5729 GB, free: 6.828 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005806/0.8833, allocations: 4.346 MB / 0.5771 GB, free: 2.465 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02912/0.9124, allocations: 19.37 MB / 0.596 GB, free: 14.62 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.902e-05/0.9125, allocations: 69.3 kB / 0.5961 GB, free: 14.55 MB / 494.1 MB Notification: Performance of pre-optimization done (n=290): time 4.829e-06/0.9125, allocations: 0 / 0.5961 GB, free: 14.55 MB / 494.1 MB Notification: Performance of matching and sorting (n=372): time 0.4018/1.314, allocations: 49.9 MB / 0.6448 GB, free: 219.8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.858e-05/1.314, allocations: 272.5 kB / 0.6451 GB, free: 219.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01116/1.326, allocations: 6.087 MB / 0.651 GB, free: 217.3 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001217/1.327, allocations: 85.34 kB / 0.6511 GB, free: 217.3 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00398/1.331, allocations: 4.673 MB / 0.6557 GB, free: 213.7 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002625/1.334, allocations: 1.372 MB / 0.657 GB, free: 212.7 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003679/1.337, allocations: 1.908 MB / 0.6589 GB, free: 211.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.286e-05/1.337, allocations: 304.8 kB / 0.6592 GB, free: 211.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005888/1.343, allocations: 4.219 MB / 0.6633 GB, free: 208.4 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01007/1.353, allocations: 9.463 MB / 0.6725 GB, free: 197.4 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01608/1.369, allocations: 14.64 MB / 0.6868 GB, free: 180.5 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00022/1.37, allocations: 52 kB / 0.6869 GB, free: 180.4 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.04321/1.413, allocations: 17.56 MB / 0.704 GB, free: 162.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002744/1.413, allocations: 80 kB / 0.7041 GB, free: 162.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000374/1.414, allocations: 184 kB / 0.7043 GB, free: 162.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01432/1.428, allocations: 4.559 MB / 0.7087 GB, free: 158 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007305/1.435, allocations: 2.125 MB / 0.7108 GB, free: 155.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03263/1.468, allocations: 25.39 MB / 0.7356 GB, free: 130.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01081/1.479, allocations: 0.5227 MB / 0.7361 GB, free: 129.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003195/1.482, allocations: 0.5429 MB / 0.7367 GB, free: 129.1 MB / 0.4981 GB 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.008646/1.491, allocations: 3.127 MB / 0.7397 GB, free: 126 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001918/1.493, allocations: 0.5631 MB / 0.7403 GB, free: 125.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02324/1.516, allocations: 10.71 MB / 0.7507 GB, free: 114.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.188e-05/1.516, allocations: 43.94 kB / 0.7508 GB, free: 114.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-05/1.516, allocations: 16 kB / 0.7508 GB, free: 114.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.938e-05/1.516, allocations: 20.81 kB / 0.7508 GB, free: 114.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03851/1.555, allocations: 20.52 MB / 0.7708 GB, free: 93.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.753e-05/1.555, allocations: 4 kB / 0.7708 GB, free: 93.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002873/1.558, allocations: 0.5421 MB / 0.7714 GB, free: 93.42 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01182/1.569, allocations: 4.195 MB / 0.7755 GB, free: 89.21 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001053/1.571, allocations: 64.45 kB / 0.7755 GB, free: 89.15 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02646/1.597, allocations: 23.15 MB / 0.7981 GB, free: 65.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.597, allocations: 0 / 0.7981 GB, free: 65.71 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02692/1.624, allocations: 15.64 MB / 0.8134 GB, free: 50 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004138/1.628, allocations: 1.181 MB / 0.8146 GB, free: 48.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001943/1.63, allocations: 59.94 kB / 0.8146 GB, free: 48.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00371/1.634, allocations: 219.6 kB / 0.8148 GB, free: 48.52 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009/1.635, allocations: 226.2 kB / 0.815 GB, free: 48.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002774/1.635, allocations: 95.98 kB / 0.8151 GB, free: 48.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006881/1.642, allocations: 3.805 MB / 0.8188 GB, free: 44.4 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.52e-07/1.642, allocations: 4 kB / 0.8188 GB, free: 44.4 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0112/1.653, allocations: 1.934 MB / 0.8207 GB, free: 42.47 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.001033/1.654, allocations: 216.7 kB / 0.8209 GB, free: 42.25 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.02421/1.679, allocations: 15.43 MB / 0.836 GB, free: 26.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/1.679, allocations: 0 / 0.836 GB, free: 26.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.1922/1.871, allocations: 4.116 MB / 0.84 GB, free: 212.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006342/1.877, allocations: 0.7735 MB / 0.8408 GB, free: 212.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03691/1.914, allocations: 19.7 MB / 0.86 GB, free: 205.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01001/1.924, allocations: 4.879 MB / 0.8648 GB, free: 204.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008372/1.933, allocations: 2.787 MB / 0.8675 GB, free: 203.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001671/1.934, allocations: 386.4 kB / 0.8679 GB, free: 203.9 MB / 0.4981 GB Notification: Performance of SimCode: time 1.332e-06/1.934, allocations: 0 / 0.8679 GB, free: 203.9 MB / 0.4981 GB Notification: Performance of Templates: time 0.147/2.081, allocations: 84.88 MB / 0.9508 GB, free: 122.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)