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.0009209/0.0009209, allocations: 72.08 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.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.0009439/0.0009439, allocations: 143.9 kB / 24.97 MB, free: 8.855 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.9267/0.9267, allocations: 173.3 MB / 201.5 MB, free: 9.289 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 1.413e-06/1.413e-06, allocations: 3.938 kB / 268.1 MB, free: 6.668 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.975e-05/2.116e-05, allocations: 2.312 kB / 268.1 MB, free: 6.664 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.02672/0.02675, allocations: 16.71 MB / 284.8 MB, free: 5.879 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01233/0.03908, allocations: 5.404 MB / 290.2 MB, free: 472 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002903/0.04198, allocations: 139.2 kB / 290.3 MB, free: 332 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1209/0.1629, allocations: 4.682 MB / 295 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005703/0.1686, allocations: 2.935 MB / 298 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002106/0.1707, allocations: 1.665 MB / 299.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007723/0.1784, allocations: 9.723 MB / 309.4 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004748/0.1832, allocations: 5.602 MB / 315 MB, free: 6.922 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005689/0.1889, allocations: 4.16 MB / 319.1 MB, free: 3.289 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004314/0.1932, allocations: 4.493 MB / 323.6 MB, free: 15.12 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001174/0.1944, allocations: 0.5547 MB / 324.2 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00205/0.1964, allocations: 1.616 MB / 325.8 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002285/0.1987, allocations: 3.648 MB / 329.4 MB, free: 9.492 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002653/0.2013, allocations: 2.229 MB / 331.7 MB, free: 7.359 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00663/0.208, allocations: 7.654 MB / 339.3 MB, free: 188 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.208, allocations: 0 / 339.3 MB, free: 188 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.208, allocations: 0 / 339.3 MB, free: 188 kB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001464/0.2081, allocations: 0 / 339.3 MB, free: 188 kB / 282.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.01124/0.2194, allocations: 8.98 MB / 348.3 MB, free: 7.266 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.2194, allocations: 8.922 kB / 348.3 MB, free: 7.258 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01997/0.2394, allocations: 4.549 MB / 352.8 MB, free: 2.758 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009922/0.2493, allocations: 4.747 MB / 357.6 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002971/0.2496, allocations: 370.8 kB / 358 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001324/0.2509, allocations: 0.51 MB / 358.5 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01985/0.2708, allocations: 10.27 MB / 368.7 MB, free: 1.965 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001592/0.2709, allocations: 75.55 kB / 368.8 MB, free: 1.922 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004634/0.2714, allocations: 238.9 kB / 369 MB, free: 1.742 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002786/0.2742, allocations: 2.925 MB / 372 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01263/0.2868, allocations: 5.805 MB / 377.8 MB, free: 9.125 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.1957/0.4825, allocations: 68.34 MB / 446.1 MB, free: 71.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01221/0.4947, allocations: 4.967 MB / 451.1 MB, free: 71.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001866/0.4966, allocations: 1.464 MB / 452.6 MB, free: 71.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01187/0.5084, allocations: 11.16 MB / 463.7 MB, free: 68.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.5085, allocations: 65.02 kB / 463.8 MB, free: 68.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=290): time 4.86e-06/0.5085, allocations: 3.938 kB / 463.8 MB, free: 68.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=372): time 0.06717/0.5757, allocations: 33.19 MB / 497 MB, free: 43.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.402e-05/0.5757, allocations: 277.5 kB / 497.2 MB, free: 42.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01134/0.5871, allocations: 5.297 MB / 0.4908 GB, free: 37.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002323/0.5873, allocations: 81.7 kB / 0.4908 GB, free: 37.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004957/0.5922, allocations: 5.073 MB / 0.4958 GB, free: 32.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009322/0.5932, allocations: 1.468 MB / 0.4972 GB, free: 31.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005418/0.5986, allocations: 1.995 MB / 0.4992 GB, free: 29.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.211e-05/0.5986, allocations: 480.8 kB / 0.4996 GB, free: 28.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002535/0.6012, allocations: 1.428 MB / 0.501 GB, free: 27.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004539/0.6057, allocations: 9.239 MB / 0.5101 GB, free: 14.67 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01073/0.6164, allocations: 11.69 MB / 0.5215 GB, free: 15.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.527e-05/0.6165, allocations: 52 kB / 0.5215 GB, free: 15.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=1253) (initialization): time 0.02331/0.6398, allocations: 11.32 MB / 0.5326 GB, free: 4.324 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.6399, allocations: 84 kB / 0.5327 GB, free: 4.242 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002083/0.6402, allocations: 180 kB / 0.5328 GB, free: 4.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00952/0.6497, allocations: 3.744 MB / 0.5365 GB, free: 320 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003811/0.6535, allocations: 2.129 MB / 0.5386 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01421/0.6677, allocations: 11.29 MB / 0.5496 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004102/0.6718, allocations: 0.6243 MB / 0.5502 GB, free: 2.027 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005468/0.6723, allocations: 0.5312 MB / 0.5507 GB, free: 1.496 MB / 410.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.001772/0.6741, allocations: 0.9178 MB / 0.5516 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000827/0.6749, allocations: 0.6567 MB / 0.5523 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/0.6852, allocations: 5.997 MB / 0.5581 GB, free: 9.844 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.47e-05/0.6852, allocations: 36 kB / 0.5582 GB, free: 9.809 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.108e-05/0.6852, allocations: 19.83 kB / 0.5582 GB, free: 9.793 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.126e-05/0.6852, allocations: 19.94 kB / 0.5582 GB, free: 9.773 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02542/0.7106, allocations: 12.73 MB / 0.5706 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.663e-05/0.7107, allocations: 0 / 0.5706 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001877/0.7125, allocations: 0.5421 MB / 0.5711 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008691/0.7212, allocations: 3.419 MB / 0.5745 GB, free: 9.047 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005935/0.7218, allocations: 63.98 kB / 0.5745 GB, free: 8.984 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1512/0.873, allocations: 9.748 MB / 0.5841 GB, free: 159.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.873, allocations: 3.094 kB / 0.5841 GB, free: 159.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01547/0.8885, allocations: 7.458 MB / 0.5914 GB, free: 158.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/0.89, allocations: 0.5543 MB / 0.5919 GB, free: 158.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006536/0.8906, allocations: 57.19 kB / 0.5919 GB, free: 158.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001836/0.8925, allocations: 314.6 kB / 0.5922 GB, free: 158.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006433/0.8931, allocations: 245.4 kB / 0.5925 GB, free: 158.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001982/0.8933, allocations: 92.47 kB / 0.5926 GB, free: 158.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002949/0.8963, allocations: 2.332 MB / 0.5948 GB, free: 158.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8963, allocations: 0 / 0.5948 GB, free: 158.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00607/0.9023, allocations: 2.197 MB / 0.597 GB, free: 158.7 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.0006178/0.903, allocations: 250.9 kB / 0.5972 GB, free: 158.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008418/0.9114, allocations: 6.023 MB / 0.6031 GB, free: 157.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.9114, allocations: 3.562 kB / 0.6031 GB, free: 157.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002814/0.9142, allocations: 2.239 MB / 0.6053 GB, free: 157 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003169/0.9174, allocations: 0.7057 MB / 0.606 GB, free: 157 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01567/0.933, allocations: 12.91 MB / 0.6186 GB, free: 150.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001796/0.9348, allocations: 2.029 MB / 0.6206 GB, free: 149.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003978/0.9388, allocations: 2.323 MB / 0.6229 GB, free: 148.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009821/0.9398, allocations: 376.3 kB / 0.6232 GB, free: 148 MB / 442.7 MB Notification: Performance of SimCode: time 2.375e-06/0.9398, allocations: 0 / 0.6232 GB, free: 148 MB / 442.7 MB Notification: Performance of Templates: time 0.09857/1.038, allocations: 80.99 MB / 0.7023 GB, free: 69.37 MB / 442.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: 5.320268160896376]