Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000932/0.000932, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001468/0.001468, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9954/0.9954, allocations: 177 MB / 204.8 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.092e-05, allocations: 5.406 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008251/0.008272, allocations: 7.254 MB / 280.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003791/0.01206, allocations: 3.183 MB / 283.4 MB, free: 6.973 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003854/0.01245, allocations: 39.81 kB / 283.4 MB, free: 6.934 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001336/0.01378, allocations: 1.105 MB / 284.5 MB, free: 5.824 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00174/0.01552, allocations: 1.427 MB / 285.9 MB, free: 4.391 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006212/0.01615, allocations: 494.8 kB / 286.4 MB, free: 3.906 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002243/0.01839, allocations: 3.03 MB / 289.4 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.108/0.1264, allocations: 1.623 MB / 291.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001554/0.1279, allocations: 1.313 MB / 292.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001454/0.1294, allocations: 1.42 MB / 293.8 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002496/0.1296, allocations: 173.7 kB / 294 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.1309, allocations: 0.9641 MB / 294.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007235/0.1316, allocations: 1.173 MB / 296.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005757/0.1322, allocations: 0.7247 MB / 296.8 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002303/0.1345, allocations: 2.969 MB / 299.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1345, allocations: 0 / 299.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1345, allocations: 0.6562 kB / 299.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.064e-05/0.1345, allocations: 2.531 kB / 299.8 MB, free: 14.67 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.003273/0.1378, allocations: 3.352 MB / 303.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.1378, allocations: 14.33 kB / 303.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003702/0.1415, allocations: 2.185 MB / 305.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.1427, allocations: 1.248 MB / 306.6 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.471e-05/0.1427, allocations: 131.8 kB / 306.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003669/0.1431, allocations: 256.7 kB / 307 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003826/0.1469, allocations: 4.076 MB / 311.1 MB, free: 8.742 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.402e-05/0.147, allocations: 27.64 kB / 311.1 MB, free: 8.738 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001846/0.1472, allocations: 91.33 kB / 311.2 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001076/0.1482, allocations: 1.362 MB / 312.5 MB, free: 8.031 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00374/0.152, allocations: 2.425 MB / 315 MB, free: 5.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01628/0.1683, allocations: 28.6 MB / 343.6 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003068/0.1713, allocations: 1.43 MB / 345 MB, free: 7.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004825/0.1718, allocations: 370.9 kB / 345.4 MB, free: 6.715 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002879/0.1747, allocations: 2.565 MB / 347.9 MB, free: 4.141 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.1747, allocations: 57.47 kB / 348 MB, free: 4.078 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 2.715e-06/0.1747, allocations: 0 / 348 MB, free: 4.078 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.01293/0.1877, allocations: 7.348 MB / 355.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001168/0.1888, allocations: 2.04 MB / 357.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002261/0.1911, allocations: 2.439 MB / 359.8 MB, free: 8.008 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.971e-05/0.1912, allocations: 41.7 kB / 359.8 MB, free: 7.961 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001031/0.1922, allocations: 2.299 MB / 362.1 MB, free: 5.672 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003579/0.1926, allocations: 0.5397 MB / 362.7 MB, free: 5.137 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008871/0.1934, allocations: 0.9972 MB / 363.7 MB, free: 4.129 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1936, allocations: 0.5238 MB / 364.2 MB, free: 3.598 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001124/0.1947, allocations: 0.5475 MB / 364.7 MB, free: 3.043 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002488/0.1972, allocations: 4.704 MB / 369.5 MB, free: 12.46 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004784/0.202, allocations: 5.79 MB / 375.2 MB, free: 4.809 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.855e-05/0.202, allocations: 28 kB / 375.3 MB, free: 4.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.009529/0.2115, allocations: 5.778 MB / 381 MB, free: 14.99 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.326e-05/0.2116, allocations: 52 kB / 381.1 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005757/0.2174, allocations: 2.398 MB / 383.5 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006005/0.2234, allocations: 2.228 MB / 385.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001851/0.2252, allocations: 1.014 MB / 386.7 MB, free: 9.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006415/0.2316, allocations: 5.91 MB / 392.6 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002107/0.2337, allocations: 381.9 kB / 393 MB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000257/0.234, allocations: 280 kB / 393.3 MB, free: 2.484 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.0008175/0.2348, allocations: 0.5259 MB / 393.8 MB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/0.2351, allocations: 254.4 kB / 394.1 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00024/0.2353, allocations: 263.7 kB / 394.3 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002661/0.238, allocations: 1.405 MB / 395.7 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.238, allocations: 4 kB / 395.7 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.238, allocations: 3.984 kB / 395.7 MB, free: 0 / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006878/0.2449, allocations: 4.797 MB / 400.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.2449, allocations: 8.094 kB / 400.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004525/0.2453, allocations: 175.7 kB / 400.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002388/0.2477, allocations: 0.9855 MB / 401.7 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.26e-05/0.2478, allocations: 31.98 kB / 401.7 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00467/0.2525, allocations: 5.32 MB / 407.1 MB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006897/0.2531, allocations: 1.906 MB / 409 MB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003745/0.2569, allocations: 2.697 MB / 411.7 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004194/0.2573, allocations: 222.4 kB / 411.9 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.2575, allocations: 23.98 kB / 411.9 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006582/0.2581, allocations: 139.8 kB / 412 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.2583, allocations: 87.14 kB / 412.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.48e-05/0.2584, allocations: 39.98 kB / 412.2 MB, free: 15.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001188/0.2596, allocations: 1.03 MB / 413.2 MB, free: 14.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2596, allocations: 0 / 413.2 MB, free: 14.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002622/0.2622, allocations: 0.8476 MB / 414 MB, free: 13.19 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.0003449/0.2625, allocations: 185 kB / 414.2 MB, free: 13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003776/0.2663, allocations: 2.89 MB / 417.1 MB, free: 10.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2663, allocations: 0 / 417.1 MB, free: 10.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001401/0.2677, allocations: 1.167 MB / 418.3 MB, free: 8.871 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009315/0.2687, allocations: 263.3 kB / 418.5 MB, free: 8.621 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005759/0.2744, allocations: 5.213 MB / 423.7 MB, free: 3.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006266/0.275, allocations: 0.788 MB / 424.5 MB, free: 2.512 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001572/0.2766, allocations: 1.202 MB / 425.7 MB, free: 1.305 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000283/0.2769, allocations: 164.4 kB / 425.9 MB, free: 1.145 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.2769, allocations: 0 / 425.9 MB, free: 1.145 MB / 378.7 MB Notification: Performance of Templates: time 0.1349/0.4118, allocations: 29.48 MB / 455.4 MB, free: 131.4 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 3.683271014597267]