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.0007628/0.0007628, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00101/0.001772, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006213/0.0006213, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008931/0.001514, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9779/0.9779, allocations: 173.4 MB / 185.8 MB, free: 9.004 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08623/1.064, allocations: 52.5 MB / 238.3 MB, free: 4.441 MB / 234.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.523e-06/1.523e-06, allocations: 0 / 239.6 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.06e-05/2.212e-05, allocations: 6.812 kB / 239.6 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.008512/0.008534, allocations: 11.45 MB / 251 MB, free: 7.672 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006972/0.01551, allocations: 4.284 MB / 255.3 MB, free: 3.375 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.01672, allocations: 83.56 kB / 255.4 MB, free: 3.293 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003042/0.01976, allocations: 2.807 MB / 258.2 MB, free: 488 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003261/0.02302, allocations: 2.068 MB / 260.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.02416, allocations: 0.8303 MB / 261.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003858/0.02802, allocations: 5.033 MB / 266.1 MB, free: 8.523 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0025/0.03052, allocations: 3.146 MB / 269.3 MB, free: 5.312 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002265/0.03278, allocations: 2.759 MB / 272 MB, free: 2.551 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002274/0.03506, allocations: 2.49 MB / 274.5 MB, free: 56 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.1258/0.1608, allocations: 352.9 kB / 274.9 MB, free: 8.242 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003107/0.1639, allocations: 1.262 MB / 276.1 MB, free: 8.242 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002605/0.1665, allocations: 2.027 MB / 278.1 MB, free: 8.242 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003024/0.1696, allocations: 1.158 MB / 279.3 MB, free: 8.242 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007076/0.1766, allocations: 4.694 MB / 284 MB, free: 7.742 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.646e-05/0.1767, allocations: 0.5 kB / 284 MB, free: 7.742 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1767, allocations: 0 / 284 MB, free: 7.742 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002685/0.1769, allocations: 4.906 kB / 284 MB, free: 7.742 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.01356/0.1905, allocations: 5.925 MB / 289.9 MB, free: 5.559 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.1905, allocations: 9.844 kB / 289.9 MB, free: 5.559 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003439/0.194, allocations: 1.262 MB / 291.2 MB, free: 5.535 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002734/0.1967, allocations: 1.886 MB / 293.1 MB, free: 4.961 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.1968, allocations: 270.6 kB / 293.3 MB, free: 4.953 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005828/0.1974, allocations: 426 kB / 293.8 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008986/0.2064, allocations: 5.835 MB / 299.6 MB, free: 2.613 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001236/0.2065, allocations: 51.14 kB / 299.6 MB, free: 2.609 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003576/0.2069, allocations: 170.5 kB / 299.8 MB, free: 2.609 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001683/0.2086, allocations: 1.943 MB / 301.8 MB, free: 1.895 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007785/0.2163, allocations: 3.111 MB / 304.9 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03839/0.2547, allocations: 34.85 MB / 339.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004947/0.2597, allocations: 2.373 MB / 342.1 MB, free: 10.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008229/0.2605, allocations: 471.1 kB / 342.6 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00782/0.2683, allocations: 4.264 MB / 346.8 MB, free: 5.957 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.506e-05/0.2684, allocations: 51.88 kB / 346.9 MB, free: 5.898 MB / 314.7 MB Notification: Performance of pre-optimization done (n=183): time 5.951e-06/0.2684, allocations: 0 / 346.9 MB, free: 5.898 MB / 314.7 MB Notification: Performance of matching and sorting (n=205): time 0.01824/0.2866, allocations: 7.18 MB / 354 MB, free: 14.8 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009346/0.2875, allocations: 1.494 MB / 355.5 MB, free: 13.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003734/0.2913, allocations: 3.312 MB / 358.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000191/0.2915, allocations: 53.69 kB / 358.9 MB, free: 10.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/0.2932, allocations: 3.344 MB / 362.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006412/0.2938, allocations: 0.8427 MB / 363.1 MB, free: 6.457 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001206/0.295, allocations: 1.275 MB / 364.4 MB, free: 5.324 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.047e-05/0.2951, allocations: 309 kB / 364.7 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001524/0.2966, allocations: 0.886 MB / 365.6 MB, free: 4.133 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003442/0.3, allocations: 4.88 MB / 370.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005934/0.306, allocations: 6.483 MB / 376.9 MB, free: 5.242 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001229/0.3061, allocations: 44 kB / 377 MB, free: 5.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.009887/0.316, allocations: 5.082 MB / 382 MB, free: 100 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.989e-05/0.316, allocations: 68 kB / 382.1 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003317/0.3194, allocations: 1.186 MB / 383.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003097/0.3225, allocations: 0.5904 MB / 383.9 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003754/0.3262, allocations: 1.724 MB / 385.6 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003128/0.3293, allocations: 3.123 MB / 388.7 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004/0.3333, allocations: 299.7 kB / 389 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001065/0.3344, allocations: 367.9 kB / 389.4 MB, free: 8.562 MB / 362.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.002631/0.337, allocations: 0.6727 MB / 390.1 MB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000728/0.3378, allocations: 243.8 kB / 390.3 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002334/0.3401, allocations: 1.355 MB / 391.6 MB, free: 6.262 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001407/0.3415, allocations: 0.8467 MB / 392.5 MB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.3415, allocations: 4 kB / 392.5 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.3415, allocations: 15.89 kB / 392.5 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009229/0.3508, allocations: 5.967 MB / 398.5 MB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/0.3508, allocations: 12 kB / 398.5 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009502/0.3517, allocations: 375.4 kB / 398.9 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009456/0.3527, allocations: 346.1 kB / 399.2 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001452/0.3541, allocations: 0.5318 MB / 399.7 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000178/0.3543, allocations: 67.97 kB / 399.8 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002083/0.3564, allocations: 2.831 MB / 402.6 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005578/0.3569, allocations: 1.361 MB / 404 MB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003377/0.3603, allocations: 2.622 MB / 406.6 MB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006436/0.361, allocations: 67.97 kB / 406.7 MB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008838/0.3618, allocations: 44 kB / 406.7 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.3621, allocations: 180.3 kB / 406.9 MB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.381e-05/0.3621, allocations: 67.97 kB / 407 MB, free: 6.699 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001587/0.3637, allocations: 1.198 MB / 408.2 MB, free: 5.516 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3637, allocations: 0 / 408.2 MB, free: 5.516 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004248/0.368, allocations: 1.293 MB / 409.5 MB, free: 4.223 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.0004556/0.3684, allocations: 231.6 kB / 409.7 MB, free: 3.984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004482/0.3729, allocations: 3.24 MB / 412.9 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002098/0.3731, allocations: 116.7 kB / 413 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1049/0.478, allocations: 1.01 MB / 414 MB, free: 118.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003164/0.4812, allocations: 0.9541 MB / 415 MB, free: 118.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/0.4966, allocations: 8.824 MB / 423.8 MB, free: 114.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/0.4981, allocations: 1.337 MB / 425.2 MB, free: 114.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001615/0.4998, allocations: 0.5443 MB / 425.7 MB, free: 114.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000827/0.5006, allocations: 0.613 MB / 426.3 MB, free: 114.4 MB / 378.7 MB Notification: Performance of SimCode: time 2.214e-06/0.5006, allocations: 0 / 426.3 MB, free: 114.4 MB / 378.7 MB Notification: Performance of Templates: time 0.0547/0.5553, allocations: 40.55 MB / 466.9 MB, free: 84.75 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 -emit_protected -ignoreHideResult -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.986111309379339]