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.00129/0.00129, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001445/0.001445, allocations: 194.7 kB / 16.14 MB, free: 6.66 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.334/1.334, allocations: 205.1 MB / 222 MB, free: 4.996 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.001207/0.001207, allocations: 51.94 kB / 278.1 MB, free: 12.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2269, allocations: 46.62 MB / 324.7 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.07093/0.2979, allocations: 73.23 MB / 397.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03212/0.33, allocations: 14.7 MB / 412.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01255/0.3427, allocations: 331.1 kB / 412.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009741/0.3525, allocations: 4.348 MB / 417.3 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008133/0.3607, allocations: 2.604 MB / 419.9 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003163/0.3638, allocations: 1.354 MB / 421.2 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01341/0.3773, allocations: 11.44 MB / 432.7 MB, free: 7.824 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007092/0.3844, allocations: 5.29 MB / 438 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003918/0.3883, allocations: 2.417 MB / 440.4 MB, free: 36 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004754/0.3931, allocations: 4.109 MB / 444.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008832/0.394, allocations: 391.9 kB / 444.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002775/0.3968, allocations: 1.537 MB / 446.4 MB, free: 9.992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002786/0.3996, allocations: 3.238 MB / 449.7 MB, free: 6.746 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004069/0.4037, allocations: 3.522 MB / 453.2 MB, free: 3.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2404/0.644, allocations: 10.74 MB / 463.9 MB, free: 20.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.6441, allocations: 3.047 kB / 463.9 MB, free: 20.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.6441, allocations: 0.9062 kB / 463.9 MB, free: 20.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000487/0.6446, allocations: 0 / 463.9 MB, free: 20.16 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.02813/0.6727, allocations: 8.231 MB / 472.2 MB, free: 17.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.6728, allocations: 9.562 kB / 472.2 MB, free: 17.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02678/0.6996, allocations: 3.679 MB / 475.8 MB, free: 16.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01462/0.7143, allocations: 5.492 MB / 481.3 MB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003117/0.7146, allocations: 368.8 kB / 481.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003221/0.7178, allocations: 0.5119 MB / 482.2 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.032/0.7499, allocations: 16.24 MB / 498.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002594/0.7502, allocations: 85.27 kB / 498.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007886/0.751, allocations: 234.1 kB / 498.8 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003803/0.7548, allocations: 2.928 MB / 0.4899 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02805/0.7828, allocations: 13.7 MB / 0.5033 GB, free: 0.6719 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.08991/0.8728, allocations: 64.84 MB / 0.5666 GB, free: 14.85 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02245/0.8953, allocations: 7.873 MB / 0.5743 GB, free: 6.852 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006057/0.9014, allocations: 4.342 MB / 0.5786 GB, free: 2.488 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02938/0.9308, allocations: 19.38 MB / 0.5975 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000101/0.9309, allocations: 71.64 kB / 0.5975 GB, free: 14.57 MB / 494.1 MB Notification: Performance of pre-optimization done (n=290): time 5.941e-06/0.9309, allocations: 0 / 0.5975 GB, free: 14.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=372): time 0.3756/1.307, allocations: 49.89 MB / 0.6463 GB, free: 219.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/1.307, allocations: 276.5 kB / 0.6465 GB, free: 219.2 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009843/1.317, allocations: 6.097 MB / 0.6525 GB, free: 217.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001288/1.318, allocations: 82.03 kB / 0.6526 GB, free: 217 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002862/1.321, allocations: 4.673 MB / 0.6571 GB, free: 213.4 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001687/1.322, allocations: 1.373 MB / 0.6585 GB, free: 212.4 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002598/1.325, allocations: 1.908 MB / 0.6603 GB, free: 211.5 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.33e-05/1.325, allocations: 301.1 kB / 0.6606 GB, free: 211.2 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005251/1.33, allocations: 4.227 MB / 0.6647 GB, free: 208.1 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00746/1.338, allocations: 9.461 MB / 0.674 GB, free: 197.1 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01524/1.353, allocations: 14.63 MB / 0.6883 GB, free: 180.3 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001788/1.353, allocations: 52 kB / 0.6883 GB, free: 180.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03716/1.39, allocations: 17.56 MB / 0.7055 GB, free: 162.7 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001084/1.391, allocations: 83.17 kB / 0.7055 GB, free: 162.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001756/1.391, allocations: 180 kB / 0.7057 GB, free: 162.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01405/1.405, allocations: 4.552 MB / 0.7102 GB, free: 157.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007873/1.413, allocations: 2.125 MB / 0.7122 GB, free: 155.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02923/1.442, allocations: 23.64 MB / 0.7353 GB, free: 131.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008758/1.451, allocations: 0.5274 MB / 0.7358 GB, free: 131.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002371/1.453, allocations: 0.5369 MB / 0.7364 GB, free: 130.8 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.007626/1.461, allocations: 3.125 MB / 0.7394 GB, free: 127.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001365/1.462, allocations: 0.5707 MB / 0.74 GB, free: 127.1 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02041/1.483, allocations: 10.71 MB / 0.7504 GB, free: 116.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.357e-05/1.483, allocations: 36 kB / 0.7505 GB, free: 116.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.29e-05/1.483, allocations: 20 kB / 0.7505 GB, free: 116.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000116/1.483, allocations: 15.94 kB / 0.7505 GB, free: 116.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04117/1.524, allocations: 20.52 MB / 0.7705 GB, free: 95.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.344e-05/1.524, allocations: 8 kB / 0.7705 GB, free: 95.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003001/1.527, allocations: 0.5344 MB / 0.7711 GB, free: 95.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0128/1.54, allocations: 4.183 MB / 0.7752 GB, free: 90.86 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000792/1.541, allocations: 63.98 kB / 0.7752 GB, free: 90.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0264/1.567, allocations: 21.49 MB / 0.7962 GB, free: 69.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.567, allocations: 0 / 0.7962 GB, free: 69.04 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02556/1.593, allocations: 15.63 MB / 0.8115 GB, free: 53.33 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00371/1.597, allocations: 1.185 MB / 0.8126 GB, free: 52.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001479/1.598, allocations: 64 kB / 0.8127 GB, free: 52.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003217/1.601, allocations: 219.6 kB / 0.8129 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008295/1.602, allocations: 226.1 kB / 0.8131 GB, free: 51.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002854/1.603, allocations: 91.98 kB / 0.8132 GB, free: 51.53 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005304/1.608, allocations: 3.801 MB / 0.8169 GB, free: 47.73 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.91e-07/1.608, allocations: 0 / 0.8169 GB, free: 47.73 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01052/1.618, allocations: 1.944 MB / 0.8188 GB, free: 45.79 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.001042/1.619, allocations: 213.4 kB / 0.819 GB, free: 45.58 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01579/1.635, allocations: 10.5 MB / 0.8293 GB, free: 35.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/1.635, allocations: 0 / 0.8293 GB, free: 35.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005514/1.641, allocations: 4.121 MB / 0.8333 GB, free: 30.91 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004682/1.646, allocations: 0.7329 MB / 0.834 GB, free: 30.18 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2212/1.867, allocations: 19.7 MB / 0.8532 GB, free: 203 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007401/1.874, allocations: 4.88 MB / 0.858 GB, free: 202.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008613/1.883, allocations: 2.792 MB / 0.8607 GB, free: 202 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001999/1.885, allocations: 382.2 kB / 0.8611 GB, free: 201.9 MB / 0.4981 GB Notification: Performance of SimCode: time 1.443e-06/1.885, allocations: 0 / 0.8611 GB, free: 201.9 MB / 0.4981 GB Notification: Performance of Templates: time 0.1447/2.03, allocations: 81.65 MB / 0.9408 GB, free: 131.3 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)