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.0009097/0.0009097, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001534/0.001534, allocations: 164.9 kB / 24.99 MB, free: 8.219 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.9145/0.9145, allocations: 177 MB / 205.2 MB, free: 5.531 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.092e-06/1.092e-06, allocations: 0 / 273 MB, free: 1.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.435e-05/1.544e-05, allocations: 5.406 kB / 273 MB, free: 1.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005733/0.005749, allocations: 7.226 MB / 280.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003681/0.00943, allocations: 3.179 MB / 283.4 MB, free: 7.242 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003359/0.009766, allocations: 39.81 kB / 283.4 MB, free: 7.203 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.01106, allocations: 1.094 MB / 284.5 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001573/0.01263, allocations: 1.427 MB / 286 MB, free: 4.672 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005098/0.01314, allocations: 486.9 kB / 286.4 MB, free: 4.195 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00188/0.01502, allocations: 3.023 MB / 289.5 MB, free: 1.164 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.118/0.133, allocations: 1.631 MB / 291.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002184/0.1352, allocations: 1.316 MB / 292.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00203/0.1372, allocations: 1.416 MB / 293.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003829/0.1376, allocations: 173.5 kB / 294 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001534/0.1392, allocations: 0.9696 MB / 295 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009834/0.1401, allocations: 1.172 MB / 296.1 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.1412, allocations: 0.7187 MB / 296.9 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003173/0.1443, allocations: 2.966 MB / 299.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1443, allocations: 0.5 kB / 299.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1443, allocations: 1.781 kB / 299.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.282e-05/0.1444, allocations: 1.219 kB / 299.8 MB, free: 14.43 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.004174/0.1486, allocations: 3.351 MB / 303.2 MB, free: 12.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1486, allocations: 15.28 kB / 303.2 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009899/0.1585, allocations: 2.189 MB / 305.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003081/0.1616, allocations: 1.222 MB / 306.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.1617, allocations: 131.8 kB / 306.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007421/0.1625, allocations: 250.6 kB / 307 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006056/0.1685, allocations: 4.077 MB / 311.1 MB, free: 8.758 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.916e-05/0.1686, allocations: 26.27 kB / 311.1 MB, free: 8.754 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002004/0.1688, allocations: 87.78 kB / 311.2 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001219/0.17, allocations: 1.368 MB / 312.5 MB, free: 8.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004597/0.1746, allocations: 2.424 MB / 315 MB, free: 5.883 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01964/0.1942, allocations: 28.6 MB / 343.6 MB, free: 8.691 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003447/0.1977, allocations: 1.432 MB / 345 MB, free: 7.219 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005364/0.1982, allocations: 376.5 kB / 345.4 MB, free: 6.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003179/0.2014, allocations: 2.562 MB / 347.9 MB, free: 4.266 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.2014, allocations: 53.3 kB / 348 MB, free: 4.207 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 3.426e-06/0.2014, allocations: 0 / 348 MB, free: 4.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.01422/0.2157, allocations: 7.351 MB / 355.3 MB, free: 12.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001136/0.2168, allocations: 2.034 MB / 357.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002534/0.2193, allocations: 2.444 MB / 359.8 MB, free: 8.141 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.2194, allocations: 42.72 kB / 359.8 MB, free: 8.094 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.2205, allocations: 2.291 MB / 362.1 MB, free: 5.812 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004353/0.221, allocations: 0.5527 MB / 362.7 MB, free: 5.266 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009196/0.2219, allocations: 0.9883 MB / 363.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003096/0.2222, allocations: 0.5277 MB / 364.2 MB, free: 3.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009618/0.2231, allocations: 0.5437 MB / 364.7 MB, free: 3.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002535/0.2257, allocations: 4.702 MB / 369.4 MB, free: 12.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004071/0.2298, allocations: 5.799 MB / 375.2 MB, free: 4.934 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.46e-05/0.2298, allocations: 28 kB / 375.3 MB, free: 4.906 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01116/0.241, allocations: 5.771 MB / 381 MB, free: 15.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.969e-05/0.241, allocations: 56.05 kB / 381.1 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006493/0.2475, allocations: 2.397 MB / 383.5 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005897/0.2534, allocations: 2.228 MB / 385.7 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004128/0.2575, allocations: 1.025 MB / 386.8 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0067/0.2642, allocations: 5.897 MB / 392.6 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00241/0.2667, allocations: 377.8 kB / 393 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004481/0.2671, allocations: 284 kB / 393.3 MB, free: 2.613 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.0009985/0.2681, allocations: 0.5264 MB / 393.8 MB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003361/0.2684, allocations: 250.5 kB / 394.1 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002848/0.2687, allocations: 271.7 kB / 394.3 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002718/0.2714, allocations: 1.413 MB / 395.7 MB, free: 128 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.2714, allocations: 4 kB / 395.7 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.2715, allocations: 7.922 kB / 395.8 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006947/0.2784, allocations: 4.794 MB / 400.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.2784, allocations: 4.094 kB / 400.6 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004755/0.2789, allocations: 179.7 kB / 400.7 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002457/0.2813, allocations: 0.9826 MB / 401.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.344e-05/0.2814, allocations: 35.97 kB / 401.7 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00457/0.286, allocations: 5.314 MB / 407.1 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007003/0.2867, allocations: 1.9 MB / 409 MB, free: 2.457 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003972/0.2907, allocations: 2.695 MB / 411.7 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004088/0.2911, allocations: 214.4 kB / 411.9 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/0.2913, allocations: 23.98 kB / 411.9 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006803/0.2919, allocations: 144.9 kB / 412 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.2921, allocations: 84.42 kB / 412.1 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.578e-05/0.2922, allocations: 46.22 kB / 412.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001314/0.2935, allocations: 1.034 MB / 413.2 MB, free: 14.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2935, allocations: 0 / 413.2 MB, free: 14.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002764/0.2963, allocations: 0.8475 MB / 414 MB, free: 13.31 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.0003594/0.2966, allocations: 185.8 kB / 414.2 MB, free: 13.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004037/0.3007, allocations: 2.886 MB / 417.1 MB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3007, allocations: 0 / 417.1 MB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/0.3022, allocations: 1.167 MB / 418.3 MB, free: 9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.3032, allocations: 256.8 kB / 418.5 MB, free: 8.754 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006621/0.3099, allocations: 5.222 MB / 423.7 MB, free: 3.449 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007299/0.3106, allocations: 0.7957 MB / 424.5 MB, free: 2.629 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001786/0.3124, allocations: 1.202 MB / 425.7 MB, free: 1.422 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000299/0.3127, allocations: 164.4 kB / 425.9 MB, free: 1.262 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.3127, allocations: 0 / 425.9 MB, free: 1.262 MB / 378.7 MB Notification: Performance of Templates: time 0.1427/0.4554, allocations: 28.69 MB / 454.6 MB, free: 136.6 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.667876405874267]