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.001693/0.001693, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001908/0.001908, allocations: 139.9 kB / 24.89 MB, free: 9.207 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.8883/0.8883, allocations: 173.3 MB / 201.5 MB, free: 9.207 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.092e-06/1.092e-06, allocations: 0 / 268.5 MB, free: 6.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.006e-05/1.115e-05, allocations: 2.312 kB / 268.5 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.007965/0.007976, allocations: 11.33 MB / 279.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006106/0.01408, allocations: 4.257 MB / 284.1 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005556/0.01464, allocations: 83.56 kB / 284.1 MB, free: 6.449 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002609/0.01725, allocations: 2.939 MB / 287.1 MB, free: 3.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00227/0.01952, allocations: 2.119 MB / 289.2 MB, free: 1.371 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000853/0.02037, allocations: 0.8966 MB / 290.1 MB, free: 484 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.09882/0.1192, allocations: 5.24 MB / 295.3 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004178/0.1234, allocations: 3.628 MB / 299 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003532/0.1269, allocations: 2.66 MB / 301.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002098/0.129, allocations: 2.512 MB / 304.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003797/0.1294, allocations: 354.2 kB / 304.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/0.1305, allocations: 1.228 MB / 305.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009387/0.1315, allocations: 2.279 MB / 308 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009149/0.1324, allocations: 1.43 MB / 309.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002584/0.135, allocations: 5.074 MB / 314.5 MB, free: 8.641 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.135, allocations: 0 / 314.5 MB, free: 8.641 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.135, allocations: 0 / 314.5 MB, free: 8.641 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.897e-05/0.135, allocations: 4 kB / 314.5 MB, free: 8.637 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.003562/0.1386, allocations: 4.895 MB / 319.4 MB, free: 4.113 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.673e-05/0.1386, allocations: 12.92 kB / 319.4 MB, free: 4.102 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00262/0.1412, allocations: 1.265 MB / 320.7 MB, free: 2.895 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00151/0.1427, allocations: 1.893 MB / 322.6 MB, free: 1.129 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.866e-05/0.1428, allocations: 266.1 kB / 322.8 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004634/0.1433, allocations: 428.9 kB / 323.2 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005895/0.1492, allocations: 5.843 MB / 329.1 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.16e-05/0.1493, allocations: 52.02 kB / 329.1 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002809/0.1495, allocations: 171.5 kB / 329.3 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001569/0.1511, allocations: 1.933 MB / 331.2 MB, free: 8.332 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005691/0.1568, allocations: 3.129 MB / 334.4 MB, free: 5.441 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02398/0.1808, allocations: 34.85 MB / 369.2 MB, free: 2.633 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00686/0.1876, allocations: 2.413 MB / 371.6 MB, free: 264 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008189/0.1885, allocations: 482.1 kB / 372.1 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004884/0.1933, allocations: 4.292 MB / 376.4 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.1934, allocations: 55.88 kB / 376.5 MB, free: 11.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=183): time 3.627e-06/0.1934, allocations: 3.562 kB / 376.5 MB, free: 11.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=205): time 0.01407/0.2075, allocations: 7.154 MB / 383.6 MB, free: 4.398 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006483/0.2081, allocations: 1.51 MB / 385.1 MB, free: 2.777 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002209/0.2103, allocations: 3.309 MB / 388.4 MB, free: 15.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.122e-05/0.2104, allocations: 57.7 kB / 388.5 MB, free: 15.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001198/0.2116, allocations: 3.342 MB / 391.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004321/0.212, allocations: 0.8372 MB / 392.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000999/0.213, allocations: 1.283 MB / 393.9 MB, free: 10.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.466e-05/0.2131, allocations: 305.1 kB / 394.2 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.2143, allocations: 0.886 MB / 395.1 MB, free: 9.211 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002743/0.2171, allocations: 4.88 MB / 400 MB, free: 2.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004286/0.2214, allocations: 6.484 MB / 406.5 MB, free: 9.895 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.833e-05/0.2214, allocations: 43.94 kB / 406.5 MB, free: 9.852 MB / 362.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.007079/0.2285, allocations: 5.073 MB / 411.6 MB, free: 4.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.02e-05/0.2285, allocations: 68 kB / 411.7 MB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003392/0.2319, allocations: 1.184 MB / 412.9 MB, free: 3.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003125/0.2351, allocations: 0.584 MB / 413.4 MB, free: 2.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002458/0.2375, allocations: 1.532 MB / 415 MB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002753/0.2403, allocations: 3.12 MB / 418.1 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002193/0.2425, allocations: 299.7 kB / 418.4 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003005/0.2428, allocations: 364 kB / 418.7 MB, free: 13.38 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.001079/0.2438, allocations: 0.6808 MB / 419.4 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003006/0.2441, allocations: 243.7 kB / 419.7 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001899/0.246, allocations: 1.357 MB / 421 MB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001357/0.2474, allocations: 0.8401 MB / 421.9 MB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2474, allocations: 0 / 421.9 MB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.2474, allocations: 19.95 kB / 421.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006628/0.254, allocations: 5.975 MB / 427.9 MB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.2541, allocations: 16 kB / 427.9 MB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006855/0.2547, allocations: 319.5 kB / 428.2 MB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.2559, allocations: 0.5323 MB / 428.7 MB, free: 3.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.682e-05/0.256, allocations: 59.97 kB / 428.8 MB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1184/0.3743, allocations: 2.829 MB / 431.6 MB, free: 111.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005655/0.3749, allocations: 1.354 MB / 433 MB, free: 110.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003825/0.3787, allocations: 2.62 MB / 435.6 MB, free: 109.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000659/0.3794, allocations: 355.6 kB / 435.9 MB, free: 109.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003098/0.3797, allocations: 59.34 kB / 436 MB, free: 109.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007966/0.3805, allocations: 53.78 kB / 436 MB, free: 109.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/0.3808, allocations: 184.2 kB / 436.2 MB, free: 109.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.3809, allocations: 60.23 kB / 436.3 MB, free: 109.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001699/0.3826, allocations: 1.201 MB / 437.5 MB, free: 109.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3826, allocations: 0 / 437.5 MB, free: 109.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003793/0.3864, allocations: 1.294 MB / 438.8 MB, free: 109.1 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.0003945/0.3868, allocations: 224.2 kB / 439 MB, free: 109 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004123/0.3909, allocations: 3.248 MB / 442.2 MB, free: 108.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001764/0.3911, allocations: 101.9 kB / 442.3 MB, free: 108.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001276/0.3923, allocations: 1.009 MB / 443.3 MB, free: 108.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/0.3941, allocations: 0.6802 MB / 444 MB, free: 108.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008258/0.4024, allocations: 8.563 MB / 452.6 MB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009558/0.4033, allocations: 1.329 MB / 453.9 MB, free: 104.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001162/0.4045, allocations: 0.5413 MB / 454.5 MB, free: 104 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007886/0.4053, allocations: 0.6031 MB / 455.1 MB, free: 104 MB / 378.7 MB Notification: Performance of SimCode: time 1.182e-06/0.4053, allocations: 3.609 kB / 455.1 MB, free: 104 MB / 378.7 MB Notification: Performance of Templates: time 0.0449/0.4502, allocations: 39.75 MB / 494.8 MB, free: 70.8 MB / 378.7 MB " [Timeout remaining time 660] 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 -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.9391123983077705]