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.00156/0.00156, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.001768/0.001768, allocations: 162.5 kB / 24.91 MB, free: 9.211 MB / 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.9086/0.9086, allocations: 177 MB / 205.2 MB, free: 5.434 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.133e-06/1.133e-06, allocations: 3.938 kB / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.588e-06/1.072e-05, allocations: 2.312 kB / 273.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005213/0.005224, allocations: 7.042 MB / 280.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003852/0.009077, allocations: 3.264 MB / 283.7 MB, free: 6.844 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003685/0.009445, allocations: 39.81 kB / 283.7 MB, free: 6.805 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.01065, allocations: 1.101 MB / 284.8 MB, free: 5.699 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001614/0.01227, allocations: 1.424 MB / 286.3 MB, free: 4.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005309/0.0128, allocations: 0.491 MB / 286.8 MB, free: 3.777 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001838/0.01463, allocations: 3.026 MB / 289.8 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09397/0.1086, allocations: 1.668 MB / 291.4 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001825/0.1104, allocations: 1.316 MB / 292.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001763/0.1122, allocations: 1.355 MB / 294.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003666/0.1126, allocations: 173.8 kB / 294.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001318/0.1139, allocations: 0.9546 MB / 295.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008107/0.1147, allocations: 1.179 MB / 296.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007978/0.1155, allocations: 0.7184 MB / 297.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002624/0.1181, allocations: 2.972 MB / 300.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1181, allocations: 1.094 kB / 300.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1181, allocations: 0 / 300.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.227e-05/0.1182, allocations: 0.9375 kB / 300.1 MB, free: 14.77 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.002831/0.121, allocations: 2.754 MB / 302.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.121, allocations: 14.36 kB / 302.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002548/0.1236, allocations: 0.9297 MB / 303.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.1246, allocations: 1.031 MB / 304.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.407e-05/0.1247, allocations: 132.1 kB / 305 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003767/0.125, allocations: 263.9 kB / 305.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002646/0.1277, allocations: 3.272 MB / 308.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.498e-05/0.1277, allocations: 30.23 kB / 308.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001658/0.1279, allocations: 87.5 kB / 308.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009202/0.1288, allocations: 1.192 MB / 309.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.1312, allocations: 1.87 MB / 311.7 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01119/0.1424, allocations: 20.14 MB / 331.8 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002043/0.1445, allocations: 1.09 MB / 332.9 MB, free: 4.398 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.1448, allocations: 257 kB / 333.2 MB, free: 4.141 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002398/0.1471, allocations: 2.216 MB / 335.4 MB, free: 1.938 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.1472, allocations: 54.3 kB / 335.4 MB, free: 1.879 MB / 282.7 MB Notification: Performance of pre-optimization done (n=112): time 3.126e-06/0.1472, allocations: 7.984 kB / 335.4 MB, free: 1.871 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.008216/0.1554, allocations: 3.992 MB / 339.4 MB, free: 13.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006317/0.156, allocations: 1.482 MB / 340.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.1574, allocations: 2.155 MB / 343.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.067e-05/0.1575, allocations: 44.36 kB / 343.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008144/0.1583, allocations: 2.075 MB / 345.2 MB, free: 8.477 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000276/0.1586, allocations: 0.5193 MB / 345.7 MB, free: 7.988 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006919/0.1593, allocations: 0.8549 MB / 346.6 MB, free: 7.219 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.875e-05/0.1594, allocations: 358.2 kB / 346.9 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009193/0.1603, allocations: 0.6283 MB / 347.5 MB, free: 6.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00195/0.1622, allocations: 3.314 MB / 350.8 MB, free: 1.684 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002901/0.1651, allocations: 4.392 MB / 355.2 MB, free: 11.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-05/0.1652, allocations: 28 kB / 355.3 MB, free: 11.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006228/0.1714, allocations: 3.763 MB / 359 MB, free: 8.148 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.1714, allocations: 48 kB / 359.1 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003622/0.1751, allocations: 1.085 MB / 360.2 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003974/0.179, allocations: 0.84 MB / 361 MB, free: 6.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.1805, allocations: 0.9747 MB / 362 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004404/0.1849, allocations: 4.045 MB / 366 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.1863, allocations: 211.9 kB / 366.2 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002206/0.1865, allocations: 248 kB / 366.5 MB, free: 0.4922 MB / 314.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.0006693/0.1872, allocations: 488.2 kB / 366.9 MB, free: 0 / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002122/0.1874, allocations: 143.9 kB / 367.1 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002368/0.1876, allocations: 263.7 kB / 367.3 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001851/0.1895, allocations: 0.8354 MB / 368.2 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.1895, allocations: 11 kB / 368.2 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.1895, allocations: 3.984 kB / 368.2 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004698/0.1942, allocations: 3.193 MB / 371.4 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1942, allocations: 0 / 371.4 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003891/0.1946, allocations: 143.8 kB / 371.5 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001991/0.1966, allocations: 0.7739 MB / 372.3 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-05/0.1967, allocations: 31.97 kB / 372.3 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003267/0.1999, allocations: 3.764 MB / 376.1 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005457/0.2005, allocations: 1.338 MB / 377.4 MB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002652/0.2031, allocations: 1.934 MB / 379.4 MB, free: 3.102 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.2033, allocations: 218.4 kB / 379.6 MB, free: 2.887 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/0.2035, allocations: 20 kB / 379.6 MB, free: 2.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004885/0.2039, allocations: 23.98 kB / 379.6 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.2041, allocations: 80.44 kB / 379.7 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.725e-05/0.2042, allocations: 31.97 kB / 379.7 MB, free: 2.734 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005894/0.2047, allocations: 0.7449 MB / 380.5 MB, free: 1.969 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2047, allocations: 0 / 380.5 MB, free: 1.969 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002095/0.2068, allocations: 0.8476 MB / 381.3 MB, free: 1.121 MB / 330.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.0002805/0.2071, allocations: 163.9 kB / 381.5 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002495/0.2096, allocations: 2.31 MB / 383.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.294e-05/0.2097, allocations: 59.94 kB / 383.9 MB, free: 14.55 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.2108, allocations: 0.7859 MB / 384.6 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009756/0.2118, allocations: 379.8 kB / 385 MB, free: 13.37 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004954/0.2167, allocations: 4.946 MB / 390 MB, free: 8.336 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006248/0.2173, allocations: 0.7761 MB / 390.7 MB, free: 7.539 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006956/0.218, allocations: 333.9 kB / 391.1 MB, free: 7.207 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004996/0.2185, allocations: 377.2 kB / 391.4 MB, free: 6.84 MB / 346.7 MB Notification: Performance of SimCode: time 9.31e-07/0.2185, allocations: 0 / 391.4 MB, free: 6.84 MB / 346.7 MB Notification: Performance of Templates: time 0.03534/0.2539, allocations: 30.58 MB / 422 MB, free: 8.434 MB / 378.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.3719585482031107]