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.007722/0.007722, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001906/0.001907, allocations: 190.7 kB / 16.67 MB, free: 5.953 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.501/1.501, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001171/0.001171, allocations: 59.31 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1076, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01945/0.1271, allocations: 17.34 MB / 390.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01489/0.142, allocations: 5.491 MB / 396 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004014/0.1462, allocations: 119.6 kB / 396.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009076/0.1553, allocations: 4.368 MB / 400.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009157/0.1645, allocations: 2.758 MB / 403.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004211/0.1687, allocations: 1.466 MB / 404.7 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01379/0.1825, allocations: 8.141 MB / 412.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008819/0.1914, allocations: 5.395 MB / 418.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006125/0.1976, allocations: 2.687 MB / 420.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006726/0.2043, allocations: 3.86 MB / 424.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002339/0.2067, allocations: 0.5352 MB / 425.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006023/0.2127, allocations: 1.619 MB / 427 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005151/0.2179, allocations: 3.347 MB / 430.3 MB, free: 7.926 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007562/0.2255, allocations: 3.67 MB / 434 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01548/0.241, allocations: 11.23 MB / 445.2 MB, free: 8.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.2411, allocations: 4 kB / 445.2 MB, free: 8.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2411, allocations: 0 / 445.2 MB, free: 8.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004433/0.2416, allocations: 0 / 445.2 MB, free: 8.965 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.02449/0.2661, allocations: 8.218 MB / 453.4 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.2661, allocations: 12.03 kB / 453.4 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2563/0.5224, allocations: 3.677 MB / 457.1 MB, free: 65.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0148/0.5373, allocations: 5.599 MB / 462.7 MB, free: 64.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003293/0.5376, allocations: 367.2 kB / 463.1 MB, free: 64.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00184/0.5395, allocations: 0.5074 MB / 463.6 MB, free: 64.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02795/0.5674, allocations: 16.25 MB / 479.8 MB, free: 53.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002139/0.5677, allocations: 83.2 kB / 479.9 MB, free: 52.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000746/0.5685, allocations: 239.2 kB / 480.1 MB, free: 52.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003756/0.5722, allocations: 2.923 MB / 483.1 MB, free: 49.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02543/0.5977, allocations: 13.72 MB / 496.8 MB, free: 36.13 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.08073/0.6784, allocations: 64.56 MB / 0.5482 GB, free: 1.852 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02565/0.7041, allocations: 7.849 MB / 0.5558 GB, free: 9.848 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008758/0.7129, allocations: 4.353 MB / 0.5601 GB, free: 5.477 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04931/0.7623, allocations: 19.36 MB / 0.579 GB, free: 1.512 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.386e-05/0.7624, allocations: 74.19 kB / 0.5791 GB, free: 1.434 MB / 446.1 MB Notification: Performance of pre-optimization done (n=290): time 5.721e-06/0.7624, allocations: 0 / 0.5791 GB, free: 1.434 MB / 446.1 MB Notification: Performance of matching and sorting (n=372): time 0.3721/1.135, allocations: 49.9 MB / 0.6278 GB, free: 160.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/1.135, allocations: 273.2 kB / 0.6281 GB, free: 160.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01063/1.145, allocations: 6.095 MB / 0.634 GB, free: 159.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001017/1.146, allocations: 79.27 kB / 0.6341 GB, free: 159.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003122/1.15, allocations: 4.679 MB / 0.6387 GB, free: 156.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001749/1.151, allocations: 1.375 MB / 0.64 GB, free: 155.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00305/1.154, allocations: 1.912 MB / 0.6419 GB, free: 154.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.519e-05/1.154, allocations: 305.7 kB / 0.6422 GB, free: 154.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00696/1.161, allocations: 4.218 MB / 0.6463 GB, free: 152.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009945/1.171, allocations: 9.462 MB / 0.6555 GB, free: 144.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01501/1.186, allocations: 14.63 MB / 0.6698 GB, free: 133.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001934/1.187, allocations: 54.69 kB / 0.6699 GB, free: 133.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.0374/1.224, allocations: 17.54 MB / 0.687 GB, free: 122.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001227/1.224, allocations: 87.98 kB / 0.6871 GB, free: 122 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002128/1.224, allocations: 186.5 kB / 0.6873 GB, free: 121.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01392/1.238, allocations: 4.548 MB / 0.6917 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007648/1.246, allocations: 2.125 MB / 0.6938 GB, free: 115.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03073/1.277, allocations: 25.37 MB / 0.7185 GB, free: 89.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01095/1.288, allocations: 0.5267 MB / 0.7191 GB, free: 88.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001948/1.29, allocations: 0.5351 MB / 0.7196 GB, free: 88.45 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.005926/1.296, allocations: 3.127 MB / 0.7226 GB, free: 85.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001597/1.297, allocations: 0.5746 MB / 0.7232 GB, free: 84.72 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02112/1.319, allocations: 10.71 MB / 0.7337 GB, free: 73.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.087e-05/1.319, allocations: 39.94 kB / 0.7337 GB, free: 73.91 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-05/1.319, allocations: 20 kB / 0.7337 GB, free: 73.89 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000138/1.319, allocations: 15.94 kB / 0.7337 GB, free: 73.88 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03979/1.359, allocations: 20.37 MB / 0.7536 GB, free: 53.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.722e-05/1.359, allocations: 8 kB / 0.7536 GB, free: 53.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003046/1.362, allocations: 0.5309 MB / 0.7541 GB, free: 52.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01226/1.374, allocations: 4.187 MB / 0.7582 GB, free: 48.78 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009502/1.375, allocations: 63.98 kB / 0.7583 GB, free: 48.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02712/1.402, allocations: 23.13 MB / 0.7809 GB, free: 25.31 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/1.402, allocations: 7.938 kB / 0.7809 GB, free: 25.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02589/1.428, allocations: 15.64 MB / 0.7962 GB, free: 9.57 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003976/1.432, allocations: 1.181 MB / 0.7973 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001391/1.434, allocations: 59.94 kB / 0.7974 GB, free: 8.305 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003349/1.437, allocations: 215.7 kB / 0.7976 GB, free: 8.094 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007909/1.438, allocations: 230.1 kB / 0.7978 GB, free: 7.867 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002623/1.438, allocations: 99.5 kB / 0.7979 GB, free: 7.773 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004981/1.443, allocations: 3.809 MB / 0.8016 GB, free: 3.969 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.91e-07/1.443, allocations: 0 / 0.8016 GB, free: 3.969 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009254/1.452, allocations: 1.935 MB / 0.8035 GB, free: 2.039 MB / 494.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.0006968/1.453, allocations: 222 kB / 0.8037 GB, free: 1.824 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2274/1.681, allocations: 10.52 MB / 0.814 GB, free: 167.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/1.681, allocations: 0.8438 kB / 0.814 GB, free: 167.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.006631/1.687, allocations: 4.12 MB / 0.818 GB, free: 167.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004779/1.692, allocations: 0.7812 MB / 0.8188 GB, free: 166.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02619/1.718, allocations: 16.28 MB / 0.8347 GB, free: 160.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005192/1.723, allocations: 4.883 MB / 0.8394 GB, free: 158.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005958/1.729, allocations: 2.787 MB / 0.8422 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001315/1.731, allocations: 386.1 kB / 0.8425 GB, free: 158.4 MB / 0.4981 GB Notification: Performance of SimCode: time 7.72e-07/1.731, allocations: 0 / 0.8425 GB, free: 158.4 MB / 0.4981 GB Notification: Performance of Templates: time 0.1218/1.853, allocations: 80.27 MB / 0.9209 GB, free: 79.5 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)