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.001059/0.001059, allocations: 78.66 kB / 21.42 MB, free: 3.07 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.001641/0.001641, allocations: 170.3 kB / 24.82 MB, free: 9.262 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 1.066/1.066, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.863e-06/1.863e-06, allocations: 0 / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.947e-05/2.133e-05, allocations: 2.312 kB / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01175/0.01177, allocations: 16.17 MB / 289.6 MB, free: 1.051 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1166/0.1283, allocations: 5.361 MB / 294.9 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001437/0.1298, allocations: 141.7 kB / 295.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004452/0.1342, allocations: 4.614 MB / 299.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0039/0.1381, allocations: 2.907 MB / 302.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001941/0.1401, allocations: 1.658 MB / 304.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006155/0.1462, allocations: 10.07 MB / 314.3 MB, free: 6.543 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003756/0.15, allocations: 5.596 MB / 319.9 MB, free: 1.188 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005148/0.1551, allocations: 5.206 MB / 325.1 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004952/0.1601, allocations: 4.428 MB / 329.6 MB, free: 8.254 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001126/0.1612, allocations: 0.5547 MB / 330.1 MB, free: 7.699 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002058/0.1633, allocations: 1.577 MB / 331.7 MB, free: 6.172 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002002/0.1653, allocations: 3.602 MB / 335.3 MB, free: 2.676 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001715/0.167, allocations: 2.203 MB / 337.5 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005895/0.1729, allocations: 7.559 MB / 345.1 MB, free: 9.324 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1729, allocations: 0 / 345.1 MB, free: 9.324 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1729, allocations: 0 / 345.1 MB, free: 9.324 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.01e-05/0.173, allocations: 4 kB / 345.1 MB, free: 9.32 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.008979/0.1819, allocations: 8.335 MB / 353.4 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.182, allocations: 8.031 kB / 353.4 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01193/0.1939, allocations: 3.468 MB / 356.9 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005292/0.1992, allocations: 3.653 MB / 360.5 MB, free: 9.707 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.1994, allocations: 372.2 kB / 360.9 MB, free: 9.344 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006316/0.2, allocations: 0.5113 MB / 361.4 MB, free: 8.832 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009996/0.21, allocations: 9.11 MB / 370.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.2101, allocations: 79.31 kB / 370.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003818/0.2105, allocations: 239.8 kB / 370.8 MB, free: 13.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002304/0.2128, allocations: 2.646 MB / 373.5 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00692/0.2197, allocations: 4.275 MB / 377.7 MB, free: 6.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.181/0.4007, allocations: 67.61 MB / 445.3 MB, free: 63.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009678/0.4104, allocations: 4.123 MB / 449.5 MB, free: 63.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/0.4119, allocations: 1.057 MB / 450.5 MB, free: 63.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01067/0.4225, allocations: 8.782 MB / 459.3 MB, free: 62.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.4226, allocations: 64.02 kB / 459.4 MB, free: 62.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=259): time 4.268e-06/0.4226, allocations: 0 / 459.4 MB, free: 62.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=332): time 0.04966/0.4722, allocations: 22.02 MB / 481.4 MB, free: 49.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.4723, allocations: 273 kB / 481.7 MB, free: 49.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004376/0.4767, allocations: 5.409 MB / 487.1 MB, free: 45.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003572/0.477, allocations: 77.7 kB / 487.1 MB, free: 45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001634/0.4787, allocations: 5.24 MB / 492.4 MB, free: 40.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008423/0.4795, allocations: 1.344 MB / 493.7 MB, free: 38.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001512/0.481, allocations: 2.034 MB / 495.8 MB, free: 36.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.411e-05/0.4811, allocations: 480.8 kB / 496.2 MB, free: 36.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00155/0.4826, allocations: 1.116 MB / 497.4 MB, free: 35.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003206/0.4858, allocations: 9.308 MB / 0.4948 GB, free: 22.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005903/0.4917, allocations: 11.26 MB / 0.5058 GB, free: 7.875 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001115/0.4918, allocations: 56 kB / 0.5058 GB, free: 7.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=1246) (initialization): time 0.01243/0.5043, allocations: 8.875 MB / 0.5145 GB, free: 14.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.946e-05/0.5044, allocations: 88 kB / 0.5146 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001759/0.5045, allocations: 192 kB / 0.5148 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005062/0.5096, allocations: 1.983 MB / 0.5167 GB, free: 12.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004154/0.5137, allocations: 2.09 MB / 0.5187 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009765/0.5235, allocations: 8.213 MB / 0.5268 GB, free: 2.109 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005144/0.5287, allocations: 407.7 kB / 0.5272 GB, free: 1.711 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001189/0.5298, allocations: 480 kB / 0.5276 GB, free: 1.242 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.002462/0.5323, allocations: 0.925 MB / 0.5285 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001274/0.5336, allocations: 0.6371 MB / 0.5291 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006587/0.5402, allocations: 3.594 MB / 0.5327 GB, free: 12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.822e-05/0.5402, allocations: 36 kB / 0.5327 GB, free: 11.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/0.5402, allocations: 12 kB / 0.5327 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-05/0.5403, allocations: 15.94 kB / 0.5327 GB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01946/0.5597, allocations: 9.977 MB / 0.5425 GB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/0.5597, allocations: 8.719 kB / 0.5425 GB, free: 1.742 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.561, allocations: 439.4 kB / 0.5429 GB, free: 1.312 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004817/0.5658, allocations: 1.683 MB / 0.5445 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003943/0.5662, allocations: 63.98 kB / 0.5446 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008405/0.5746, allocations: 7.059 MB / 0.5515 GB, free: 8.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.5746, allocations: 8 kB / 0.5515 GB, free: 8.262 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008967/0.5836, allocations: 4.949 MB / 0.5563 GB, free: 3.086 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/0.5851, allocations: 0.5313 MB / 0.5568 GB, free: 2.551 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006408/0.5857, allocations: 60 kB / 0.5569 GB, free: 2.492 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/0.5871, allocations: 71.98 kB / 0.557 GB, free: 2.422 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004651/0.5876, allocations: 225.4 kB / 0.5572 GB, free: 2.199 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.5877, allocations: 75.97 kB / 0.5573 GB, free: 2.125 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002522/0.5902, allocations: 2.206 MB / 0.5594 GB, free: 15.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 7e-08/0.5902, allocations: 0 / 0.5594 GB, free: 15.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006298/0.5965, allocations: 1.926 MB / 0.5613 GB, free: 14.02 MB / 442.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.0004882/0.597, allocations: 222.7 kB / 0.5615 GB, free: 13.79 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006311/0.6033, allocations: 5.042 MB / 0.5664 GB, free: 8.723 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.6034, allocations: 0 / 0.5664 GB, free: 8.723 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001842/0.6052, allocations: 1.675 MB / 0.5681 GB, free: 7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002752/0.6079, allocations: 0.7031 MB / 0.5687 GB, free: 6.32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01653/0.6245, allocations: 12.46 MB / 0.5809 GB, free: 9.656 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001972/0.6264, allocations: 1.997 MB / 0.5829 GB, free: 7.637 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002289/0.6287, allocations: 0.7764 MB / 0.5836 GB, free: 6.855 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001451/0.6302, allocations: 0.9354 MB / 0.5845 GB, free: 5.918 MB / 458.7 MB Notification: Performance of SimCode: time 1.633e-06/0.6302, allocations: 0 / 0.5845 GB, free: 5.918 MB / 458.7 MB Notification: Performance of Templates: time 0.2126/0.8428, allocations: 72.98 MB / 0.6558 GB, free: 130.4 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: 4.924922456033528]