Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001056/0.001056, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001134/0.001134, allocations: 161.2 kB / 25.6 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9154/0.9154, allocations: 158.6 MB / 187.5 MB, free: 2.812 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 251.5 MB, free: 7.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.303e-05/2.454e-05, allocations: 2.312 kB / 251.5 MB, free: 7.324 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01632/0.01634, allocations: 16.29 MB / 267.8 MB, free: 6.965 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009753/0.0261, allocations: 5.37 MB / 273.1 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002699/0.0288, allocations: 139.2 kB / 273.3 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005583/0.03438, allocations: 4.629 MB / 277.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006659/0.04104, allocations: 2.966 MB / 280.9 MB, free: 9.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002743/0.04378, allocations: 1.657 MB / 282.5 MB, free: 8.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009768/0.05355, allocations: 9.435 MB / 292 MB, free: 14.71 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007034/0.06058, allocations: 5.616 MB / 297.6 MB, free: 9.016 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009987/0.07057, allocations: 4.877 MB / 302.5 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006717/0.07729, allocations: 4.458 MB / 306.9 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002056/0.07934, allocations: 0.5508 MB / 307.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00358/0.08292, allocations: 1.588 MB / 309.1 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004625/0.08755, allocations: 3.651 MB / 312.7 MB, free: 9.859 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00371/0.09126, allocations: 2.232 MB / 314.9 MB, free: 7.621 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009499/0.1008, allocations: 7.641 MB / 322.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1008, allocations: 0 / 322.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1008, allocations: 3.938 kB / 322.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002515/0.101, allocations: 0 / 322.6 MB, free: 15.95 MB / 314.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.02943/0.1304, allocations: 8.384 MB / 331 MB, free: 7.477 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.1305, allocations: 19.98 kB / 331 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02955/0.16, allocations: 3.465 MB / 334.5 MB, free: 3.984 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009292/0.1693, allocations: 3.732 MB / 338.2 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003921/0.1697, allocations: 373.8 kB / 338.5 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001595/0.1713, allocations: 0.519 MB / 339.1 MB, free: 15.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01614/0.1875, allocations: 9.107 MB / 348.2 MB, free: 4.676 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003155/0.1878, allocations: 71.39 kB / 348.2 MB, free: 4.605 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009826/0.1888, allocations: 239.8 kB / 348.5 MB, free: 4.371 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002465/0.1912, allocations: 2.646 MB / 351.1 MB, free: 1.719 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1323/0.3235, allocations: 4.266 MB / 355.4 MB, free: 87.9 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.04905/0.3725, allocations: 67.66 MB / 423.1 MB, free: 29.81 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008899/0.3814, allocations: 4.104 MB / 427.2 MB, free: 25.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.3829, allocations: 1.047 MB / 428.2 MB, free: 24.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01144/0.3944, allocations: 8.806 MB / 437 MB, free: 16.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.376e-05/0.3944, allocations: 67.38 kB / 437.1 MB, free: 16.01 MB / 330.7 MB Notification: Performance of pre-optimization done (n=259): time 6.061e-06/0.3944, allocations: 4 kB / 437.1 MB, free: 16.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=332): time 0.05494/0.4493, allocations: 22.1 MB / 459.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.4495, allocations: 265.5 kB / 459.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006124/0.4556, allocations: 5.486 MB / 464.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007167/0.4563, allocations: 77.7 kB / 465 MB, free: 4.535 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003116/0.4594, allocations: 5.243 MB / 470.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00177/0.4612, allocations: 1.334 MB / 471.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002228/0.4634, allocations: 2.03 MB / 473.6 MB, free: 11.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.4635, allocations: 488.7 kB / 474.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00197/0.4655, allocations: 1.112 MB / 475.2 MB, free: 10.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00569/0.4712, allocations: 9.313 MB / 484.5 MB, free: 13.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.145/0.6162, allocations: 11.27 MB / 495.8 MB, free: 115.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002573/0.6165, allocations: 54.16 kB / 495.8 MB, free: 115.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=1246) (initialization): time 0.01724/0.6337, allocations: 8.885 MB / 0.4929 GB, free: 114.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.6338, allocations: 85.81 kB / 0.493 GB, free: 114.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002441/0.6341, allocations: 192.9 kB / 0.4932 GB, free: 114.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005183/0.6393, allocations: 1.959 MB / 0.4951 GB, free: 114 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004127/0.6434, allocations: 2.085 MB / 0.4971 GB, free: 113.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008957/0.6523, allocations: 8.217 MB / 0.5051 GB, free: 109.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005717/0.6581, allocations: 401.4 kB / 0.5055 GB, free: 109.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/0.6593, allocations: 472.7 kB / 0.506 GB, free: 109.8 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.002284/0.6616, allocations: 0.927 MB / 0.5069 GB, free: 109.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001163/0.6628, allocations: 0.6417 MB / 0.5075 GB, free: 109.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006114/0.6689, allocations: 3.605 MB / 0.511 GB, free: 107.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.282e-05/0.6689, allocations: 35.89 kB / 0.5111 GB, free: 107.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.508e-05/0.6689, allocations: 12 kB / 0.5111 GB, free: 107.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.404e-05/0.669, allocations: 24.55 kB / 0.5111 GB, free: 107.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01693/0.6859, allocations: 10.01 MB / 0.5209 GB, free: 99.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-05/0.6859, allocations: 8 kB / 0.5209 GB, free: 99.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/0.6871, allocations: 445.2 kB / 0.5213 GB, free: 98.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004551/0.6917, allocations: 1.674 MB / 0.5229 GB, free: 97.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003621/0.692, allocations: 63.98 kB / 0.523 GB, free: 97.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007282/0.6993, allocations: 7.057 MB / 0.5299 GB, free: 90.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.6993, allocations: 8 kB / 0.5299 GB, free: 90 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008257/0.7076, allocations: 4.956 MB / 0.5347 GB, free: 84.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002402/0.71, allocations: 0.8536 MB / 0.5356 GB, free: 84.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007061/0.7107, allocations: 60 kB / 0.5356 GB, free: 83.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/0.7122, allocations: 63.98 kB / 0.5357 GB, free: 83.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004825/0.7127, allocations: 229.4 kB / 0.5359 GB, free: 83.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/0.7128, allocations: 67.98 kB / 0.536 GB, free: 83.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002329/0.7151, allocations: 2.26 MB / 0.5382 GB, free: 81.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7151, allocations: 0 / 0.5382 GB, free: 81.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00714/0.7223, allocations: 1.962 MB / 0.5401 GB, free: 79.68 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.0006272/0.7229, allocations: 252.8 kB / 0.5403 GB, free: 79.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006005/0.7289, allocations: 5.035 MB / 0.5452 GB, free: 74.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/0.7289, allocations: 4 kB / 0.5452 GB, free: 74.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.7307, allocations: 1.664 MB / 0.5469 GB, free: 72.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003354/0.7341, allocations: 0.7192 MB / 0.5476 GB, free: 72.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/0.7491, allocations: 12.5 MB / 0.5598 GB, free: 59.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001794/0.7509, allocations: 2.005 MB / 0.5617 GB, free: 57.33 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002329/0.7532, allocations: 0.7823 MB / 0.5625 GB, free: 56.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001369/0.7546, allocations: 0.9354 MB / 0.5634 GB, free: 55.61 MB / 378.7 MB Notification: Performance of SimCode: time 1.964e-06/0.7546, allocations: 3.172 kB / 0.5634 GB, free: 55.61 MB / 378.7 MB Notification: Performance of Templates: time 0.2062/0.9607, allocations: 74.2 MB / 0.6359 GB, free: 125.6 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.273937935009599]