Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.001779/0.001779, allocations: 84.69 kB / 21.43 MB, free: 296 kB / 14.72 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.002048/0.002048, allocations: 164 kB / 24.7 MB, free: 3.547 MB / 14.72 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 1.356/1.356, allocations: 158.6 MB / 186.5 MB, free: 6.395 MB / 174.1 MB " [Timeout remaining time 178] 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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 299 MB, free: 8.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.564e-05/2.687e-05, allocations: 10.22 kB / 299 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008604/0.008631, allocations: 6.604 MB / 305.6 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006912/0.01554, allocations: 3.063 MB / 308.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.01664, allocations: 43.81 kB / 308.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002534/0.01917, allocations: 1.058 MB / 309.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003854/0.02302, allocations: 1.447 MB / 311.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.02424, allocations: 498.8 kB / 311.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004131/0.02837, allocations: 2.964 MB / 314.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002399/0.03077, allocations: 1.573 MB / 316.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002499/0.03327, allocations: 1.325 MB / 317.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00261/0.03588, allocations: 1.407 MB / 318.9 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005566/0.03643, allocations: 180 kB / 319.1 MB, free: 4.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002211/0.03864, allocations: 0.9787 MB / 320.1 MB, free: 3.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001508/0.04015, allocations: 1.188 MB / 321.3 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001314/0.04147, allocations: 0.7319 MB / 322 MB, free: 1.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.185/0.2265, allocations: 4.408 MB / 326.4 MB, free: 20.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.2265, allocations: 0 / 326.4 MB, free: 20.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2265, allocations: 0 / 326.4 MB, free: 20.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002098/0.2267, allocations: 0 / 326.4 MB, free: 20.32 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01344/0.2401, allocations: 3.099 MB / 329.5 MB, free: 19.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.277e-05/0.2402, allocations: 15.11 kB / 329.5 MB, free: 19.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008225/0.2484, allocations: 1.857 MB / 331.4 MB, free: 18.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003949/0.2524, allocations: 1.376 MB / 332.8 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.2525, allocations: 134.7 kB / 332.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001351/0.2539, allocations: 253.9 kB / 333.2 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01409/0.268, allocations: 6.696 MB / 339.8 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.2681, allocations: 24.59 kB / 339.9 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003894/0.2685, allocations: 86.39 kB / 340 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002008/0.2705, allocations: 1.371 MB / 341.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01129/0.2818, allocations: 6.044 MB / 347.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03509/0.3169, allocations: 24.17 MB / 371.5 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008197/0.3251, allocations: 2.194 MB / 373.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001901/0.327, allocations: 0.9848 MB / 374.7 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006992/0.334, allocations: 2.813 MB / 377.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.164e-05/0.334, allocations: 56.69 kB / 377.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=112): time 4.719e-06/0.334, allocations: 0.5625 kB / 377.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=125): time 0.0342/0.3682, allocations: 10.32 MB / 387.9 MB, free: 5.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001763/0.37, allocations: 1.548 MB / 389.5 MB, free: 3.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006217/0.3762, allocations: 2.736 MB / 392.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006492/0.3769, allocations: 44.75 kB / 392.2 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00247/0.3793, allocations: 2.156 MB / 394.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001426/0.3808, allocations: 0.5229 MB / 394.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002599/0.3834, allocations: 0.9124 MB / 395.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003139/0.3837, allocations: 354.1 kB / 396.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003708/0.3874, allocations: 1.684 MB / 397.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007171/0.3946, allocations: 4.487 MB / 402.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/0.4053, allocations: 6.576 MB / 408.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001211/0.4054, allocations: 28 kB / 408.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02419/0.4296, allocations: 8.053 MB / 417 MB, free: 5.465 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.073e-05/0.4297, allocations: 44 kB / 417 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01282/0.4425, allocations: 3.521 MB / 420.6 MB, free: 1.887 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01322/0.4557, allocations: 2.58 MB / 423.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003714/0.4594, allocations: 1.025 MB / 424.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01641/0.4758, allocations: 9.348 MB / 433.5 MB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004167/0.48, allocations: 403.5 kB / 433.9 MB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006261/0.4806, allocations: 286.2 kB / 434.2 MB, free: 4.055 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002709/0.4833, allocations: 1.419 MB / 435.6 MB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005177/0.4838, allocations: 222.5 kB / 435.8 MB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007319/0.4912, allocations: 2.801 MB / 438.6 MB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0066/0.4978, allocations: 2.496 MB / 441.1 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-05/0.4978, allocations: 8.125 kB / 441.1 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.961e-05/0.4978, allocations: 11.58 kB / 441.1 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/0.5134, allocations: 6.244 MB / 447.4 MB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/0.5135, allocations: 4 kB / 447.4 MB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000943/0.5144, allocations: 171.7 kB / 447.6 MB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005437/0.5198, allocations: 1.434 MB / 449 MB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002209/0.5201, allocations: 23.98 kB / 449 MB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01181/0.5319, allocations: 7.636 MB / 456.7 MB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001292/0.5332, allocations: 1.407 MB / 458.1 MB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/0.5435, allocations: 4.821 MB / 462.9 MB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000869/0.5443, allocations: 234.4 kB / 463.1 MB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003508/0.5447, allocations: 24 kB / 463.1 MB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/0.5461, allocations: 151.7 kB / 463.3 MB, free: 6.496 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003154/0.5464, allocations: 96.2 kB / 463.4 MB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.5465, allocations: 35.98 kB / 463.4 MB, free: 6.371 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002855/0.5494, allocations: 1.577 MB / 465 MB, free: 4.777 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5494, allocations: 0 / 465 MB, free: 4.777 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004021/0.5534, allocations: 0.8749 MB / 465.9 MB, free: 3.902 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004998/0.5539, allocations: 182.7 kB / 466 MB, free: 3.719 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008395/0.5623, allocations: 4.227 MB / 470.3 MB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.888e-06/0.5623, allocations: 4 kB / 470.3 MB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003726/0.566, allocations: 1.571 MB / 471.8 MB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/0.568, allocations: 242.8 kB / 472.1 MB, free: 13.64 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/0.5796, allocations: 6.454 MB / 478.5 MB, free: 7.141 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002493/0.5821, allocations: 1.738 MB / 480.3 MB, free: 5.371 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003386/0.5855, allocations: 1.387 MB / 481.7 MB, free: 3.977 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005258/0.586, allocations: 168.4 kB / 481.8 MB, free: 3.812 MB / 430.1 MB Notification: Performance of SimCode: time 1.262e-06/0.586, allocations: 0 / 481.8 MB, free: 3.812 MB / 430.1 MB Notification: Performance of Templates: time 0.2134/0.7994, allocations: 28.35 MB / 0.4982 GB, free: 135 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.15281031280756]