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.0009818/0.0009818, allocations: 78.97 kB / 21.42 MB, free: 3.074 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.0009317/0.0009317, allocations: 152.3 kB / 24.81 MB, free: 9.289 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.9738/0.9738, allocations: 173.4 MB / 201.4 MB, free: 9.207 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 9.82e-07/9.82e-07, allocations: 0 / 268.4 MB, free: 6.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.077e-06/1.006e-05, allocations: 2.312 kB / 268.4 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01125/0.01126, allocations: 16.24 MB / 284.7 MB, free: 5.859 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007013/0.01827, allocations: 5.361 MB / 290 MB, free: 492 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.01935, allocations: 143.2 kB / 290.2 MB, free: 348 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1083/0.1276, allocations: 4.617 MB / 294.8 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006304/0.1339, allocations: 2.951 MB / 297.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002678/0.1366, allocations: 1.664 MB / 299.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009773/0.1464, allocations: 9.737 MB / 309.1 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005831/0.1522, allocations: 5.605 MB / 314.7 MB, free: 6.969 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008007/0.1602, allocations: 5.223 MB / 320 MB, free: 2.141 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005673/0.1659, allocations: 4.437 MB / 324.4 MB, free: 14.02 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001497/0.1674, allocations: 0.5508 MB / 325 MB, free: 13.47 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003502/0.1709, allocations: 1.595 MB / 326.5 MB, free: 11.96 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003696/0.1746, allocations: 3.641 MB / 330.2 MB, free: 8.43 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003759/0.1784, allocations: 2.223 MB / 332.4 MB, free: 6.301 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009192/0.1875, allocations: 7.628 MB / 340 MB, free: 15.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1875, allocations: 0 / 340 MB, free: 15.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1876, allocations: 4 kB / 340 MB, free: 15.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002476/0.1878, allocations: 3.938 kB / 340 MB, free: 15.14 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.01315/0.201, allocations: 8.357 MB / 348.4 MB, free: 7.305 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.201, allocations: 8.922 kB / 348.4 MB, free: 7.297 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01659/0.2176, allocations: 3.47 MB / 351.9 MB, free: 3.879 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005377/0.223, allocations: 3.655 MB / 355.5 MB, free: 412 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.2232, allocations: 366.4 kB / 355.9 MB, free: 100 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001073/0.2243, allocations: 0.5241 MB / 356.4 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01321/0.2375, allocations: 9.1 MB / 365.5 MB, free: 5.723 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002017/0.2377, allocations: 78.44 kB / 365.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000561/0.2383, allocations: 234.6 kB / 365.8 MB, free: 5.504 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003027/0.2413, allocations: 2.651 MB / 368.5 MB, free: 2.891 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01166/0.2529, allocations: 4.273 MB / 372.7 MB, free: 14.69 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.1816/0.4345, allocations: 67.61 MB / 440.4 MB, free: 67.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009896/0.4444, allocations: 4.105 MB / 444.5 MB, free: 67.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001521/0.4459, allocations: 1.052 MB / 445.5 MB, free: 67.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/0.4573, allocations: 8.782 MB / 454.3 MB, free: 65.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.4574, allocations: 71.47 kB / 454.4 MB, free: 65.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=259): time 5.571e-06/0.4574, allocations: 0 / 454.4 MB, free: 65.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=332): time 0.05508/0.5125, allocations: 22.06 MB / 476.4 MB, free: 56.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.265e-05/0.5125, allocations: 268.6 kB / 476.7 MB, free: 55.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005633/0.5182, allocations: 5.412 MB / 482.1 MB, free: 51.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008336/0.519, allocations: 69.7 kB / 482.2 MB, free: 51.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002188/0.5212, allocations: 5.255 MB / 487.4 MB, free: 46.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001592/0.5228, allocations: 1.333 MB / 488.8 MB, free: 45.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001881/0.5247, allocations: 2.038 MB / 490.8 MB, free: 43.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.617e-05/0.5247, allocations: 476.8 kB / 491.3 MB, free: 43.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001707/0.5264, allocations: 1.116 MB / 492.4 MB, free: 41.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003934/0.5304, allocations: 9.316 MB / 0.4899 GB, free: 29.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008105/0.5385, allocations: 11.27 MB / 0.5009 GB, free: 14.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001779/0.5386, allocations: 55.94 kB / 0.501 GB, free: 14.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=1246) (initialization): time 0.01563/0.5543, allocations: 8.883 MB / 0.5097 GB, free: 5.785 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.896e-05/0.5544, allocations: 92.25 kB / 0.5098 GB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001764/0.5545, allocations: 188 kB / 0.5099 GB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005335/0.5599, allocations: 1.985 MB / 0.5119 GB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004903/0.5648, allocations: 2.082 MB / 0.5139 GB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/0.5749, allocations: 8.201 MB / 0.5219 GB, free: 9.008 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005063/0.5799, allocations: 403.7 kB / 0.5223 GB, free: 8.613 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000979/0.5809, allocations: 480 kB / 0.5228 GB, free: 8.145 MB / 394.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.002283/0.5832, allocations: 0.9293 MB / 0.5237 GB, free: 7.199 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001149/0.5843, allocations: 0.6448 MB / 0.5243 GB, free: 6.551 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006699/0.591, allocations: 3.586 MB / 0.5278 GB, free: 2.895 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.841e-05/0.5911, allocations: 39.94 kB / 0.5278 GB, free: 2.855 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.861e-05/0.5911, allocations: 12 kB / 0.5278 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/0.5911, allocations: 15.94 kB / 0.5279 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01897/0.6101, allocations: 9.968 MB / 0.5376 GB, free: 8.645 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/0.6101, allocations: 4 kB / 0.5376 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.6113, allocations: 447.3 kB / 0.538 GB, free: 8.203 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004984/0.6163, allocations: 1.669 MB / 0.5397 GB, free: 6.523 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002451/0.6165, allocations: 63.98 kB / 0.5397 GB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0084/0.6249, allocations: 7.07 MB / 0.5466 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.305e-06/0.6249, allocations: 15.88 kB / 0.5466 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008474/0.6334, allocations: 4.953 MB / 0.5515 GB, free: 9.965 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/0.6348, allocations: 0.5236 MB / 0.552 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004955/0.6353, allocations: 60 kB / 0.552 GB, free: 9.379 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/0.6366, allocations: 67.98 kB / 0.5521 GB, free: 9.312 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004222/0.637, allocations: 233.4 kB / 0.5523 GB, free: 9.082 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004268/0.6374, allocations: 71.97 kB / 0.5524 GB, free: 9.012 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002758/0.6402, allocations: 2.21 MB / 0.5546 GB, free: 6.828 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6402, allocations: 0 / 0.5546 GB, free: 6.828 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006837/0.647, allocations: 1.957 MB / 0.5565 GB, free: 4.867 MB / 426.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.0005733/0.6476, allocations: 254.3 kB / 0.5567 GB, free: 4.613 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007218/0.6548, allocations: 5.042 MB / 0.5616 GB, free: 15.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/0.6548, allocations: 0 / 0.5616 GB, free: 15.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002283/0.6571, allocations: 1.661 MB / 0.5633 GB, free: 13.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003335/0.6604, allocations: 0.7074 MB / 0.5639 GB, free: 13.14 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01808/0.6785, allocations: 12.45 MB / 0.5761 GB, free: 500 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002431/0.681, allocations: 2 MB / 0.5781 GB, free: 14.46 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002577/0.6835, allocations: 0.7805 MB / 0.5788 GB, free: 13.68 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001653/0.6852, allocations: 0.9393 MB / 0.5797 GB, free: 12.74 MB / 458.7 MB Notification: Performance of SimCode: time 1.793e-06/0.6852, allocations: 0 / 0.5797 GB, free: 12.74 MB / 458.7 MB Notification: Performance of Templates: time 0.244/0.9292, allocations: 73.26 MB / 0.6513 GB, free: 141.2 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: 4.945303821004927]