Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009698/0.0009698, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9834/0.9834, allocations: 177 MB / 204.8 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 3.938 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.373e-05, allocations: 2.312 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.009285/0.009309, allocations: 11.65 MB / 284.6 MB, free: 5.734 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007568/0.01688, allocations: 4.13 MB / 288.7 MB, free: 1.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00138/0.01826, allocations: 79.62 kB / 288.8 MB, free: 1.512 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1414/0.1596, allocations: 2.96 MB / 291.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005009/0.1646, allocations: 2.059 MB / 293.8 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001479/0.1661, allocations: 0.8966 MB / 294.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006127/0.1722, allocations: 5.391 MB / 300.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0044/0.1766, allocations: 3.535 MB / 303.6 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003436/0.1801, allocations: 2.609 MB / 306.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002238/0.1823, allocations: 2.661 MB / 308.9 MB, free: 9.527 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004388/0.1827, allocations: 358.3 kB / 309.3 MB, free: 9.527 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.1841, allocations: 1.229 MB / 310.5 MB, free: 9.152 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009539/0.1851, allocations: 2.247 MB / 312.7 MB, free: 7.344 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.1861, allocations: 1.418 MB / 314.1 MB, free: 5.992 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003065/0.1892, allocations: 5.026 MB / 319.2 MB, free: 1.305 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1892, allocations: 0 / 319.2 MB, free: 1.305 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1892, allocations: 4 kB / 319.2 MB, free: 1.301 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.362e-05/0.1892, allocations: 0 / 319.2 MB, free: 1.301 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.006098/0.1953, allocations: 5.757 MB / 324.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.1954, allocations: 8.031 kB / 324.9 MB, free: 11.58 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005047/0.2004, allocations: 2.788 MB / 327.7 MB, free: 8.832 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002516/0.2029, allocations: 2.245 MB / 330 MB, free: 6.727 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/0.2031, allocations: 268.9 kB / 330.2 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005369/0.2036, allocations: 434.7 kB / 330.7 MB, free: 6.129 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00944/0.2131, allocations: 8.08 MB / 338.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.569e-05/0.2131, allocations: 47.2 kB / 338.8 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002817/0.2134, allocations: 174.5 kB / 339 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001858/0.2153, allocations: 2.169 MB / 341.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009058/0.2243, allocations: 4.842 MB / 346 MB, free: 6.242 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02979/0.2541, allocations: 49.49 MB / 395.5 MB, free: 3.441 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005714/0.2598, allocations: 2.872 MB / 398.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008562/0.2607, allocations: 0.6786 MB / 399 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005797/0.2665, allocations: 4.944 MB / 403.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.2665, allocations: 66.64 kB / 404 MB, free: 10.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=183): time 2.985e-06/0.2665, allocations: 0 / 404 MB, free: 10.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=205): time 0.02048/0.287, allocations: 12.31 MB / 416.3 MB, free: 14.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009878/0.288, allocations: 2.043 MB / 418.4 MB, free: 12.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/0.2913, allocations: 3.683 MB / 422 MB, free: 8.562 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.895e-05/0.2914, allocations: 64.98 kB / 422.1 MB, free: 8.496 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001661/0.2931, allocations: 3.695 MB / 425.8 MB, free: 4.816 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006664/0.2937, allocations: 0.8658 MB / 426.7 MB, free: 3.961 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001185/0.2949, allocations: 1.448 MB / 428.1 MB, free: 2.504 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.664e-05/0.295, allocations: 484.7 kB / 428.6 MB, free: 2.027 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001148/0.2962, allocations: 0.7902 MB / 429.4 MB, free: 1.234 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1524/0.4485, allocations: 6.885 MB / 436.3 MB, free: 106 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006757/0.4553, allocations: 8.492 MB / 444.8 MB, free: 97.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.649e-05/0.4554, allocations: 41.31 kB / 444.8 MB, free: 97.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01381/0.4692, allocations: 7.318 MB / 452.1 MB, free: 96.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.894e-05/0.4693, allocations: 67.12 kB / 452.2 MB, free: 96.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004871/0.4741, allocations: 2.443 MB / 454.6 MB, free: 96.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00482/0.4789, allocations: 1.85 MB / 456.5 MB, free: 96.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002569/0.4815, allocations: 1.597 MB / 458.1 MB, free: 96.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003537/0.485, allocations: 4.72 MB / 462.8 MB, free: 92.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002958/0.488, allocations: 0.5116 MB / 463.3 MB, free: 92.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003658/0.4884, allocations: 423.3 kB / 463.7 MB, free: 92.67 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * 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 (856): * Single equations (assignments): 847 * 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.001262/0.4896, allocations: 0.7118 MB / 464.4 MB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003895/0.49, allocations: 415.5 kB / 464.8 MB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002725/0.4928, allocations: 1.884 MB / 466.7 MB, free: 92.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002051/0.4948, allocations: 1.396 MB / 468.1 MB, free: 91.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.4948, allocations: 4 kB / 468.1 MB, free: 91.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.4948, allocations: 9.938 kB / 468.1 MB, free: 91.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009025/0.5038, allocations: 7.784 MB / 475.9 MB, free: 84.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.5039, allocations: 16 kB / 475.9 MB, free: 84.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007853/0.5046, allocations: 371.4 kB / 476.3 MB, free: 84.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/0.5059, allocations: 0.5699 MB / 476.9 MB, free: 83.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.506, allocations: 60.59 kB / 476.9 MB, free: 83.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/0.508, allocations: 4.18 MB / 481.1 MB, free: 79.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005441/0.5085, allocations: 1.916 MB / 483 MB, free: 77.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003479/0.512, allocations: 3.562 MB / 486.6 MB, free: 73.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004708/0.5125, allocations: 366.2 kB / 486.9 MB, free: 73.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/0.5127, allocations: 55.98 kB / 487 MB, free: 73.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008802/0.5136, allocations: 199.7 kB / 487.2 MB, free: 73.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.5137, allocations: 180.3 kB / 487.4 MB, free: 72.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.13e-05/0.5138, allocations: 78.62 kB / 487.4 MB, free: 72.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001415/0.5152, allocations: 1.563 MB / 489 MB, free: 71.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5152, allocations: 0 / 489 MB, free: 71.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003687/0.5189, allocations: 1.265 MB / 490.3 MB, free: 70.11 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.0003537/0.5193, allocations: 227.6 kB / 490.5 MB, free: 69.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00451/0.5238, allocations: 3.972 MB / 494.5 MB, free: 65.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.5238, allocations: 4 kB / 494.5 MB, free: 65.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.5253, allocations: 1.47 MB / 495.9 MB, free: 64.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.5267, allocations: 465.4 kB / 496.4 MB, free: 63.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008181/0.5349, allocations: 9.038 MB / 0.4936 GB, free: 54.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008247/0.5357, allocations: 1.339 MB / 0.4949 GB, free: 53.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002142/0.5379, allocations: 1.726 MB / 0.4966 GB, free: 51.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004331/0.5383, allocations: 268.4 kB / 0.4968 GB, free: 51.27 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5383, allocations: 0 / 0.4968 GB, free: 51.27 MB / 378.7 MB Notification: Performance of Templates: time 0.04193/0.5802, allocations: 36.4 MB / 0.5324 GB, free: 15.46 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 4.264405923895538]