Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.000885/0.000885, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.0009554/0.0009554, allocations: 166.7 kB / 24.99 MB, free: 8.793 MB / 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 0.9197/0.9197, allocations: 177.1 MB / 205.3 MB, free: 5.629 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.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.337e-05/1.464e-05, allocations: 5.266 kB / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.007632/0.007646, allocations: 9.928 MB / 283 MB, free: 7.859 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004986/0.01263, allocations: 3.705 MB / 286.7 MB, free: 4.145 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000555/0.01319, allocations: 71.62 kB / 286.8 MB, free: 4.074 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002151/0.01534, allocations: 2.087 MB / 288.9 MB, free: 1.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002061/0.0174, allocations: 1.742 MB / 290.6 MB, free: 236 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1096/0.127, allocations: 0.6549 MB / 291.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003945/0.1309, allocations: 3.74 MB / 295 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002479/0.1334, allocations: 2.459 MB / 297.4 MB, free: 14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002227/0.1356, allocations: 1.903 MB / 299.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001914/0.1376, allocations: 1.86 MB / 301.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003575/0.1379, allocations: 259.2 kB / 301.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001105/0.139, allocations: 0.9685 MB / 302.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008423/0.1399, allocations: 1.679 MB / 304.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006886/0.1405, allocations: 1.033 MB / 305.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002311/0.1429, allocations: 3.815 MB / 309 MB, free: 10.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.1429, allocations: 1.5 kB / 309 MB, free: 10.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1429, allocations: 0 / 309 MB, free: 10.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.423e-05/0.1429, allocations: 3.75 kB / 309 MB, free: 10.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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.003527/0.1464, allocations: 4.367 MB / 313.3 MB, free: 7.488 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.1465, allocations: 12.03 kB / 313.3 MB, free: 7.477 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003376/0.1498, allocations: 2.186 MB / 315.5 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.1513, allocations: 1.726 MB / 317.3 MB, free: 3.711 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.709e-05/0.1514, allocations: 196.9 kB / 317.4 MB, free: 3.551 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002395/0.1516, allocations: 251.5 kB / 317.7 MB, free: 3.336 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004703/0.1563, allocations: 5.276 MB / 323 MB, free: 13.33 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.321e-05/0.1564, allocations: 36.92 kB / 323 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002207/0.1566, allocations: 123.5 kB / 323.1 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001643/0.1583, allocations: 1.701 MB / 324.8 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004759/0.163, allocations: 2.776 MB / 327.6 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02157/0.1846, allocations: 38.6 MB / 366.2 MB, free: 1.555 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003379/0.188, allocations: 1.618 MB / 367.8 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005897/0.1886, allocations: 499.9 kB / 368.3 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003228/0.1918, allocations: 3.166 MB / 371.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.1918, allocations: 52.56 kB / 371.5 MB, free: 12.15 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 2.525e-06/0.1918, allocations: 0 / 371.5 MB, free: 12.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=129): time 0.01472/0.2065, allocations: 8.482 MB / 380 MB, free: 3.633 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.2066, allocations: 151.7 kB / 380.2 MB, free: 3.457 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003016/0.2096, allocations: 3.179 MB / 383.3 MB, free: 256 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.666e-05/0.2097, allocations: 41.7 kB / 383.4 MB, free: 208 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001358/0.211, allocations: 3.011 MB / 386.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003456/0.2114, allocations: 0.5538 MB / 386.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009385/0.2123, allocations: 1.167 MB / 388.1 MB, free: 11.49 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.2124, allocations: 476.8 kB / 388.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008964/0.2133, allocations: 0.5491 MB / 389.1 MB, free: 10.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003268/0.2166, allocations: 5.631 MB / 394.8 MB, free: 2.531 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005066/0.2216, allocations: 6.827 MB / 401.6 MB, free: 9.453 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.477e-05/0.2217, allocations: 32 kB / 401.6 MB, free: 9.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.00527/0.227, allocations: 4.656 MB / 406.3 MB, free: 4.758 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.105e-05/0.227, allocations: 68.19 kB / 406.3 MB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.83e-05/0.2271, allocations: 120 kB / 406.5 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004531/0.2276, allocations: 335.4 kB / 406.8 MB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002257/0.2298, allocations: 1.251 MB / 408 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/0.2314, allocations: 2.427 MB / 410.5 MB, free: 448 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/0.2333, allocations: 323.6 kB / 410.8 MB, free: 124 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002859/0.2336, allocations: 344.2 kB / 411.1 MB, free: 15.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (668): * Single equations (assignments): 664 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009252/0.2345, allocations: 0.5991 MB / 411.7 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003245/0.2348, allocations: 318.1 kB / 412 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/0.2368, allocations: 1.311 MB / 413.3 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.641e-05/0.2369, allocations: 16 kB / 413.3 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.2369, allocations: 7.938 kB / 413.4 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.2369, allocations: 3.984 kB / 413.4 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005929/0.2428, allocations: 4.211 MB / 417.6 MB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.2428, allocations: 0 / 417.6 MB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.2432, allocations: 171.8 kB / 417.7 MB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.2443, allocations: 452.1 kB / 418.2 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-05/0.2444, allocations: 23.98 kB / 418.2 MB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002498/0.2469, allocations: 2.917 MB / 421.1 MB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.2469, allocations: 4 kB / 421.1 MB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00292/0.2498, allocations: 2.289 MB / 423.4 MB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003169/0.2501, allocations: 270 kB / 423.7 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/0.2503, allocations: 24 kB / 423.7 MB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000589/0.2509, allocations: 95.84 kB / 423.8 MB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.251, allocations: 68.52 kB / 423.9 MB, free: 2.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.448e-05/0.2511, allocations: 36 kB / 423.9 MB, free: 2.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001432/0.2525, allocations: 1.346 MB / 425.2 MB, free: 1.426 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2525, allocations: 4.031 kB / 425.2 MB, free: 1.422 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002744/0.2553, allocations: 0.871 MB / 426.1 MB, free: 0.5508 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003287/0.2556, allocations: 166.4 kB / 426.3 MB, free: 392 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003089/0.2587, allocations: 2.562 MB / 428.8 MB, free: 13.83 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2587, allocations: 0.6875 kB / 428.8 MB, free: 13.83 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000631/0.2593, allocations: 0.6239 MB / 429.5 MB, free: 13.18 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00125/0.2606, allocations: 343.3 kB / 429.8 MB, free: 12.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006935/0.2675, allocations: 5.95 MB / 435.8 MB, free: 6.828 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007955/0.2683, allocations: 1.01 MB / 436.8 MB, free: 5.801 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002099/0.2704, allocations: 1.396 MB / 438.2 MB, free: 4.398 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003754/0.2708, allocations: 200.5 kB / 438.4 MB, free: 4.203 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/0.2708, allocations: 0 / 438.4 MB, free: 4.203 MB / 394.7 MB Notification: Performance of Templates: time 0.13/0.4008, allocations: 25.75 MB / 464.1 MB, free: 129.4 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.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.559358049184084]