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.0008919/0.0008921, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009045/0.0009046, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.4 MB / 222.1 MB, free: 5.633 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.0004166/0.0004166, allocations: 12 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2024, allocations: 47.59 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.07011/0.2726, allocations: 66.42 MB / 392.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03196/0.3046, allocations: 14 MB / 406.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01196/0.3166, allocations: 323.1 kB / 407.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01025/0.3269, allocations: 3.429 MB / 410.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02643/0.3534, allocations: 10.2 MB / 420.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004697/0.3581, allocations: 1.283 MB / 422.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2179/0.576, allocations: 37.32 MB / 459.5 MB, free: 34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01024/0.5863, allocations: 6.389 MB / 465.8 MB, free: 33.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00477/0.5911, allocations: 2.261 MB / 468.1 MB, free: 33.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005864/0.597, allocations: 3.693 MB / 471.8 MB, free: 33.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001249/0.5983, allocations: 249.2 kB / 472 MB, free: 33.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003255/0.6016, allocations: 1.194 MB / 473.2 MB, free: 33.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002857/0.6044, allocations: 3.002 MB / 476.2 MB, free: 33.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001779/0.6062, allocations: 1.309 MB / 477.5 MB, free: 33.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007381/0.6136, allocations: 8.533 MB / 486.1 MB, free: 31.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.6136, allocations: 1.75 kB / 486.1 MB, free: 31.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.6137, allocations: 0 / 486.1 MB, free: 31.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003175/0.614, allocations: 3.219 kB / 486.1 MB, free: 31.39 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.0132/0.6272, allocations: 6.921 MB / 493 MB, free: 27.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.6272, allocations: 8.812 kB / 493 MB, free: 27.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0237/0.6509, allocations: 3.761 MB / 496.8 MB, free: 25.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/0.6625, allocations: 5.395 MB / 0.4904 GB, free: 23.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002782/0.6628, allocations: 366.7 kB / 0.4908 GB, free: 22.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001731/0.6645, allocations: 0.5124 MB / 0.4913 GB, free: 22.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02368/0.6882, allocations: 16.26 MB / 0.5071 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001759/0.6885, allocations: 87.14 kB / 0.5072 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005962/0.6891, allocations: 240.6 kB / 0.5074 GB, free: 9.523 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003574/0.6926, allocations: 2.919 MB / 0.5103 GB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0251/0.7177, allocations: 13.72 MB / 0.5237 GB, free: 13.43 MB / 398.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.08919/0.807, allocations: 64.8 MB / 0.587 GB, free: 4.289 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02363/0.8307, allocations: 7.972 MB / 0.5948 GB, free: 12.19 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006642/0.8373, allocations: 4.341 MB / 0.599 GB, free: 7.828 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03277/0.8701, allocations: 19.36 MB / 0.6179 GB, free: 4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.39e-05/0.8703, allocations: 68.55 kB / 0.618 GB, free: 3.922 MB / 478.1 MB Notification: Performance of pre-optimization done (n=290): time 6.683e-06/0.8703, allocations: 0 / 0.618 GB, free: 3.922 MB / 478.1 MB Notification: Performance of matching and sorting (n=372): time 0.3274/1.198, allocations: 50.55 MB / 0.6673 GB, free: 169.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.718e-05/1.198, allocations: 273.8 kB / 0.6676 GB, free: 169.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00755/1.205, allocations: 6.049 MB / 0.6735 GB, free: 163.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000777/1.206, allocations: 91.72 kB / 0.6736 GB, free: 163.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002103/1.208, allocations: 4.672 MB / 0.6781 GB, free: 158.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001293/1.21, allocations: 1.378 MB / 0.6795 GB, free: 157.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004687/1.21, allocations: 191.9 kB / 0.6797 GB, free: 157.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003391/1.21, allocations: 0.7112 MB / 0.6804 GB, free: 156.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005099/1.216, allocations: 4.188 MB / 0.6845 GB, free: 152.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007226/1.223, allocations: 9.41 MB / 0.6936 GB, free: 140.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008241/1.231, allocations: 6.074 MB / 0.6996 GB, free: 134.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.723e-05/1.231, allocations: 52 kB / 0.6996 GB, free: 134.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.0346/1.266, allocations: 17.51 MB / 0.7167 GB, free: 116.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001217/1.266, allocations: 80 kB / 0.7168 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001969/1.266, allocations: 180.9 kB / 0.717 GB, free: 116.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01273/1.279, allocations: 4.609 MB / 0.7215 GB, free: 111.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006729/1.286, allocations: 2.125 MB / 0.7236 GB, free: 109.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02856/1.314, allocations: 23.74 MB / 0.7467 GB, free: 85.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008054/1.322, allocations: 0.5266 MB / 0.7473 GB, free: 85.07 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002748/1.325, allocations: 0.5404 MB / 0.7478 GB, free: 84.53 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(2,100.0%) 50} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00637/1.332, allocations: 3.129 MB / 0.7508 GB, free: 81.38 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.333, allocations: 0.567 MB / 0.7514 GB, free: 80.81 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02004/1.353, allocations: 10.73 MB / 0.7619 GB, free: 70.02 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.385e-05/1.353, allocations: 36 kB / 0.7619 GB, free: 69.98 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.28e-05/1.353, allocations: 16 kB / 0.7619 GB, free: 69.97 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.587e-05/1.353, allocations: 23.88 kB / 0.7619 GB, free: 69.95 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03613/1.389, allocations: 20.54 MB / 0.782 GB, free: 49.29 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.701e-05/1.389, allocations: 0 / 0.782 GB, free: 49.29 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002788/1.392, allocations: 0.5343 MB / 0.7825 GB, free: 48.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01213/1.404, allocations: 4.218 MB / 0.7866 GB, free: 44.52 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000765/1.405, allocations: 65.39 kB / 0.7867 GB, free: 44.46 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2102/1.615, allocations: 21.53 MB / 0.8077 GB, free: 170.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.615, allocations: 2.156 kB / 0.8077 GB, free: 170.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02634/1.641, allocations: 15.64 MB / 0.823 GB, free: 168.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00291/1.644, allocations: 1.191 MB / 0.8242 GB, free: 167.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001034/1.645, allocations: 60.78 kB / 0.8242 GB, free: 167.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002584/1.648, allocations: 220.3 kB / 0.8244 GB, free: 167.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006288/1.649, allocations: 229.9 kB / 0.8246 GB, free: 167.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000262/1.649, allocations: 99.31 kB / 0.8247 GB, free: 167.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005709/1.655, allocations: 3.766 MB / 0.8284 GB, free: 166.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.51e-07/1.655, allocations: 0 / 0.8284 GB, free: 166.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00973/1.664, allocations: 1.938 MB / 0.8303 GB, free: 166.1 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00106/1.665, allocations: 218 kB / 0.8305 GB, free: 166 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01408/1.68, allocations: 10.45 MB / 0.8407 GB, free: 162.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/1.68, allocations: 3 kB / 0.8407 GB, free: 162.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005011/1.685, allocations: 4.115 MB / 0.8448 GB, free: 160.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004056/1.689, allocations: 0.7425 MB / 0.8455 GB, free: 159.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02382/1.713, allocations: 19.03 MB / 0.8641 GB, free: 142.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00435/1.717, allocations: 4.874 MB / 0.8688 GB, free: 138.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006441/1.723, allocations: 2.794 MB / 0.8715 GB, free: 137.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/1.725, allocations: 382 kB / 0.8719 GB, free: 136.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.854e-06/1.725, allocations: 4 kB / 0.8719 GB, free: 136.8 MB / 478.1 MB Notification: Performance of Templates: time 0.1084/1.833, allocations: 78.66 MB / 0.9487 GB, free: 58.13 MB / 478.1 MB 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)