Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.001189/0.001189, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001382/0.001382, allocations: 147.4 kB / 24.89 MB, free: 8.742 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.9421/0.9421, allocations: 173.4 MB / 201.5 MB, free: 8.738 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.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 268.5 MB, free: 5.984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.321e-05/2.469e-05, allocations: 10.11 kB / 268.5 MB, free: 5.977 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01214/0.01217, allocations: 11.37 MB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006996/0.01916, allocations: 4.256 MB / 284.2 MB, free: 6.273 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001695/0.02086, allocations: 79.62 kB / 284.2 MB, free: 6.195 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003186/0.02405, allocations: 2.908 MB / 287.1 MB, free: 3.277 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003785/0.02783, allocations: 2.08 MB / 289.2 MB, free: 1.188 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.02913, allocations: 0.8927 MB / 290.1 MB, free: 300 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1091/0.1382, allocations: 5.243 MB / 295.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004552/0.1427, allocations: 3.406 MB / 298.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004153/0.1469, allocations: 2.602 MB / 301.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003206/0.1501, allocations: 2.512 MB / 303.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000811/0.1509, allocations: 356.5 kB / 304.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001726/0.1526, allocations: 1.271 MB / 305.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001196/0.1538, allocations: 2.277 MB / 307.8 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.1551, allocations: 1.429 MB / 309.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003765/0.1588, allocations: 5.068 MB / 314.3 MB, free: 8.715 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1588, allocations: 3.875 kB / 314.3 MB, free: 8.715 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1588, allocations: 0 / 314.3 MB, free: 8.715 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.047e-05/0.1589, allocations: 4 kB / 314.3 MB, free: 8.711 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.004107/0.163, allocations: 4.9 MB / 319.2 MB, free: 4.184 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.1631, allocations: 16.92 kB / 319.2 MB, free: 4.168 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00299/0.166, allocations: 1.267 MB / 320.5 MB, free: 2.957 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001901/0.1679, allocations: 1.879 MB / 322.3 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.1681, allocations: 269.4 kB / 322.6 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000473/0.1686, allocations: 428.3 kB / 323 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006809/0.1754, allocations: 5.854 MB / 328.9 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.012e-05/0.1755, allocations: 41.05 kB / 328.9 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002828/0.1757, allocations: 180.6 kB / 329.1 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001587/0.1773, allocations: 1.922 MB / 331 MB, free: 8.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006415/0.1837, allocations: 3.135 MB / 334.1 MB, free: 5.512 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02829/0.212, allocations: 34.86 MB / 369 MB, free: 2.703 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005037/0.2171, allocations: 2.417 MB / 371.4 MB, free: 332 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007599/0.2178, allocations: 483.4 kB / 371.9 MB, free: 15.85 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005786/0.2236, allocations: 4.293 MB / 376.2 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.192e-05/0.2237, allocations: 59.06 kB / 376.2 MB, free: 11.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=183): time 4.679e-06/0.2237, allocations: 0 / 376.2 MB, free: 11.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=205): time 0.01657/0.2402, allocations: 7.271 MB / 383.5 MB, free: 4.344 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008179/0.241, allocations: 1.495 MB / 385 MB, free: 2.734 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002911/0.244, allocations: 3.312 MB / 388.3 MB, free: 15.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002062/0.2442, allocations: 49.7 kB / 388.4 MB, free: 15.85 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/0.2456, allocations: 3.356 MB / 391.7 MB, free: 12.46 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006653/0.2462, allocations: 0.8411 MB / 392.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001079/0.2473, allocations: 1.275 MB / 393.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.391e-05/0.2474, allocations: 301.1 kB / 394.1 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001359/0.2487, allocations: 0.8939 MB / 395 MB, free: 9.133 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002932/0.2517, allocations: 4.874 MB / 399.9 MB, free: 2.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004933/0.2566, allocations: 6.489 MB / 406.4 MB, free: 9.816 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-05/0.2567, allocations: 47.94 kB / 406.4 MB, free: 9.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.008144/0.2648, allocations: 5.065 MB / 411.5 MB, free: 4.676 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.458e-05/0.2649, allocations: 72.25 kB / 411.6 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003379/0.2683, allocations: 1.173 MB / 412.7 MB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003195/0.2715, allocations: 0.5919 MB / 413.3 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003182/0.2746, allocations: 1.618 MB / 415 MB, free: 1.184 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003135/0.2778, allocations: 3.116 MB / 418.1 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002943/0.2807, allocations: 303.7 kB / 418.4 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004633/0.2812, allocations: 360 kB / 418.7 MB, free: 13.22 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 666 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (857): * Single equations (assignments): 848 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 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): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001346/0.2825, allocations: 0.6805 MB / 419.4 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004339/0.283, allocations: 243.7 kB / 419.6 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002041/0.285, allocations: 1.361 MB / 421 MB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001411/0.2864, allocations: 0.8362 MB / 421.8 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.2864, allocations: 4 kB / 421.8 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.2864, allocations: 7.969 kB / 421.8 MB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008136/0.2946, allocations: 5.986 MB / 427.8 MB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.2946, allocations: 15.94 kB / 427.8 MB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008661/0.2954, allocations: 352.3 kB / 428.2 MB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/0.2967, allocations: 0.528 MB / 428.7 MB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/0.2968, allocations: 59.97 kB / 428.8 MB, free: 2.777 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1164/0.4133, allocations: 2.827 MB / 431.6 MB, free: 111.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005918/0.4139, allocations: 1.352 MB / 433 MB, free: 109.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004474/0.4184, allocations: 2.627 MB / 435.6 MB, free: 108.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008726/0.4192, allocations: 357.8 kB / 435.9 MB, free: 108.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00041/0.4196, allocations: 56.31 kB / 436 MB, free: 108.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.4208, allocations: 50.06 kB / 436 MB, free: 108.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000355/0.4211, allocations: 175 kB / 436.2 MB, free: 108.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/0.4213, allocations: 67.97 kB / 436.3 MB, free: 108.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002001/0.4233, allocations: 1.201 MB / 437.5 MB, free: 108.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4233, allocations: 1 kB / 437.5 MB, free: 108.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005786/0.4291, allocations: 1.287 MB / 438.8 MB, free: 108.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($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],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005471/0.4296, allocations: 224 kB / 439 MB, free: 108.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005033/0.4346, allocations: 3.249 MB / 442.2 MB, free: 108.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002726/0.4349, allocations: 101.8 kB / 442.3 MB, free: 108.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/0.4364, allocations: 1.019 MB / 443.4 MB, free: 107.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002401/0.4388, allocations: 0.6745 MB / 444 MB, free: 107.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009643/0.4484, allocations: 8.56 MB / 452.6 MB, free: 103.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.4496, allocations: 1.329 MB / 453.9 MB, free: 103.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001374/0.451, allocations: 0.5439 MB / 454.5 MB, free: 103.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008584/0.4518, allocations: 0.6075 MB / 455.1 MB, free: 103.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/0.4518, allocations: 3.906 kB / 455.1 MB, free: 103.5 MB / 378.7 MB Notification: Performance of Templates: time 0.04688/0.4987, allocations: 39.78 MB / 494.8 MB, free: 70.56 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.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.822924012783915]