Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000961/0.000961, allocations: 79.91 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009429/0.0009429, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9198/0.9198, allocations: 173.4 MB / 201.2 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.935e-05/2.096e-05, allocations: 6.25 kB / 268 MB, free: 6.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01248/0.0125, allocations: 16.77 MB / 284.8 MB, free: 5.543 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008167/0.02067, allocations: 5.4 MB / 290.2 MB, free: 128 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.126/0.1467, allocations: 138.7 kB / 290.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007248/0.1539, allocations: 4.692 MB / 295 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006961/0.1609, allocations: 2.945 MB / 298 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002727/0.1636, allocations: 1.66 MB / 299.6 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009539/0.1732, allocations: 9.736 MB / 309.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004904/0.1781, allocations: 5.599 MB / 315 MB, free: 6.801 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004342/0.1824, allocations: 4.164 MB / 319.1 MB, free: 3.027 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003987/0.1864, allocations: 4.49 MB / 323.6 MB, free: 14.86 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008376/0.1872, allocations: 0.5578 MB / 324.2 MB, free: 14.31 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00239/0.1896, allocations: 1.607 MB / 325.8 MB, free: 12.78 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002934/0.1926, allocations: 3.652 MB / 329.4 MB, free: 9.234 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002295/0.1949, allocations: 2.23 MB / 331.7 MB, free: 7.102 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007833/0.2027, allocations: 7.649 MB / 339.3 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.2027, allocations: 3.984 kB / 339.3 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2027, allocations: 0 / 339.3 MB, free: 15.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001812/0.2029, allocations: 0 / 339.3 MB, free: 15.93 MB / 298.7 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.01333/0.2162, allocations: 8.979 MB / 348.3 MB, free: 7.012 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.2162, allocations: 8.922 kB / 348.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01833/0.2346, allocations: 4.555 MB / 352.9 MB, free: 2.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0107/0.2453, allocations: 4.733 MB / 357.6 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003684/0.2457, allocations: 382.2 kB / 358 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001391/0.247, allocations: 0.5158 MB / 358.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01858/0.2656, allocations: 10.27 MB / 368.8 MB, free: 1.703 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001479/0.2658, allocations: 75.36 kB / 368.8 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004592/0.2662, allocations: 232.9 kB / 369.1 MB, free: 1.484 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002712/0.2689, allocations: 2.921 MB / 372 MB, free: 14.6 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/0.2802, allocations: 5.807 MB / 377.8 MB, free: 8.785 MB / 330.7 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.1737/0.4539, allocations: 68.34 MB / 446.1 MB, free: 65.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.011/0.4649, allocations: 4.968 MB / 451.1 MB, free: 64.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/0.4667, allocations: 1.468 MB / 452.6 MB, free: 64.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01269/0.4794, allocations: 11.16 MB / 463.7 MB, free: 62.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/0.4794, allocations: 73.11 kB / 463.8 MB, free: 62.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=290): time 4.909e-06/0.4794, allocations: 0 / 463.8 MB, free: 62.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=372): time 0.06755/0.547, allocations: 33.19 MB / 497 MB, free: 39.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.552e-05/0.547, allocations: 272.7 kB / 497.2 MB, free: 39.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005747/0.5528, allocations: 5.3 MB / 0.4908 GB, free: 33.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003772/0.5532, allocations: 81.7 kB / 0.4908 GB, free: 33.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00208/0.5552, allocations: 5.07 MB / 0.4958 GB, free: 29.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001075/0.5563, allocations: 1.471 MB / 0.4972 GB, free: 27.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00211/0.5584, allocations: 1.996 MB / 0.4992 GB, free: 25.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.371e-05/0.5585, allocations: 476.8 kB / 0.4996 GB, free: 25.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002639/0.5611, allocations: 1.436 MB / 0.501 GB, free: 23.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00485/0.5659, allocations: 9.231 MB / 0.5101 GB, free: 11.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01011/0.576, allocations: 11.7 MB / 0.5215 GB, free: 12.56 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001215/0.5762, allocations: 55.94 kB / 0.5215 GB, free: 12.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=1253) (initialization): time 0.02109/0.5973, allocations: 11.31 MB / 0.5326 GB, free: 1.156 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.892e-05/0.5974, allocations: 84 kB / 0.5327 GB, free: 1.074 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001529/0.5975, allocations: 180.9 kB / 0.5328 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008719/0.6062, allocations: 3.751 MB / 0.5365 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004519/0.6107, allocations: 2.125 MB / 0.5386 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0154/0.6261, allocations: 11.29 MB / 0.5496 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005192/0.6313, allocations: 0.6204 MB / 0.5502 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007185/0.6321, allocations: 0.5351 MB / 0.5507 GB, free: 14.34 MB / 426.7 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 (1133): * Single equations (assignments): 1128 * 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 {(1,45,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002006/0.6341, allocations: 0.9177 MB / 0.5516 GB, free: 13.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008923/0.635, allocations: 0.6526 MB / 0.5523 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/0.6452, allocations: 5.983 MB / 0.5581 GB, free: 6.707 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.767e-05/0.6453, allocations: 39.91 kB / 0.5581 GB, free: 6.672 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.057e-05/0.6453, allocations: 16 kB / 0.5582 GB, free: 6.656 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.998e-05/0.6453, allocations: 19.94 kB / 0.5582 GB, free: 6.637 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02042/0.6657, allocations: 12.74 MB / 0.5706 GB, free: 9.891 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.6657, allocations: 0 / 0.5706 GB, free: 9.891 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/0.6674, allocations: 0.5382 MB / 0.5711 GB, free: 9.352 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007863/0.6752, allocations: 3.419 MB / 0.5745 GB, free: 5.922 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003475/0.6756, allocations: 63.98 kB / 0.5745 GB, free: 5.859 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01294/0.6885, allocations: 9.77 MB / 0.5841 GB, free: 11.85 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.6885, allocations: 0 / 0.5841 GB, free: 11.85 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01303/0.7015, allocations: 7.457 MB / 0.5914 GB, free: 4.316 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/0.7028, allocations: 0.5431 MB / 0.5919 GB, free: 3.77 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004941/0.7032, allocations: 64 kB / 0.592 GB, free: 3.707 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001814/0.7051, allocations: 315.5 kB / 0.5923 GB, free: 3.398 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006252/0.7057, allocations: 246.6 kB / 0.5925 GB, free: 3.156 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002012/0.7059, allocations: 95.73 kB / 0.5926 GB, free: 3.066 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002873/0.7088, allocations: 2.329 MB / 0.5949 GB, free: 0.7617 MB / 458.7 MB Notification: Performance of sort global known variables: time 8e-08/0.7088, allocations: 0 / 0.5949 GB, free: 0.7617 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.1393/0.8481, allocations: 2.196 MB / 0.597 GB, free: 170.6 MB / 458.7 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.0009909/0.8491, allocations: 244.4 kB / 0.5972 GB, free: 170.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01102/0.8601, allocations: 6.025 MB / 0.6031 GB, free: 169.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.8601, allocations: 1.375 kB / 0.6031 GB, free: 169.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003001/0.8631, allocations: 2.239 MB / 0.6053 GB, free: 169.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00313/0.8662, allocations: 0.7093 MB / 0.606 GB, free: 169.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/0.8812, allocations: 12.91 MB / 0.6186 GB, free: 164.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001756/0.883, allocations: 2.028 MB / 0.6206 GB, free: 164.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003455/0.8864, allocations: 2.334 MB / 0.6229 GB, free: 164.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008458/0.8873, allocations: 365.3 kB / 0.6232 GB, free: 164.3 MB / 458.7 MB Notification: Performance of SimCode: time 2.545e-06/0.8873, allocations: 0 / 0.6232 GB, free: 164.3 MB / 458.7 MB Notification: Performance of Templates: time 0.1258/1.013, allocations: 80.99 MB / 0.7023 GB, free: 93.36 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.460424646735191]