Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.001407/0.001407, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001671/0.001671, 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 1.003/1.003, allocations: 177.1 MB / 205 MB, free: 5.59 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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.043e-06/2.043e-06, allocations: 0 / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.289e-05/3.493e-05, allocations: 2.312 kB / 273 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.00726/0.007295, allocations: 7.245 MB / 280.2 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005153/0.01245, allocations: 3.187 MB / 283.4 MB, free: 7.023 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009291/0.01338, allocations: 39.81 kB / 283.5 MB, free: 6.984 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001602/0.01498, allocations: 1.109 MB / 284.6 MB, free: 5.871 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00248/0.01746, allocations: 1.424 MB / 286 MB, free: 4.441 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007899/0.01825, allocations: 498.8 kB / 286.5 MB, free: 3.953 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002734/0.02098, allocations: 3.023 MB / 289.5 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1348/0.1557, allocations: 1.628 MB / 291.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003087/0.1588, allocations: 1.316 MB / 292.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002768/0.1616, allocations: 1.416 MB / 293.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007056/0.1623, allocations: 173.3 kB / 294 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002099/0.1644, allocations: 0.962 MB / 295 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001308/0.1657, allocations: 1.176 MB / 296.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001727/0.1674, allocations: 0.7184 MB / 296.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005599/0.173, allocations: 2.97 MB / 299.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.173, allocations: 0 / 299.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.173, allocations: 0 / 299.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001471/0.1732, allocations: 3.531 kB / 299.9 MB, free: 14.16 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.007358/0.1805, allocations: 3.352 MB / 303.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.1806, allocations: 9.562 kB / 303.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005832/0.1864, allocations: 2.183 MB / 305.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002272/0.1887, allocations: 1.225 MB / 306.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.013e-05/0.1888, allocations: 131.3 kB / 306.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004048/0.1892, allocations: 254.1 kB / 307 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00558/0.1948, allocations: 4.074 MB / 311.1 MB, free: 8.633 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.348e-05/0.1948, allocations: 33.52 kB / 311.1 MB, free: 8.625 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000204/0.195, allocations: 83.66 kB / 311.2 MB, free: 8.594 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001304/0.1963, allocations: 1.364 MB / 312.6 MB, free: 8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004859/0.2012, allocations: 2.43 MB / 315 MB, free: 5.711 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02261/0.2238, allocations: 28.6 MB / 343.6 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003778/0.2276, allocations: 1.436 MB / 345 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005545/0.2281, allocations: 371.5 kB / 345.4 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003499/0.2316, allocations: 2.562 MB / 347.9 MB, free: 4.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.2317, allocations: 57.11 kB / 348 MB, free: 4.027 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 5.28e-06/0.2317, allocations: 0 / 348 MB, free: 4.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.01381/0.2455, allocations: 7.349 MB / 355.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001012/0.2465, allocations: 2.036 MB / 357.4 MB, free: 10.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002602/0.2491, allocations: 2.444 MB / 359.8 MB, free: 7.961 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.558e-05/0.2492, allocations: 41.7 kB / 359.9 MB, free: 7.914 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001109/0.2503, allocations: 2.295 MB / 362.2 MB, free: 5.629 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004661/0.2508, allocations: 0.5452 MB / 362.7 MB, free: 5.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009374/0.2517, allocations: 0.9953 MB / 363.7 MB, free: 4.082 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.2518, allocations: 0.5316 MB / 364.2 MB, free: 3.543 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009972/0.2528, allocations: 0.5437 MB / 364.8 MB, free: 2.992 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002744/0.2556, allocations: 4.702 MB / 369.5 MB, free: 12.42 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004478/0.2601, allocations: 5.791 MB / 375.3 MB, free: 4.75 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.772e-05/0.2601, allocations: 28 kB / 375.3 MB, free: 4.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01041/0.2705, allocations: 5.781 MB / 381.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.141e-05/0.2706, allocations: 48 kB / 381.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005736/0.2763, allocations: 2.392 MB / 383.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006097/0.2824, allocations: 2.235 MB / 385.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002303/0.2847, allocations: 1.02 MB / 386.8 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006759/0.2915, allocations: 5.893 MB / 392.7 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002725/0.2942, allocations: 383.4 kB / 393 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004604/0.2947, allocations: 286.5 kB / 393.3 MB, free: 2.426 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001108/0.2958, allocations: 0.5197 MB / 393.8 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003936/0.2962, allocations: 250.5 kB / 394.1 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002849/0.2965, allocations: 267.7 kB / 394.3 MB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002784/0.2992, allocations: 1.411 MB / 395.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.93e-05/0.2993, allocations: 8 kB / 395.8 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.2993, allocations: 7.922 kB / 395.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007705/0.307, allocations: 4.804 MB / 400.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.307, allocations: 0 / 400.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004735/0.3075, allocations: 175.7 kB / 400.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002454/0.3099, allocations: 0.983 MB / 401.7 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.032e-05/0.31, allocations: 31.97 kB / 401.8 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004823/0.3148, allocations: 5.322 MB / 407.1 MB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007414/0.3156, allocations: 1.901 MB / 409 MB, free: 2.266 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004252/0.3198, allocations: 2.698 MB / 411.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005011/0.3203, allocations: 218.4 kB / 411.9 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.3205, allocations: 24.08 kB / 411.9 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006578/0.3211, allocations: 142.3 kB / 412.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.3213, allocations: 88.47 kB / 412.1 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.521e-05/0.3214, allocations: 35.98 kB / 412.2 MB, free: 15.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001409/0.3228, allocations: 1.026 MB / 413.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3228, allocations: 4 kB / 413.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002925/0.3257, allocations: 0.853 MB / 414.1 MB, free: 13.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003841/0.3261, allocations: 185.6 kB / 414.2 MB, free: 12.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004371/0.3305, allocations: 2.884 MB / 417.1 MB, free: 10.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3305, allocations: 0 / 417.1 MB, free: 10.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.3321, allocations: 1.171 MB / 418.3 MB, free: 8.809 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.3332, allocations: 254.6 kB / 418.6 MB, free: 8.562 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00726/0.3405, allocations: 5.214 MB / 423.8 MB, free: 3.262 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007077/0.3412, allocations: 0.7958 MB / 424.6 MB, free: 2.441 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001781/0.343, allocations: 1.199 MB / 425.8 MB, free: 1.234 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003328/0.3433, allocations: 168.4 kB / 425.9 MB, free: 1.07 MB / 378.7 MB Notification: Performance of SimCode: time 2.194e-06/0.3433, allocations: 0 / 425.9 MB, free: 1.07 MB / 378.7 MB Notification: Performance of Templates: time 0.1548/0.4981, allocations: 28.7 MB / 454.6 MB, free: 131.7 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.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.134561528917402]