Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.001414/0.001414, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001648/0.001648, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 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.9986/0.9986, allocations: 177.1 MB / 205 MB, free: 5.285 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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.661e-05/2.858e-05, allocations: 2.312 kB / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.009413/0.009442, allocations: 10.39 MB / 283.4 MB, free: 6.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006996/0.01644, allocations: 3.814 MB / 287.2 MB, free: 3.105 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001847/0.01828, allocations: 75.69 kB / 287.3 MB, free: 3.031 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003459/0.02174, allocations: 2.39 MB / 289.7 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1373/0.159, allocations: 1.915 MB / 291.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001453/0.1605, allocations: 0.7964 MB / 292.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006053/0.1666, allocations: 5.006 MB / 297.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004216/0.1708, allocations: 3.038 MB / 300.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003732/0.1745, allocations: 2.281 MB / 302.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002928/0.1774, allocations: 2.414 MB / 305.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000866/0.1783, allocations: 300.3 kB / 305.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001466/0.1798, allocations: 0.8863 MB / 306.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001184/0.1809, allocations: 1.944 MB / 308.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001507/0.1825, allocations: 1.206 MB / 309.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003841/0.1863, allocations: 4.252 MB / 313.7 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1863, allocations: 3.938 kB / 313.7 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1863, allocations: 0 / 313.7 MB, free: 6.965 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001679/0.1865, allocations: 0 / 313.7 MB, free: 6.965 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.005325/0.1918, allocations: 5.052 MB / 318.7 MB, free: 1.949 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1918, allocations: 8.031 kB / 318.8 MB, free: 1.941 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004522/0.1964, allocations: 2.447 MB / 321.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002645/0.199, allocations: 2.003 MB / 323.2 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.1991, allocations: 223.6 kB / 323.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003462/0.1995, allocations: 303.6 kB / 323.7 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007419/0.2069, allocations: 6.05 MB / 329.8 MB, free: 6.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.805e-05/0.207, allocations: 50.67 kB / 329.8 MB, free: 6.293 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002672/0.2072, allocations: 146.3 kB / 330 MB, free: 6.188 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001696/0.2089, allocations: 1.917 MB / 331.9 MB, free: 4.297 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007382/0.2163, allocations: 2.996 MB / 334.9 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0308/0.2471, allocations: 44.09 MB / 379 MB, free: 4.379 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003657/0.2508, allocations: 1.706 MB / 380.7 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005911/0.2514, allocations: 383.5 kB / 381 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003716/0.2551, allocations: 2.678 MB / 383.7 MB, free: 15.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.2551, allocations: 49.98 kB / 383.8 MB, free: 15.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=134): time 3.967e-06/0.2551, allocations: 0 / 383.8 MB, free: 15.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=152): time 0.01641/0.2715, allocations: 7.696 MB / 391.5 MB, free: 7.738 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.384e-05/0.2716, allocations: 145.5 kB / 391.6 MB, free: 7.562 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004434/0.276, allocations: 3.426 MB / 395 MB, free: 4.125 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001227/0.2762, allocations: 45.64 kB / 395.1 MB, free: 4.074 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002087/0.2783, allocations: 3.365 MB / 398.4 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005581/0.2788, allocations: 0.6483 MB / 399.1 MB, free: 84 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001341/0.2802, allocations: 1.256 MB / 400.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.2803, allocations: 480.8 kB / 400.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.2814, allocations: 0.5513 MB / 401.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004279/0.2857, allocations: 6.137 MB / 407.5 MB, free: 5.062 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006568/0.2923, allocations: 7.386 MB / 414.9 MB, free: 11.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001196/0.2924, allocations: 43.88 kB / 414.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008748/0.3011, allocations: 4.935 MB / 419.9 MB, free: 6.137 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.775e-05/0.3012, allocations: 60 kB / 419.9 MB, free: 6.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/0.3013, allocations: 140.2 kB / 420.1 MB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001507/0.3015, allocations: 176.1 kB / 420.2 MB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003071/0.3046, allocations: 1.384 MB / 421.6 MB, free: 4.383 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00019/0.3047, allocations: 267 kB / 421.9 MB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002372/0.3071, allocations: 355.5 kB / 422.2 MB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003366/0.3075, allocations: 372 kB / 422.6 MB, free: 3.41 MB / 378.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.001216/0.3087, allocations: 0.653 MB / 423.2 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004499/0.3091, allocations: 361.8 kB / 423.6 MB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003049/0.3094, allocations: 309.8 kB / 423.9 MB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/0.3094, allocations: 16 kB / 423.9 MB, free: 2.066 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.3095, allocations: 4 kB / 423.9 MB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.3095, allocations: 3.984 kB / 423.9 MB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006021/0.3155, allocations: 4.898 MB / 428.8 MB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/0.3155, allocations: 19.94 kB / 428.8 MB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005633/0.3161, allocations: 271.6 kB / 429.1 MB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.918e-05/0.3161, allocations: 24.69 kB / 429.1 MB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.832e-05/0.3161, allocations: 59.73 kB / 429.2 MB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-05/0.3162, allocations: 39.86 kB / 429.2 MB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-05/0.3162, allocations: 31.81 kB / 429.3 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002052/0.3182, allocations: 2.474 MB / 431.7 MB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004894/0.3187, allocations: 329.7 kB / 432.1 MB, free: 9.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001969/0.3189, allocations: 51.98 kB / 432.1 MB, free: 9.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000745/0.3197, allocations: 95.89 kB / 432.2 MB, free: 9.086 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.3198, allocations: 151.3 kB / 432.3 MB, free: 8.938 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.755e-05/0.3198, allocations: 71.98 kB / 432.4 MB, free: 8.867 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00156/0.3214, allocations: 1.466 MB / 433.9 MB, free: 7.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3214, allocations: 3.938 kB / 433.9 MB, free: 7.406 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003568/0.325, allocations: 0.9482 MB / 434.8 MB, free: 6.461 MB / 394.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.0004046/0.3254, allocations: 210.1 kB / 435 MB, free: 6.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003879/0.3293, allocations: 2.53 MB / 437.6 MB, free: 3.738 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/0.3293, allocations: 4 kB / 437.6 MB, free: 3.734 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005639/0.3298, allocations: 459.7 kB / 438 MB, free: 3.285 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001839/0.3317, allocations: 418.6 kB / 438.4 MB, free: 2.879 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1239/0.4556, allocations: 7.472 MB / 445.9 MB, free: 129 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001231/0.4568, allocations: 1.161 MB / 447.1 MB, free: 128.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002834/0.4596, allocations: 1.528 MB / 448.6 MB, free: 128.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004036/0.4601, allocations: 227.9 kB / 448.8 MB, free: 128.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.303e-06/0.4601, allocations: 2.406 kB / 448.8 MB, free: 128.8 MB / 394.7 MB Notification: Performance of Templates: time 0.03419/0.4942, allocations: 20.56 MB / 469.4 MB, free: 119.1 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.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.029061171691865]