Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009618/0.0009618, allocations: 80 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00355/0.00355, allocations: 139.6 kB / 24.68 MB, free: 8.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8652/0.8652, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.808e-05/2.974e-05, allocations: 6.219 kB / 319.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007718/0.007748, allocations: 9.372 MB / 329.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0063/0.01405, allocations: 3.708 MB / 332.8 MB, free: 8.707 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001334/0.01538, allocations: 71.69 kB / 332.9 MB, free: 8.637 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002485/0.01787, allocations: 2.293 MB / 335.1 MB, free: 6.336 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003533/0.0214, allocations: 1.955 MB / 337.1 MB, free: 4.375 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.02246, allocations: 0.7758 MB / 337.9 MB, free: 3.598 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004014/0.02648, allocations: 4.86 MB / 342.7 MB, free: 14.72 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002748/0.02923, allocations: 2.938 MB / 345.7 MB, free: 11.73 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002461/0.03169, allocations: 2.292 MB / 348 MB, free: 9.434 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002248/0.03393, allocations: 2.385 MB / 350.3 MB, free: 7.043 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004261/0.03436, allocations: 300 kB / 350.6 MB, free: 6.75 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001341/0.0357, allocations: 0.9049 MB / 351.5 MB, free: 5.844 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001144/0.03685, allocations: 1.963 MB / 353.5 MB, free: 3.875 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001059/0.0379, allocations: 1.223 MB / 354.7 MB, free: 2.648 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005322/0.04323, allocations: 6.471 MB / 361.2 MB, free: 12.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.04323, allocations: 3.938 kB / 361.2 MB, free: 12.15 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.04323, allocations: 0 / 361.2 MB, free: 12.15 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001507/0.04339, allocations: 0 / 361.2 MB, free: 12.15 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.006441/0.04983, allocations: 4.714 MB / 365.9 MB, free: 7.383 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.04987, allocations: 12.02 kB / 365.9 MB, free: 7.371 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003805/0.05368, allocations: 1.991 MB / 367.9 MB, free: 5.375 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002904/0.05658, allocations: 2.167 MB / 370.1 MB, free: 3.156 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.0567, allocations: 229.6 kB / 370.3 MB, free: 2.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003766/0.05708, allocations: 299.7 kB / 370.6 MB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01057/0.06765, allocations: 9.672 MB / 380.3 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.387e-05/0.06773, allocations: 47.58 kB / 380.3 MB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002963/0.06803, allocations: 151.8 kB / 380.5 MB, free: 8.004 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001648/0.06968, allocations: 1.915 MB / 382.4 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009814/0.07949, allocations: 7.625 MB / 390 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02843/0.1079, allocations: 35.42 MB / 425.4 MB, free: 9.875 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004116/0.112, allocations: 2.427 MB / 427.9 MB, free: 7.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009331/0.113, allocations: 0.803 MB / 428.7 MB, free: 6.598 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004458/0.1174, allocations: 2.953 MB / 431.6 MB, free: 3.617 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.1175, allocations: 43.22 kB / 431.7 MB, free: 3.566 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 4.028e-06/0.1175, allocations: 0 / 431.7 MB, free: 3.566 MB / 394.7 MB Notification: Performance of matching and sorting (n=152): time 0.01387/0.1313, allocations: 9.501 MB / 441.2 MB, free: 10 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/0.1314, allocations: 145.5 kB / 441.3 MB, free: 9.824 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003875/0.1353, allocations: 3.855 MB / 445.2 MB, free: 5.965 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.892e-05/0.1354, allocations: 45.7 kB / 445.2 MB, free: 5.914 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001353/0.1367, allocations: 3.206 MB / 448.4 MB, free: 2.676 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/0.1371, allocations: 0.6203 MB / 449 MB, free: 2.051 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009407/0.1381, allocations: 1.156 MB / 450.2 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.839e-05/0.1381, allocations: 305.1 kB / 450.5 MB, free: 0.582 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.185/0.3231, allocations: 1.577 MB / 452.1 MB, free: 118.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00378/0.3269, allocations: 5.362 MB / 457.4 MB, free: 113.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005407/0.3323, allocations: 7.537 MB / 465 MB, free: 106.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001106/0.3324, allocations: 39.25 kB / 465 MB, free: 106.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.007912/0.3403, allocations: 6.645 MB / 471.6 MB, free: 103.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.79e-05/0.3404, allocations: 69.95 kB / 471.7 MB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001245/0.3405, allocations: 132 kB / 471.8 MB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001119/0.3406, allocations: 180 kB / 472 MB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002177/0.3428, allocations: 1.388 MB / 473.4 MB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001067/0.3429, allocations: 266.8 kB / 473.7 MB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002761/0.3457, allocations: 342.8 kB / 474 MB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003846/0.346, allocations: 367.8 kB / 474.4 MB, free: 101 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002384/0.3484, allocations: 1.98 MB / 476.3 MB, free: 99.37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004624/0.3489, allocations: 318.9 kB / 476.6 MB, free: 99.24 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.35, allocations: 1.208 MB / 477.9 MB, free: 98.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/0.35, allocations: 19.94 kB / 477.9 MB, free: 98.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.046e-06/0.35, allocations: 0 / 477.9 MB, free: 98.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.35, allocations: 10.84 kB / 477.9 MB, free: 98.17 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004702/0.3547, allocations: 4.651 MB / 482.5 MB, free: 93.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.3548, allocations: 16 kB / 482.5 MB, free: 93.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004845/0.3552, allocations: 279.5 kB / 482.8 MB, free: 93.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.327e-05/0.3553, allocations: 24.69 kB / 482.8 MB, free: 93.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.14e-05/0.3553, allocations: 53.56 kB / 482.9 MB, free: 93.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.389e-05/0.3553, allocations: 39.86 kB / 482.9 MB, free: 93.47 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/0.3553, allocations: 27.88 kB / 483 MB, free: 93.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.3573, allocations: 3.152 MB / 486.1 MB, free: 90.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000515/0.3578, allocations: 342.6 kB / 486.5 MB, free: 90.01 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/0.358, allocations: 54.59 kB / 486.5 MB, free: 89.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006683/0.3587, allocations: 103.9 kB / 486.6 MB, free: 89.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.023e-05/0.3588, allocations: 147.3 kB / 486.7 MB, free: 89.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.526e-05/0.3588, allocations: 75.92 kB / 486.8 MB, free: 89.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001804/0.3606, allocations: 2.232 MB / 489.1 MB, free: 87.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3606, allocations: 0 / 489.1 MB, free: 87.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003211/0.3638, allocations: 0.9677 MB / 490 MB, free: 86.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000389/0.3642, allocations: 231.3 kB / 490.2 MB, free: 86.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003574/0.3678, allocations: 3.533 MB / 493.8 MB, free: 82.76 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.687e-05/0.3678, allocations: 4.75 kB / 493.8 MB, free: 82.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005761/0.3684, allocations: 0.69 MB / 494.5 MB, free: 82.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.3703, allocations: 392.7 kB / 494.9 MB, free: 81.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/0.3813, allocations: 8.883 MB / 0.4919 GB, free: 72.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002185/0.3834, allocations: 2.547 MB / 0.4944 GB, free: 69.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007308/0.3842, allocations: 272.5 kB / 0.4947 GB, free: 69.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.703e-06/0.3842, allocations: 0 / 0.4947 GB, free: 69.7 MB / 410.7 MB Notification: Performance of Templates: time 0.05243/0.4366, allocations: 52.55 MB / 0.546 GB, free: 17.24 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.133692815899849]