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.001298/0.001298, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009991/0.0009991, allocations: 169.9 kB / 24.91 MB, free: 9.191 MB / 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.9099/0.9099, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.212e-06/1.212e-06, allocations: 0 / 273.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.999e-06/1.121e-05, allocations: 2.312 kB / 273.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.007869/0.00788, allocations: 11.3 MB / 284.8 MB, free: 5.949 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004559/0.01244, allocations: 4.253 MB / 289 MB, free: 1.684 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004762/0.01291, allocations: 87.56 kB / 289.1 MB, free: 1.598 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1066/0.1195, allocations: 2.938 MB / 292 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004056/0.1236, allocations: 2.075 MB / 294.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.1249, allocations: 0.8906 MB / 295 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004859/0.1297, allocations: 5.392 MB / 300.4 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0035/0.1332, allocations: 3.614 MB / 304 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003151/0.1364, allocations: 2.65 MB / 306.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00229/0.1387, allocations: 2.5 MB / 309.2 MB, free: 9.812 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003782/0.1391, allocations: 357.8 kB / 309.5 MB, free: 9.812 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001257/0.1403, allocations: 1.212 MB / 310.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008612/0.1412, allocations: 2.25 MB / 313 MB, free: 7.309 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009237/0.1421, allocations: 1.408 MB / 314.4 MB, free: 5.965 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002564/0.1447, allocations: 5.004 MB / 319.4 MB, free: 1.301 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1447, allocations: 0 / 319.4 MB, free: 1.301 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1447, allocations: 0 / 319.4 MB, free: 1.301 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.745e-05/0.1447, allocations: 4 kB / 319.4 MB, free: 1.297 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.004281/0.149, allocations: 4.867 MB / 324.2 MB, free: 12.81 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.149, allocations: 12.03 kB / 324.3 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003126/0.1522, allocations: 1.309 MB / 325.6 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001857/0.154, allocations: 1.887 MB / 327.5 MB, free: 9.785 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/0.1541, allocations: 273.2 kB / 327.7 MB, free: 9.559 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005408/0.1547, allocations: 425.8 kB / 328.1 MB, free: 9.191 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005963/0.1606, allocations: 5.872 MB / 334 MB, free: 3 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.8e-05/0.1607, allocations: 45.41 kB / 334.1 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002769/0.161, allocations: 173.4 kB / 334.2 MB, free: 2.852 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001627/0.1626, allocations: 1.935 MB / 336.2 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004915/0.1675, allocations: 3.164 MB / 339.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02015/0.1877, allocations: 34.85 MB / 374.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004446/0.1921, allocations: 2.446 MB / 376.6 MB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005116/0.1926, allocations: 478.2 kB / 377.1 MB, free: 7.789 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00464/0.1973, allocations: 4.286 MB / 381.4 MB, free: 3.465 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.1973, allocations: 63.8 kB / 381.4 MB, free: 3.395 MB / 330.7 MB Notification: Performance of pre-optimization done (n=183): time 2.976e-06/0.1973, allocations: 0 / 381.4 MB, free: 3.395 MB / 330.7 MB Notification: Performance of matching and sorting (n=205): time 0.01487/0.2122, allocations: 7.253 MB / 388.7 MB, free: 12.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006656/0.2129, allocations: 1.481 MB / 390.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00248/0.2153, allocations: 3.321 MB / 393.5 MB, free: 7.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.263e-05/0.2154, allocations: 49.7 kB / 393.5 MB, free: 7.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0013/0.2167, allocations: 3.352 MB / 396.9 MB, free: 3.719 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004614/0.2172, allocations: 0.8294 MB / 397.7 MB, free: 2.883 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001253/0.2184, allocations: 1.279 MB / 399 MB, free: 1.594 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.812e-05/0.2185, allocations: 305.1 kB / 399.3 MB, free: 1.293 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.2198, allocations: 0.886 MB / 400.2 MB, free: 412 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002971/0.2228, allocations: 4.884 MB / 405.1 MB, free: 9.469 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004577/0.2273, allocations: 6.475 MB / 411.5 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.952e-05/0.2274, allocations: 47.94 kB / 411.6 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.006957/0.2343, allocations: 5.076 MB / 416.7 MB, free: 11.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.072e-05/0.2344, allocations: 68 kB / 416.7 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003304/0.2377, allocations: 1.181 MB / 417.9 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003076/0.2408, allocations: 0.5957 MB / 418.5 MB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002349/0.2431, allocations: 1.54 MB / 420.1 MB, free: 8.352 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.2459, allocations: 3.113 MB / 423.2 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.2478, allocations: 311.6 kB / 423.5 MB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002968/0.2481, allocations: 363.8 kB / 423.8 MB, free: 4.379 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.0009149/0.249, allocations: 0.6846 MB / 424.5 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003067/0.2493, allocations: 243.7 kB / 424.7 MB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/0.2512, allocations: 1.349 MB / 426.1 MB, free: 2.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001365/0.2526, allocations: 0.8516 MB / 426.9 MB, free: 1.195 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2526, allocations: 0 / 426.9 MB, free: 1.195 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.2526, allocations: 11.97 kB / 427 MB, free: 1.184 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006781/0.2594, allocations: 5.955 MB / 432.9 MB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.2594, allocations: 16 kB / 432.9 MB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007155/0.2601, allocations: 327.5 kB / 433.2 MB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001166/0.2613, allocations: 0.5286 MB / 433.8 MB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.772e-05/0.2613, allocations: 63.97 kB / 433.8 MB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001714/0.2631, allocations: 2.841 MB / 436.7 MB, free: 6.949 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005444/0.2636, allocations: 1.365 MB / 438 MB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.2662, allocations: 2.622 MB / 440.7 MB, free: 2.641 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003019/0.2665, allocations: 353.3 kB / 441 MB, free: 2.293 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002355/0.2667, allocations: 63.98 kB / 441.1 MB, free: 2.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007165/0.2674, allocations: 59.97 kB / 441.1 MB, free: 2.172 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.2676, allocations: 176.3 kB / 441.3 MB, free: 2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.111e-05/0.2677, allocations: 59.98 kB / 441.4 MB, free: 1.941 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000901/0.2686, allocations: 1.198 MB / 442.6 MB, free: 0.7578 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2686, allocations: 0 / 442.6 MB, free: 0.7578 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.1111/0.3796, allocations: 1.256 MB / 443.8 MB, free: 123 MB / 394.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.0005394/0.3802, allocations: 209.1 kB / 444 MB, free: 122.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004616/0.3848, allocations: 3.247 MB / 447.3 MB, free: 122.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002203/0.385, allocations: 100.2 kB / 447.4 MB, free: 122.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001298/0.3863, allocations: 1.012 MB / 448.4 MB, free: 122.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/0.3884, allocations: 0.6811 MB / 449.1 MB, free: 122.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009023/0.3975, allocations: 8.562 MB / 457.6 MB, free: 118.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009327/0.3984, allocations: 1.321 MB / 458.9 MB, free: 118.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001165/0.3996, allocations: 0.5441 MB / 459.5 MB, free: 118.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007727/0.4003, allocations: 0.6055 MB / 460.1 MB, free: 118 MB / 394.7 MB Notification: Performance of SimCode: time 1.512e-06/0.4003, allocations: 3.781 kB / 460.1 MB, free: 118 MB / 394.7 MB Notification: Performance of Templates: time 0.04385/0.4442, allocations: 39.48 MB / 499.6 MB, free: 88.82 MB / 394.7 MB " [Timeout remaining time 660] 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: 3.8207732141017914]