Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.001248/0.001248, allocations: 75.75 kB / 21.69 MB, free: 2.855 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.0009804/0.0009804, allocations: 161.5 kB / 24.99 MB, free: 9.285 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.921/0.921, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.675e-05/1.811e-05, allocations: 2.312 kB / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.007885/0.007903, allocations: 10.38 MB / 283.5 MB, free: 7.402 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005632/0.01353, allocations: 3.857 MB / 287.3 MB, free: 3.535 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000734/0.01427, allocations: 79.62 kB / 287.4 MB, free: 3.457 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002815/0.01708, allocations: 2.772 MB / 290.2 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.11/0.127, allocations: 1.838 MB / 292 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.1282, allocations: 0.731 MB / 292.7 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003919/0.1321, allocations: 4.104 MB / 296.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003167/0.1353, allocations: 3.064 MB / 299.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002431/0.1377, allocations: 2.24 MB / 302.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002184/0.1399, allocations: 2.119 MB / 304.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005674/0.1405, allocations: 316.5 kB / 304.6 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001285/0.1417, allocations: 1.109 MB / 305.7 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009154/0.1427, allocations: 1.947 MB / 307.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008736/0.1435, allocations: 1.23 MB / 308.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002646/0.1462, allocations: 4.352 MB / 313.2 MB, free: 7.719 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1462, allocations: 0 / 313.2 MB, free: 7.719 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1462, allocations: 0 / 313.2 MB, free: 7.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.144e-05/0.1462, allocations: 0 / 313.2 MB, free: 7.719 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.003855/0.1501, allocations: 4.965 MB / 318.2 MB, free: 2.789 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.1501, allocations: 8.031 kB / 318.2 MB, free: 2.781 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003796/0.1539, allocations: 2.457 MB / 320.6 MB, free: 364 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001744/0.1556, allocations: 1.83 MB / 322.5 MB, free: 14.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.1558, allocations: 245 kB / 322.7 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005755/0.1563, allocations: 395.9 kB / 323.1 MB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008554/0.1649, allocations: 6.488 MB / 329.6 MB, free: 6.828 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.075e-05/0.165, allocations: 46.23 kB / 329.6 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002675/0.1652, allocations: 156 kB / 329.8 MB, free: 6.684 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001615/0.1668, allocations: 1.858 MB / 331.6 MB, free: 4.855 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00637/0.1732, allocations: 3.571 MB / 335.2 MB, free: 1.496 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0277/0.2009, allocations: 43.85 MB / 379 MB, free: 4.734 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005598/0.2065, allocations: 2.671 MB / 381.7 MB, free: 2.012 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008501/0.2074, allocations: 0.571 MB / 382.3 MB, free: 1.426 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00519/0.2126, allocations: 4.369 MB / 386.7 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.2126, allocations: 46.39 kB / 386.7 MB, free: 13.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=152): time 3.266e-06/0.2126, allocations: 0 / 386.7 MB, free: 13.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=159): time 0.01723/0.2298, allocations: 9.634 MB / 396.3 MB, free: 3.316 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008976/0.2307, allocations: 2.043 MB / 398.4 MB, free: 1.109 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003224/0.2339, allocations: 3.406 MB / 401.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.276e-05/0.234, allocations: 49.7 kB / 401.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/0.2355, allocations: 3.392 MB / 405.2 MB, free: 10.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004629/0.236, allocations: 0.6902 MB / 405.9 MB, free: 9.574 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/0.2372, allocations: 1.347 MB / 407.3 MB, free: 8.215 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.038e-05/0.2373, allocations: 476.8 kB / 407.7 MB, free: 7.746 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.2384, allocations: 0.711 MB / 408.4 MB, free: 7.031 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003806/0.2422, allocations: 6.528 MB / 415 MB, free: 13.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005879/0.248, allocations: 7.994 MB / 423 MB, free: 3.148 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.089e-05/0.2481, allocations: 40 kB / 423 MB, free: 3.109 MB / 378.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.01146/0.2596, allocations: 7.16 MB / 430.2 MB, free: 11.93 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.634e-05/0.2596, allocations: 64 kB / 430.2 MB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005522/0.2652, allocations: 2.56 MB / 432.8 MB, free: 9.293 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006346/0.2715, allocations: 2.453 MB / 435.2 MB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00261/0.2741, allocations: 1.376 MB / 436.6 MB, free: 5.438 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1196/0.3938, allocations: 8.39 MB / 445 MB, free: 120.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003276/0.397, allocations: 456 kB / 445.5 MB, free: 120.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005332/0.3976, allocations: 391.3 kB / 445.8 MB, free: 120.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (742): * Single equations (assignments): 732 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,32)} Notification: Performance of prepare postOptimizeDAE: time 0.001396/0.399, allocations: 0.6721 MB / 446.5 MB, free: 120.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003991/0.3994, allocations: 356.2 kB / 446.9 MB, free: 120.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003508/0.3997, allocations: 347.5 kB / 447.2 MB, free: 120.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002795/0.4025, allocations: 1.503 MB / 448.7 MB, free: 120.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.4025, allocations: 6.969 kB / 448.7 MB, free: 120.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.4025, allocations: 7.938 kB / 448.7 MB, free: 120.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008383/0.4109, allocations: 6.229 MB / 454.9 MB, free: 119.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.4109, allocations: 2.141 kB / 454.9 MB, free: 119.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004941/0.4114, allocations: 191.3 kB / 455.1 MB, free: 119.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002587/0.414, allocations: 1.176 MB / 456.3 MB, free: 119.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-05/0.4141, allocations: 38.69 kB / 456.3 MB, free: 119.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00471/0.4188, allocations: 7.846 MB / 464.2 MB, free: 114.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004271/0.4192, allocations: 1.9 MB / 466.1 MB, free: 112.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003534/0.4228, allocations: 2.943 MB / 469 MB, free: 111.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.4231, allocations: 298.8 kB / 469.3 MB, free: 111.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000197/0.4233, allocations: 27.56 kB / 469.3 MB, free: 111.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007013/0.424, allocations: 147.8 kB / 469.5 MB, free: 111.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/0.4242, allocations: 114.6 kB / 469.6 MB, free: 111.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-05/0.4242, allocations: 52.95 kB / 469.7 MB, free: 111.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001337/0.4256, allocations: 1.416 MB / 471.1 MB, free: 110.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4256, allocations: 0 / 471.1 MB, free: 110.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004324/0.4299, allocations: 1.152 MB / 472.2 MB, free: 110.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003748/0.4303, allocations: 176.2 kB / 472.4 MB, free: 110.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005824/0.4361, allocations: 3.945 MB / 476.3 MB, free: 109.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4361, allocations: 8.031 kB / 476.4 MB, free: 109.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002289/0.4384, allocations: 1.691 MB / 478 MB, free: 108.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001587/0.44, allocations: 373 kB / 478.4 MB, free: 108.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009305/0.4493, allocations: 7.428 MB / 485.8 MB, free: 101.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.4504, allocations: 1.182 MB / 487 MB, free: 100.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002768/0.4531, allocations: 1.548 MB / 488.6 MB, free: 99.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004001/0.4535, allocations: 212.4 kB / 488.8 MB, free: 99.04 MB / 394.7 MB Notification: Performance of SimCode: time 1.483e-06/0.4536, allocations: 4 kB / 488.8 MB, free: 99.04 MB / 394.7 MB Notification: Performance of Templates: time 0.04974/0.5033, allocations: 37.14 MB / 0.5136 GB, free: 62.45 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.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.117387012811378]