Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.001035/0.001035, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 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.001128/0.001128, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9581/0.9581, allocations: 177.1 MB / 205 MB, free: 5.297 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.845e-05/3.022e-05, allocations: 5.266 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.0203/0.02033, allocations: 11.64 MB / 284.6 MB, free: 5.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00727/0.0276, allocations: 4.13 MB / 288.8 MB, free: 1.539 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/0.02925, allocations: 83.56 kB / 288.9 MB, free: 1.457 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1192/0.1484, allocations: 2.951 MB / 291.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004718/0.1531, allocations: 2.072 MB / 293.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.1547, allocations: 0.8903 MB / 294.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00586/0.1606, allocations: 5.391 MB / 300.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003951/0.1645, allocations: 3.531 MB / 303.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004083/0.1686, allocations: 2.643 MB / 306.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002806/0.1714, allocations: 2.626 MB / 309 MB, free: 9.766 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007228/0.1721, allocations: 352.9 kB / 309.3 MB, free: 9.766 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00161/0.1737, allocations: 1.221 MB / 310.5 MB, free: 9.395 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001051/0.1748, allocations: 2.249 MB / 312.8 MB, free: 7.582 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.176, allocations: 1.409 MB / 314.2 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003657/0.1796, allocations: 5.002 MB / 319.2 MB, free: 1.574 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1796, allocations: 0 / 319.2 MB, free: 1.574 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1796, allocations: 0 / 319.2 MB, free: 1.574 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.646e-05/0.1797, allocations: 0 / 319.2 MB, free: 1.574 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.006056/0.1858, allocations: 5.742 MB / 324.9 MB, free: 11.89 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1858, allocations: 8.031 kB / 324.9 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004975/0.1908, allocations: 2.786 MB / 327.7 MB, free: 9.133 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002862/0.1937, allocations: 2.237 MB / 330 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.1938, allocations: 269.9 kB / 330.2 MB, free: 6.809 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000539/0.1943, allocations: 430.4 kB / 330.6 MB, free: 6.434 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01016/0.2045, allocations: 8.092 MB / 338.7 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.067e-05/0.2046, allocations: 44.05 kB / 338.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002984/0.2049, allocations: 172.2 kB / 338.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001806/0.2067, allocations: 2.169 MB / 341.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008842/0.2155, allocations: 4.848 MB / 346 MB, free: 6.527 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03263/0.2481, allocations: 49.47 MB / 395.4 MB, free: 3.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005626/0.2538, allocations: 2.875 MB / 398.3 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008366/0.2546, allocations: 0.6708 MB / 399 MB, free: 144 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006057/0.2607, allocations: 4.962 MB / 403.9 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.676e-05/0.2607, allocations: 62.69 kB / 404 MB, free: 11.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=183): time 3.667e-06/0.2607, allocations: 0 / 404 MB, free: 11.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=205): time 0.02254/0.2833, allocations: 12.31 MB / 416.3 MB, free: 14.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009395/0.2842, allocations: 2.048 MB / 418.4 MB, free: 12.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003575/0.2878, allocations: 3.687 MB / 422.1 MB, free: 8.832 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.2879, allocations: 61.84 kB / 422.1 MB, free: 8.766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002075/0.29, allocations: 3.705 MB / 425.8 MB, free: 5.078 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006098/0.2906, allocations: 0.8597 MB / 426.7 MB, free: 4.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/0.2918, allocations: 1.451 MB / 428.1 MB, free: 2.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.667e-05/0.2919, allocations: 484.7 kB / 428.6 MB, free: 2.293 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00127/0.2932, allocations: 0.7863 MB / 429.4 MB, free: 1.504 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1321/0.4253, allocations: 6.894 MB / 436.3 MB, free: 105.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006241/0.4316, allocations: 8.508 MB / 444.8 MB, free: 97.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001306/0.4317, allocations: 41.47 kB / 444.8 MB, free: 97.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.01394/0.4456, allocations: 7.327 MB / 452.2 MB, free: 96.22 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.859e-05/0.4457, allocations: 65.09 kB / 452.2 MB, free: 96.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005063/0.4508, allocations: 2.446 MB / 454.7 MB, free: 96.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005003/0.4558, allocations: 1.849 MB / 456.5 MB, free: 96.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003189/0.459, allocations: 1.598 MB / 458.1 MB, free: 95.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003587/0.4626, allocations: 4.728 MB / 462.8 MB, free: 92.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/0.466, allocations: 0.5146 MB / 463.4 MB, free: 92.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004774/0.4664, allocations: 417.3 kB / 463.8 MB, free: 92.28 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.001342/0.4678, allocations: 0.7172 MB / 464.5 MB, free: 91.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004813/0.4683, allocations: 408.9 kB / 464.9 MB, free: 91.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002579/0.4708, allocations: 1.879 MB / 466.8 MB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00205/0.4729, allocations: 1.403 MB / 468.2 MB, free: 91.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.4729, allocations: 4 kB / 468.2 MB, free: 91.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.4729, allocations: 7.688 kB / 468.2 MB, free: 91.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008475/0.4814, allocations: 7.793 MB / 476 MB, free: 84.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.4814, allocations: 12 kB / 476 MB, free: 84.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007744/0.4822, allocations: 368.2 kB / 476.3 MB, free: 84.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001244/0.4834, allocations: 0.5751 MB / 476.9 MB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.4835, allocations: 63.97 kB / 477 MB, free: 83.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001847/0.4854, allocations: 4.171 MB / 481.1 MB, free: 79.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004121/0.4858, allocations: 1.928 MB / 483.1 MB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003346/0.4891, allocations: 3.556 MB / 486.6 MB, free: 73.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004922/0.4896, allocations: 362.2 kB / 487 MB, free: 73.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002454/0.4899, allocations: 62.64 kB / 487 MB, free: 73.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00089/0.4908, allocations: 195.7 kB / 487.2 MB, free: 73.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.491, allocations: 180.3 kB / 487.4 MB, free: 72.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.184e-05/0.491, allocations: 71.98 kB / 487.5 MB, free: 72.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001433/0.4925, allocations: 1.571 MB / 489.1 MB, free: 71.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4925, allocations: 0 / 489.1 MB, free: 71.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003491/0.496, allocations: 1.263 MB / 490.3 MB, free: 69.98 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.0003606/0.4963, allocations: 230.9 kB / 490.5 MB, free: 69.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004778/0.5011, allocations: 3.966 MB / 494.5 MB, free: 65.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.5011, allocations: 4 kB / 494.5 MB, free: 65.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001557/0.5027, allocations: 1.466 MB / 496 MB, free: 64.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/0.5043, allocations: 479.3 kB / 496.4 MB, free: 63.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009859/0.5142, allocations: 9.039 MB / 0.4936 GB, free: 54.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.5152, allocations: 1.335 MB / 0.4949 GB, free: 53.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002548/0.5178, allocations: 1.731 MB / 0.4966 GB, free: 51.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005363/0.5183, allocations: 260.4 kB / 0.4969 GB, free: 51.13 MB / 378.7 MB Notification: Performance of SimCode: time 2.975e-06/0.5183, allocations: 0 / 0.4969 GB, free: 51.13 MB / 378.7 MB Notification: Performance of Templates: time 0.04543/0.5637, allocations: 37.65 MB / 0.5336 GB, free: 14.09 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.234075122978538]