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.0009709/0.0009709, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001005/0.001005, allocations: 160.5 kB / 24.99 MB, free: 9.32 MB / 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.9757/0.9757, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.653e-06/1.653e-06, allocations: 0 / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.812e-05/1.978e-05, allocations: 2.312 kB / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01241/0.01243, allocations: 16.65 MB / 289.7 MB, free: 1.109 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1157/0.1281, allocations: 5.384 MB / 295.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001986/0.1301, allocations: 141.2 kB / 295.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004701/0.1348, allocations: 4.679 MB / 299.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00495/0.1397, allocations: 2.905 MB / 302.8 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002151/0.1419, allocations: 1.653 MB / 304.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007675/0.1496, allocations: 10.06 MB / 314.5 MB, free: 6.535 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004737/0.1543, allocations: 5.599 MB / 320.1 MB, free: 1.262 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005446/0.1597, allocations: 4.142 MB / 324.3 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004978/0.1647, allocations: 4.493 MB / 328.8 MB, free: 9.191 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001206/0.1659, allocations: 0.5574 MB / 329.3 MB, free: 8.637 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002434/0.1684, allocations: 1.588 MB / 330.9 MB, free: 7.098 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002299/0.1707, allocations: 3.622 MB / 334.5 MB, free: 3.582 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002382/0.173, allocations: 2.205 MB / 336.8 MB, free: 1.473 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006449/0.1795, allocations: 7.576 MB / 344.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1795, allocations: 0 / 344.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1795, allocations: 0 / 344.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.439e-05/0.1796, allocations: 0 / 344.3 MB, free: 10.21 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.01037/0.19, allocations: 8.958 MB / 353.3 MB, free: 1.324 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.19, allocations: 8.031 kB / 353.3 MB, free: 1.316 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01474/0.2047, allocations: 4.553 MB / 357.8 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00656/0.2113, allocations: 4.737 MB / 362.6 MB, free: 7.961 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002014/0.2115, allocations: 370.4 kB / 362.9 MB, free: 7.598 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006963/0.2122, allocations: 0.519 MB / 363.5 MB, free: 7.078 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01309/0.2253, allocations: 10.28 MB / 373.8 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001371/0.2254, allocations: 75.39 kB / 373.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000436/0.2259, allocations: 239.8 kB / 374.1 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002689/0.2286, allocations: 2.915 MB / 377 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01124/0.2398, allocations: 5.816 MB / 382.8 MB, free: 2.242 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.1715/0.4113, allocations: 68.33 MB / 451.1 MB, free: 67.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01171/0.423, allocations: 4.995 MB / 456.1 MB, free: 66.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002171/0.4252, allocations: 1.46 MB / 457.6 MB, free: 66.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01222/0.4374, allocations: 11.16 MB / 468.7 MB, free: 63.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.4374, allocations: 68.7 kB / 468.8 MB, free: 63.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=290): time 4.819e-06/0.4374, allocations: 3.938 kB / 468.8 MB, free: 63.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=372): time 0.06228/0.4997, allocations: 33.15 MB / 0.4902 GB, free: 36.83 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.4998, allocations: 265.8 kB / 0.4904 GB, free: 36.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004045/0.5038, allocations: 5.31 MB / 0.4956 GB, free: 31.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002267/0.504, allocations: 81.7 kB / 0.4957 GB, free: 31.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001462/0.5055, allocations: 5.069 MB / 0.5007 GB, free: 26.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007986/0.5063, allocations: 1.469 MB / 0.5021 GB, free: 25.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001526/0.5078, allocations: 1.996 MB / 0.504 GB, free: 23.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.874e-05/0.5079, allocations: 480.1 kB / 0.5045 GB, free: 22.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/0.5099, allocations: 1.436 MB / 0.5059 GB, free: 21.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003509/0.5134, allocations: 9.237 MB / 0.5149 GB, free: 8.477 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007742/0.5211, allocations: 11.69 MB / 0.5263 GB, free: 9.414 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.378e-05/0.5212, allocations: 48 kB / 0.5264 GB, free: 9.367 MB / 394.7 MB Notification: Performance of matching and sorting (n=1253) (initialization): time 0.01618/0.5373, allocations: 11.32 MB / 0.5374 GB, free: 14.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.415e-05/0.5374, allocations: 84 kB / 0.5375 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/0.5375, allocations: 180 kB / 0.5377 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008121/0.5457, allocations: 3.744 MB / 0.5414 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003959/0.5496, allocations: 2.125 MB / 0.5434 GB, free: 7.871 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01455/0.5642, allocations: 11.3 MB / 0.5545 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004119/0.5683, allocations: 0.6281 MB / 0.5551 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005161/0.5688, allocations: 0.5312 MB / 0.5556 GB, free: 11.18 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.001898/0.5707, allocations: 0.9209 MB / 0.5565 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007981/0.5715, allocations: 0.6526 MB / 0.5571 GB, free: 9.598 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01004/0.5815, allocations: 5.975 MB / 0.563 GB, free: 3.555 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.832e-05/0.5816, allocations: 50.61 kB / 0.563 GB, free: 3.508 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.992e-05/0.5816, allocations: 16 kB / 0.563 GB, free: 3.492 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.122e-05/0.5816, allocations: 23.92 kB / 0.5631 GB, free: 3.469 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02028/0.6019, allocations: 12.73 MB / 0.5755 GB, free: 6.723 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.6019, allocations: 0 / 0.5755 GB, free: 6.723 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001422/0.6033, allocations: 0.5422 MB / 0.576 GB, free: 6.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008031/0.6114, allocations: 3.419 MB / 0.5794 GB, free: 2.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000221/0.6116, allocations: 67.73 kB / 0.5794 GB, free: 2.688 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1255/0.7371, allocations: 9.736 MB / 0.5889 GB, free: 155 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.7371, allocations: 2.172 kB / 0.5889 GB, free: 155 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01273/0.7498, allocations: 7.464 MB / 0.5962 GB, free: 154.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009371/0.7508, allocations: 0.5496 MB / 0.5968 GB, free: 154.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005146/0.7513, allocations: 53.62 kB / 0.5968 GB, free: 154.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/0.7529, allocations: 322.4 kB / 0.5971 GB, free: 154.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005426/0.7535, allocations: 241.4 kB / 0.5973 GB, free: 154.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001832/0.7537, allocations: 92.14 kB / 0.5974 GB, free: 154.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002333/0.756, allocations: 2.331 MB / 0.5997 GB, free: 154 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.756, allocations: 0 / 0.5997 GB, free: 154 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004506/0.7605, allocations: 2.163 MB / 0.6018 GB, free: 154 MB / 442.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.0004503/0.7609, allocations: 231.2 kB / 0.602 GB, free: 153.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006599/0.7675, allocations: 6.024 MB / 0.6079 GB, free: 152.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.7676, allocations: 3.828 kB / 0.6079 GB, free: 152.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00238/0.7699, allocations: 2.23 MB / 0.6101 GB, free: 152.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002399/0.7723, allocations: 0.7207 MB / 0.6108 GB, free: 152.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/0.7848, allocations: 12.9 MB / 0.6234 GB, free: 142.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/0.7861, allocations: 2.031 MB / 0.6254 GB, free: 140.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003037/0.7891, allocations: 2.319 MB / 0.6277 GB, free: 139.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007249/0.7899, allocations: 375.7 kB / 0.628 GB, free: 139.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.674e-06/0.7899, allocations: 0 / 0.628 GB, free: 139.2 MB / 442.7 MB Notification: Performance of Templates: time 0.07794/0.8678, allocations: 80.74 MB / 0.7069 GB, free: 59.49 MB / 442.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.2352580558508635]