Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.0007899/0.0007899, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001085/0.001874, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006941/0.0006941, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000949/0.001643, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9189/0.9189, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08965/1.009, allocations: 52.5 MB / 238.3 MB, free: 4.426 MB / 234.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.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 239.5 MB, free: 3.172 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.138e-05/1.281e-05, allocations: 6.25 kB / 239.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.009522/0.009535, allocations: 10.24 MB / 249.8 MB, free: 8.879 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006876/0.01641, allocations: 4.004 MB / 253.8 MB, free: 4.863 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008847/0.0173, allocations: 71.62 kB / 253.9 MB, free: 4.793 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003175/0.02047, allocations: 2.632 MB / 256.5 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002943/0.02341, allocations: 1.846 MB / 258.3 MB, free: 304 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.02458, allocations: 0.6938 MB / 259 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003362/0.02794, allocations: 3.938 MB / 263 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00254/0.03048, allocations: 2.863 MB / 265.8 MB, free: 8.711 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002052/0.03254, allocations: 2.357 MB / 268.2 MB, free: 6.352 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001605/0.03414, allocations: 2.018 MB / 270.2 MB, free: 4.328 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003337/0.03447, allocations: 320 kB / 270.5 MB, free: 4.016 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001329/0.0358, allocations: 1.158 MB / 271.7 MB, free: 2.855 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.03681, allocations: 1.757 MB / 273.4 MB, free: 1.094 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009425/0.03776, allocations: 1.024 MB / 274.5 MB, free: 68 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1286/0.1664, allocations: 4.09 MB / 278.6 MB, free: 8.332 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.9e-05/0.1664, allocations: 1.031 kB / 278.6 MB, free: 8.332 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1664, allocations: 0 / 278.6 MB, free: 8.332 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002573/0.1667, allocations: 0 / 278.6 MB, free: 8.332 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.01456/0.1812, allocations: 5.203 MB / 283.8 MB, free: 6.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1813, allocations: 10.25 kB / 283.8 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004111/0.1854, allocations: 1.071 MB / 284.8 MB, free: 6.395 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003058/0.1884, allocations: 1.536 MB / 286.4 MB, free: 5.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.1886, allocations: 245 kB / 286.6 MB, free: 5.922 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006636/0.1892, allocations: 397.7 kB / 287 MB, free: 5.914 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009263/0.1985, allocations: 5.146 MB / 292.2 MB, free: 3.832 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.798e-05/0.1986, allocations: 35.72 kB / 292.2 MB, free: 3.832 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002995/0.1989, allocations: 156.5 kB / 292.3 MB, free: 3.832 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00146/0.2003, allocations: 1.7 MB / 294 MB, free: 3.824 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00536/0.2057, allocations: 2.665 MB / 296.7 MB, free: 3.699 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02463/0.2303, allocations: 31.04 MB / 327.7 MB, free: 8.766 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004018/0.2344, allocations: 2.17 MB / 329.9 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000516/0.2349, allocations: 399.8 kB / 330.3 MB, free: 6.219 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005345/0.2402, allocations: 3.838 MB / 334.1 MB, free: 2.445 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.2403, allocations: 54.09 kB / 334.2 MB, free: 2.387 MB / 298.7 MB Notification: Performance of pre-optimization done (n=152): time 3.857e-06/0.2403, allocations: 3.391 kB / 334.2 MB, free: 2.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=159): time 0.01113/0.2514, allocations: 5.21 MB / 339.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006959/0.2521, allocations: 1.492 MB / 340.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002888/0.255, allocations: 3.041 MB / 343.9 MB, free: 9.133 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001924/0.2552, allocations: 49.7 kB / 344 MB, free: 9.078 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001207/0.2564, allocations: 3.085 MB / 347.1 MB, free: 6.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005567/0.2569, allocations: 0.675 MB / 347.7 MB, free: 5.523 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009816/0.2579, allocations: 1.183 MB / 348.9 MB, free: 4.469 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.31e-05/0.258, allocations: 305.1 kB / 349.2 MB, free: 4.168 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001648/0.2596, allocations: 0.8097 MB / 350 MB, free: 3.352 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002961/0.2626, allocations: 4.596 MB / 354.6 MB, free: 13.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004779/0.2674, allocations: 6.062 MB / 360.7 MB, free: 5.367 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.76e-05/0.2674, allocations: 40 kB / 360.7 MB, free: 5.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.00857/0.276, allocations: 4.968 MB / 365.7 MB, free: 356 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.837e-05/0.2761, allocations: 64 kB / 365.8 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003483/0.2795, allocations: 1.277 MB / 367 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004008/0.2835, allocations: 1.101 MB / 368.1 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004441/0.288, allocations: 1.474 MB / 369.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004603/0.2926, allocations: 3.861 MB / 373.5 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005713/0.2983, allocations: 275.7 kB / 373.8 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001344/0.2996, allocations: 342.1 kB / 374.1 MB, free: 7.746 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (742): * Single equations (assignments): 732 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,32)} Notification: Performance of prepare postOptimizeDAE: time 0.003227/0.3029, allocations: 0.64 MB / 374.7 MB, free: 7.098 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008473/0.3037, allocations: 199.8 kB / 374.9 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003649/0.3074, allocations: 1.4 MB / 376.3 MB, free: 5.477 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002499/0.3099, allocations: 0.9755 MB / 377.3 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.616e-05/0.3099, allocations: 4 kB / 377.3 MB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.761e-05/0.3099, allocations: 7.969 kB / 377.3 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/0.322, allocations: 4.147 MB / 381.5 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.322, allocations: 0 / 381.5 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008924/0.3229, allocations: 190.8 kB / 381.6 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/0.3242, allocations: 273.8 kB / 381.9 MB, free: 64 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004332/0.3286, allocations: 1.038 MB / 382.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003447/0.3289, allocations: 35.09 kB / 383 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003869/0.3328, allocations: 3.571 MB / 386.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008539/0.3336, allocations: 1.346 MB / 387.9 MB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005214/0.3388, allocations: 2.168 MB / 390.1 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/0.34, allocations: 35.89 kB / 390.1 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.3413, allocations: 28 kB / 390.1 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002408/0.3415, allocations: 96.78 kB / 390.2 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.3417, allocations: 35.98 kB / 390.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002292/0.3439, allocations: 1.071 MB / 391.3 MB, free: 6.473 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3439, allocations: 0 / 391.3 MB, free: 6.473 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007023/0.351, allocations: 1.113 MB / 392.4 MB, free: 5.359 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006223/0.3516, allocations: 182.4 kB / 392.6 MB, free: 5.184 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00521/0.3568, allocations: 2.951 MB / 395.6 MB, free: 2.281 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002229/0.357, allocations: 108.3 kB / 395.7 MB, free: 2.168 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.3583, allocations: 0.9131 MB / 396.6 MB, free: 1.242 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/0.3609, allocations: 0.7789 MB / 397.4 MB, free: 472 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009696/0.3706, allocations: 7.267 MB / 404.6 MB, free: 9.109 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009314/0.3715, allocations: 1.161 MB / 405.8 MB, free: 7.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001054/0.3726, allocations: 459 kB / 406.2 MB, free: 7.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000744/0.3733, allocations: 0.4934 MB / 406.7 MB, free: 6.984 MB / 378.7 MB Notification: Performance of SimCode: time 1.343e-06/0.3733, allocations: 0 / 406.7 MB, free: 6.984 MB / 378.7 MB Notification: Performance of Templates: time 0.1489/0.5222, allocations: 36.28 MB / 443 MB, free: 106.7 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.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: 3.8107327446341515]