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.000951/0.000951, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008669/0.0008669, allocations: 140.3 kB / 24.89 MB, free: 9.207 MB / 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.905/0.905, allocations: 173.3 MB / 201.5 MB, free: 9.164 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.212e-06/1.212e-06, allocations: 0 / 268.5 MB, free: 6.098 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.701e-05/1.822e-05, allocations: 2.312 kB / 268.5 MB, free: 6.094 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01535/0.01536, allocations: 16.3 MB / 284.8 MB, free: 5.727 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01115/0.02652, allocations: 5.589 MB / 290.4 MB, free: 112 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.1018/0.1283, allocations: 137.5 kB / 290.5 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00531/0.1336, allocations: 4.606 MB / 295.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004442/0.1381, allocations: 2.96 MB / 298.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002065/0.1402, allocations: 1.667 MB / 299.8 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008204/0.1484, allocations: 9.713 MB / 309.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004695/0.1531, allocations: 5.288 MB / 314.8 MB, free: 6.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005931/0.159, allocations: 5.063 MB / 319.8 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004526/0.1635, allocations: 4.243 MB / 324.1 MB, free: 14.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001256/0.1648, allocations: 0.5547 MB / 324.6 MB, free: 13.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002776/0.1675, allocations: 1.634 MB / 326.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002918/0.1705, allocations: 3.638 MB / 329.9 MB, free: 8.676 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002726/0.1732, allocations: 2.222 MB / 332.1 MB, free: 6.551 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006742/0.1799, allocations: 7.629 MB / 339.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1799, allocations: 0 / 339.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1799, allocations: 0 / 339.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001786/0.1801, allocations: 4 kB / 339.8 MB, free: 15.39 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.008645/0.1888, allocations: 7.545 MB / 347.3 MB, free: 8.391 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1888, allocations: 8.922 kB / 347.3 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005285/0.1941, allocations: 1.811 MB / 349.1 MB, free: 6.641 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004352/0.1984, allocations: 3.443 MB / 352.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.1987, allocations: 369.3 kB / 352.9 MB, free: 3.059 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007308/0.1994, allocations: 0.52 MB / 353.5 MB, free: 2.602 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/0.2097, allocations: 8.104 MB / 361.6 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000205/0.2099, allocations: 68.62 kB / 361.6 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005335/0.2104, allocations: 239.4 kB / 361.9 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002231/0.2127, allocations: 2.645 MB / 364.5 MB, free: 7.242 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008815/0.2215, allocations: 4.149 MB / 368.7 MB, free: 3.215 MB / 314.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.04706/0.2685, allocations: 49.06 MB / 417.7 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01086/0.2794, allocations: 3.659 MB / 421.4 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.2808, allocations: 0.852 MB / 422.2 MB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01342/0.2942, allocations: 8.005 MB / 430.2 MB, free: 3.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.056e-05/0.2943, allocations: 68.5 kB / 430.3 MB, free: 3.855 MB / 378.7 MB Notification: Performance of pre-optimization done (n=259): time 5.951e-06/0.2943, allocations: 0 / 430.3 MB, free: 3.855 MB / 378.7 MB Notification: Performance of matching and sorting (n=332): time 0.1593/0.4536, allocations: 19.81 MB / 450.1 MB, free: 117.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.4537, allocations: 266.6 kB / 450.4 MB, free: 117.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003636/0.4573, allocations: 4.903 MB / 455.3 MB, free: 117.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002442/0.4575, allocations: 76.06 kB / 455.3 MB, free: 117.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.4589, allocations: 4.55 MB / 459.9 MB, free: 114.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007227/0.4596, allocations: 1.283 MB / 461.2 MB, free: 113.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001329/0.4609, allocations: 1.781 MB / 463 MB, free: 113.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.687e-05/0.461, allocations: 305.1 kB / 463.3 MB, free: 113 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/0.4629, allocations: 1.323 MB / 464.6 MB, free: 112.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002907/0.4658, allocations: 6.702 MB / 471.3 MB, free: 103.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004823/0.4706, allocations: 8.768 MB / 480.1 MB, free: 92.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.774e-05/0.4707, allocations: 52 kB / 480.1 MB, free: 92.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=1246) (initialization): time 0.0101/0.4808, allocations: 7.631 MB / 487.7 MB, free: 84.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.621e-05/0.4808, allocations: 91.94 kB / 487.8 MB, free: 84.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.716e-05/0.4809, allocations: 191.9 kB / 488 MB, free: 84.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004731/0.4857, allocations: 1.958 MB / 490 MB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004192/0.4899, allocations: 2.199 MB / 492.2 MB, free: 79.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007884/0.4977, allocations: 6.824 MB / 499 MB, free: 72.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004751/0.5025, allocations: 399.8 kB / 499.4 MB, free: 72.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006497/0.5031, allocations: 472 kB / 499.8 MB, free: 72.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * 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 (1158): * Single equations (assignments): 1153 * 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,29,100.0%), (4,32,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001775/0.5049, allocations: 0.8976 MB / 0.489 GB, free: 71.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007402/0.5057, allocations: 387.6 kB / 0.4894 GB, free: 70.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00521/0.5109, allocations: 3.202 MB / 0.4925 GB, free: 67.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.261e-05/0.5109, allocations: 32 kB / 0.4925 GB, free: 67.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/0.5109, allocations: 12 kB / 0.4925 GB, free: 67.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.769e-05/0.5109, allocations: 15.95 kB / 0.4926 GB, free: 67.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01307/0.524, allocations: 8.566 MB / 0.5009 GB, free: 58.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/0.524, allocations: 8 kB / 0.5009 GB, free: 58.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.5253, allocations: 500 kB / 0.5014 GB, free: 58.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004577/0.5299, allocations: 1.903 MB / 0.5033 GB, free: 56.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002299/0.5301, allocations: 63.92 kB / 0.5033 GB, free: 56.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006636/0.5367, allocations: 5.738 MB / 0.5089 GB, free: 50.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.5367, allocations: 11.92 kB / 0.5089 GB, free: 50.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006971/0.5437, allocations: 4.279 MB / 0.5131 GB, free: 45.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/0.5449, allocations: 0.5118 MB / 0.5136 GB, free: 45.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004449/0.5454, allocations: 60 kB / 0.5137 GB, free: 45.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.5466, allocations: 67.98 kB / 0.5137 GB, free: 45.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004524/0.547, allocations: 225.4 kB / 0.514 GB, free: 44.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/0.5471, allocations: 64 kB / 0.514 GB, free: 44.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001596/0.5487, allocations: 1.879 MB / 0.5159 GB, free: 43.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5487, allocations: 0 / 0.5159 GB, free: 43.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005264/0.554, allocations: 1.961 MB / 0.5178 GB, free: 41.08 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (255): * Single equations (assignments): 250 * 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 {(4,28,62.5%), (1,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004408/0.5544, allocations: 219.8 kB / 0.518 GB, free: 40.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005237/0.5597, allocations: 4.527 MB / 0.5224 GB, free: 36.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.00023/0.5599, allocations: 124.2 kB / 0.5225 GB, free: 36.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/0.5616, allocations: 1.411 MB / 0.5239 GB, free: 34.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003801/0.5654, allocations: 1.006 MB / 0.5249 GB, free: 33.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.5796, allocations: 12.27 MB / 0.5369 GB, free: 21.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001527/0.5811, allocations: 1.981 MB / 0.5388 GB, free: 19.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002132/0.5832, allocations: 0.7854 MB / 0.5396 GB, free: 18.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/0.5845, allocations: 0.8643 MB / 0.5404 GB, free: 17.64 MB / 378.7 MB Notification: Performance of SimCode: time 2.034e-06/0.5845, allocations: 4 kB / 0.5404 GB, free: 17.64 MB / 378.7 MB Notification: Performance of Templates: time 0.2268/0.8113, allocations: 73.09 MB / 0.6118 GB, free: 88.3 MB / 394.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 -s gbode -gbm=radauIIA3 -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: 4.630604810081422]