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.0009721/0.0009721, allocations: 83.58 kB / 21.19 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.001028/0.001028, 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.9159/0.9159, allocations: 177.1 MB / 205 MB, free: 5.59 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.793e-06/1.793e-06, allocations: 0 / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.723e-05/2.902e-05, allocations: 6.312 kB / 273 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.0167/0.01673, allocations: 16.71 MB / 289.7 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1344/0.1512, allocations: 5.398 MB / 295.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002153/0.1533, allocations: 141 kB / 295.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005307/0.1586, allocations: 4.69 MB / 299.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005811/0.1644, allocations: 2.917 MB / 302.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002568/0.167, allocations: 1.65 MB / 304.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008404/0.1754, allocations: 10.06 MB / 314.6 MB, free: 6.414 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004803/0.1802, allocations: 5.608 MB / 320.2 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005774/0.186, allocations: 5.176 MB / 325.3 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004642/0.1906, allocations: 4.432 MB / 329.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001333/0.192, allocations: 0.5508 MB / 330.3 MB, free: 7.605 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002237/0.1942, allocations: 1.577 MB / 331.9 MB, free: 6.078 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002394/0.1966, allocations: 3.611 MB / 335.5 MB, free: 2.574 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003048/0.1997, allocations: 2.196 MB / 337.7 MB, free: 484 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006752/0.2064, allocations: 7.559 MB / 345.3 MB, free: 9.176 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2064, allocations: 0 / 345.3 MB, free: 9.176 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2064, allocations: 0 / 345.3 MB, free: 9.176 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.457e-05/0.2065, allocations: 0 / 345.3 MB, free: 9.176 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.009448/0.216, allocations: 8.98 MB / 354.2 MB, free: 108 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.216, allocations: 16.03 kB / 354.3 MB, free: 92 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01333/0.2293, allocations: 4.455 MB / 358.7 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005616/0.2349, allocations: 4.111 MB / 362.8 MB, free: 7.426 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002239/0.2352, allocations: 366.4 kB / 363.2 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007/0.2359, allocations: 0.5152 MB / 363.7 MB, free: 6.551 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01306/0.2489, allocations: 10.35 MB / 374.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001454/0.2491, allocations: 75.36 kB / 374.1 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004171/0.2495, allocations: 239.8 kB / 374.4 MB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002527/0.252, allocations: 2.852 MB / 377.2 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01139/0.2634, allocations: 5.658 MB / 382.9 MB, free: 1.871 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.187/0.4504, allocations: 68.93 MB / 451.8 MB, free: 47.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01038/0.4608, allocations: 4.719 MB / 456.5 MB, free: 47.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001502/0.4623, allocations: 1.253 MB / 457.8 MB, free: 47.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01046/0.4727, allocations: 9.427 MB / 467.2 MB, free: 45.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.4728, allocations: 68.84 kB / 467.3 MB, free: 45.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=259): time 4.729e-06/0.4728, allocations: 3.812 kB / 467.3 MB, free: 45.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=332): time 0.05864/0.5314, allocations: 30.99 MB / 498.3 MB, free: 27.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.5315, allocations: 276.4 kB / 498.5 MB, free: 27.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004721/0.5362, allocations: 5.454 MB / 0.4922 GB, free: 22.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000198/0.5364, allocations: 77.7 kB / 0.4922 GB, free: 21.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001742/0.5381, allocations: 5.195 MB / 0.4973 GB, free: 17.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007463/0.5389, allocations: 1.323 MB / 0.4986 GB, free: 15.76 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001494/0.5404, allocations: 1.993 MB / 0.5006 GB, free: 13.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.235e-05/0.5404, allocations: 484.7 kB / 0.501 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001802/0.5422, allocations: 1.255 MB / 0.5022 GB, free: 12.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003808/0.546, allocations: 9.398 MB / 0.5114 GB, free: 15.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/0.556, allocations: 11.67 MB / 0.5228 GB, free: 460 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.111e-05/0.5561, allocations: 56 kB / 0.5229 GB, free: 404 kB / 394.7 MB Notification: Performance of matching and sorting (n=1246) (initialization): time 0.01605/0.5722, allocations: 10.39 MB / 0.533 GB, free: 6.504 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.203e-05/0.5723, allocations: 93.08 kB / 0.5331 GB, free: 6.414 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/0.5724, allocations: 188 kB / 0.5333 GB, free: 6.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006638/0.5791, allocations: 2.863 MB / 0.5361 GB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004079/0.5831, allocations: 2.161 MB / 0.5382 GB, free: 1.195 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.5946, allocations: 8.982 MB / 0.547 GB, free: 7.992 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004773/0.5994, allocations: 0.6711 MB / 0.5476 GB, free: 7.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005752/0.6, allocations: 0.5419 MB / 0.5481 GB, free: 6.777 MB / 426.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.002367/0.6023, allocations: 0.9372 MB / 0.5491 GB, free: 5.828 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/0.6034, allocations: 0.6371 MB / 0.5497 GB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/0.6138, allocations: 4.723 MB / 0.5543 GB, free: 404 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-05/0.6138, allocations: 39.94 kB / 0.5543 GB, free: 364 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.131e-05/0.6139, allocations: 16 kB / 0.5544 GB, free: 348 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.231e-05/0.6139, allocations: 15.94 kB / 0.5544 GB, free: 332 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02203/0.6359, allocations: 11.4 MB / 0.5655 GB, free: 4.789 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/0.6359, allocations: 4 kB / 0.5655 GB, free: 4.785 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001668/0.6376, allocations: 0.5116 MB / 0.566 GB, free: 4.273 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007626/0.6452, allocations: 2.535 MB / 0.5685 GB, free: 1.73 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002342/0.6455, allocations: 59.98 kB / 0.5685 GB, free: 1.672 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009579/0.655, allocations: 7.774 MB / 0.5761 GB, free: 9.664 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.655, allocations: 8.703 kB / 0.5761 GB, free: 9.656 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/0.6653, allocations: 6.245 MB / 0.5822 GB, free: 3.191 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008899/0.6662, allocations: 0.547 MB / 0.5828 GB, free: 2.641 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000466/0.6666, allocations: 63.98 kB / 0.5828 GB, free: 2.578 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/0.6682, allocations: 304.8 kB / 0.5831 GB, free: 2.281 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004087/0.6686, allocations: 217.4 kB / 0.5833 GB, free: 2.066 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/0.6687, allocations: 94.02 kB / 0.5834 GB, free: 1.977 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.1249/0.7937, allocations: 2.388 MB / 0.5857 GB, free: 167.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.7937, allocations: 0 / 0.5857 GB, free: 167.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00697/0.8006, allocations: 1.921 MB / 0.5876 GB, free: 167.3 MB / 458.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.0005081/0.8011, allocations: 234.1 kB / 0.5878 GB, free: 167.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007626/0.8088, allocations: 5.483 MB / 0.5932 GB, free: 166.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.8088, allocations: 0 / 0.5932 GB, free: 166.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002115/0.8109, allocations: 1.849 MB / 0.595 GB, free: 166.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002926/0.8138, allocations: 0.7115 MB / 0.5957 GB, free: 166 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/0.8284, allocations: 12.57 MB / 0.608 GB, free: 161.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001574/0.83, allocations: 1.997 MB / 0.6099 GB, free: 160.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003651/0.8337, allocations: 2.353 MB / 0.6122 GB, free: 160.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008271/0.8345, allocations: 366.3 kB / 0.6126 GB, free: 160.8 MB / 458.7 MB Notification: Performance of SimCode: time 3.116e-06/0.8345, allocations: 0 / 0.6126 GB, free: 160.8 MB / 458.7 MB Notification: Performance of Templates: time 0.07635/0.9109, allocations: 70.2 MB / 0.6811 GB, free: 98.91 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.102177632972598]