Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 79.75 kB / 21.18 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.95/0.95, allocations: 177.1 MB / 205 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.96e-05/2.114e-05, allocations: 6.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01284/0.01286, allocations: 16.71 MB / 289.7 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1441/0.157, allocations: 5.392 MB / 295.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001975/0.159, allocations: 141.5 kB / 295.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005256/0.1642, allocations: 4.697 MB / 299.9 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004755/0.169, allocations: 2.912 MB / 302.8 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00231/0.1713, allocations: 1.647 MB / 304.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007631/0.1789, allocations: 10.06 MB / 314.6 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004649/0.1836, allocations: 5.596 MB / 320.1 MB, free: 1.074 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004858/0.1884, allocations: 4.14 MB / 324.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004819/0.1932, allocations: 4.49 MB / 328.8 MB, free: 9.016 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001426/0.1947, allocations: 0.5547 MB / 329.3 MB, free: 8.461 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002397/0.1971, allocations: 1.589 MB / 330.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002291/0.1994, allocations: 3.617 MB / 334.5 MB, free: 3.41 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002786/0.2021, allocations: 2.201 MB / 336.7 MB, free: 1.305 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008462/0.2106, allocations: 7.589 MB / 344.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2106, allocations: 0 / 344.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2106, allocations: 4 kB / 344.3 MB, free: 10.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001744/0.2108, allocations: 0 / 344.3 MB, free: 10.03 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.01332/0.2241, allocations: 8.954 MB / 353.3 MB, free: 1.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.2241, allocations: 8.031 kB / 353.3 MB, free: 1.062 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01449/0.2386, allocations: 4.548 MB / 357.8 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006293/0.2449, allocations: 4.738 MB / 362.6 MB, free: 7.676 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.2451, allocations: 375.7 kB / 362.9 MB, free: 7.309 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005979/0.2457, allocations: 0.5152 MB / 363.5 MB, free: 6.793 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01202/0.2577, allocations: 10.27 MB / 373.7 MB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001196/0.2578, allocations: 87.28 kB / 373.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004035/0.2582, allocations: 236.3 kB / 374.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00261/0.2608, allocations: 2.923 MB / 377 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0111/0.2719, allocations: 5.814 MB / 382.8 MB, free: 1.957 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.1977/0.4696, allocations: 68.34 MB / 451.1 MB, free: 61.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01547/0.4851, allocations: 4.971 MB / 456.1 MB, free: 61.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002054/0.4871, allocations: 1.453 MB / 457.6 MB, free: 61.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.013/0.5001, allocations: 11.17 MB / 468.7 MB, free: 58.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.5002, allocations: 72.8 kB / 468.8 MB, free: 58.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=290): time 5.37e-06/0.5002, allocations: 0 / 468.8 MB, free: 58.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=372): time 0.0637/0.5639, allocations: 33.15 MB / 0.4902 GB, free: 33.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.564, allocations: 269.8 kB / 0.4904 GB, free: 32.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006321/0.5703, allocations: 5.315 MB / 0.4956 GB, free: 27.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007243/0.571, allocations: 82.95 kB / 0.4957 GB, free: 27.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002095/0.5731, allocations: 5.073 MB / 0.5007 GB, free: 23.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001165/0.5743, allocations: 1.468 MB / 0.5021 GB, free: 21.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001875/0.5761, allocations: 2.004 MB / 0.5041 GB, free: 19.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.577e-05/0.5762, allocations: 476.8 kB / 0.5045 GB, free: 19.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002141/0.5783, allocations: 1.432 MB / 0.5059 GB, free: 17.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004137/0.5825, allocations: 9.228 MB / 0.5149 GB, free: 5.023 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/0.5928, allocations: 11.69 MB / 0.5263 GB, free: 6.383 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001415/0.593, allocations: 52 kB / 0.5264 GB, free: 6.332 MB / 394.7 MB Notification: Performance of matching and sorting (n=1253) (initialization): time 0.021/0.614, allocations: 11.32 MB / 0.5374 GB, free: 10.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.6141, allocations: 87.94 kB / 0.5375 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000214/0.6143, allocations: 180 kB / 0.5377 GB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009232/0.6235, allocations: 3.754 MB / 0.5414 GB, free: 6.957 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005053/0.6286, allocations: 2.122 MB / 0.5434 GB, free: 4.832 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01621/0.6448, allocations: 11.29 MB / 0.5545 GB, free: 9.316 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005624/0.6504, allocations: 0.632 MB / 0.5551 GB, free: 8.684 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001083/0.6515, allocations: 0.5312 MB / 0.5556 GB, free: 8.152 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.002344/0.6538, allocations: 0.9186 MB / 0.5565 GB, free: 7.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001241/0.6551, allocations: 0.6526 MB / 0.5571 GB, free: 6.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01062/0.6657, allocations: 5.983 MB / 0.563 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.468e-05/0.6657, allocations: 40 kB / 0.563 GB, free: 492 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.107e-05/0.6658, allocations: 16 kB / 0.563 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.627e-05/0.6658, allocations: 19.94 kB / 0.563 GB, free: 456 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02424/0.69, allocations: 12.74 MB / 0.5755 GB, free: 3.715 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.651e-05/0.6901, allocations: 15.92 kB / 0.5755 GB, free: 3.699 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001739/0.6918, allocations: 0.5344 MB / 0.576 GB, free: 3.164 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008149/0.6999, allocations: 3.419 MB / 0.5794 GB, free: 15.74 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004467/0.7004, allocations: 67.36 kB / 0.5794 GB, free: 15.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01363/0.714, allocations: 9.749 MB / 0.5889 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.714, allocations: 3.938 kB / 0.5889 GB, free: 5.68 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1761/0.8902, allocations: 7.453 MB / 0.5962 GB, free: 164.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/0.8921, allocations: 0.549 MB / 0.5968 GB, free: 164.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001053/0.8931, allocations: 57.53 kB / 0.5968 GB, free: 164.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002367/0.8955, allocations: 319.3 kB / 0.5971 GB, free: 164.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007498/0.8962, allocations: 241.4 kB / 0.5973 GB, free: 164.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002215/0.8965, allocations: 89.52 kB / 0.5974 GB, free: 164.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004045/0.9005, allocations: 2.331 MB / 0.5997 GB, free: 164.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9005, allocations: 0 / 0.5997 GB, free: 164.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007663/0.9082, allocations: 2.157 MB / 0.6018 GB, free: 164.2 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.0007138/0.9089, allocations: 229.2 kB / 0.602 GB, free: 164.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009076/0.918, allocations: 6.028 MB / 0.6079 GB, free: 163.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.024e-06/0.918, allocations: 0 / 0.6079 GB, free: 163.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003075/0.921, allocations: 2.241 MB / 0.6101 GB, free: 162.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003471/0.9245, allocations: 0.7205 MB / 0.6108 GB, free: 162.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01818/0.9427, allocations: 12.9 MB / 0.6234 GB, free: 158.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001992/0.9447, allocations: 2.027 MB / 0.6254 GB, free: 157.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004053/0.9487, allocations: 2.323 MB / 0.6277 GB, free: 157.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.9497, allocations: 375.3 kB / 0.628 GB, free: 157.9 MB / 458.7 MB Notification: Performance of SimCode: time 2.635e-06/0.9497, allocations: 0.5938 kB / 0.628 GB, free: 157.9 MB / 458.7 MB Notification: Performance of Templates: time 0.09723/1.047, allocations: 80.73 MB / 0.7069 GB, free: 83.65 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.557967725209892]