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.001319/0.001319, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001462/0.001462, allocations: 212.2 kB / 23.73 MB, free: 4.16 MB / 14.72 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 1.544/1.544, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001634/0.001634, allocations: 47.92 kB / 378.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2867, allocations: 53.35 MB / 431.6 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01239/0.2991, allocations: 9.356 MB / 440.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008287/0.3074, allocations: 3.701 MB / 444.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001386/0.3087, allocations: 71.62 kB / 444.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004383/0.3131, allocations: 2.184 MB / 446.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004565/0.3177, allocations: 1.86 MB / 448.7 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001455/0.3192, allocations: 0.7058 MB / 449.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005694/0.3248, allocations: 4.312 MB / 453.8 MB, free: 420 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003073/0.3279, allocations: 2.439 MB / 456.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002177/0.3301, allocations: 1.487 MB / 457.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003101/0.3332, allocations: 2.145 MB / 459.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006195/0.3338, allocations: 296 kB / 460.1 MB, free: 9.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001686/0.3355, allocations: 0.8192 MB / 460.9 MB, free: 9.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001795/0.3373, allocations: 1.846 MB / 462.8 MB, free: 7.316 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00181/0.3391, allocations: 1.549 MB / 464.3 MB, free: 5.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007332/0.3464, allocations: 6.41 MB / 470.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3464, allocations: 0 / 470.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3464, allocations: 0 / 470.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001794/0.3466, allocations: 0 / 470.8 MB, free: 15.32 MB / 382.1 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.008187/0.3548, allocations: 4.613 MB / 475.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3549, allocations: 8.031 kB / 475.4 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007103/0.362, allocations: 1.94 MB / 477.3 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005191/0.3672, allocations: 2.19 MB / 479.5 MB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002173/0.3674, allocations: 225.6 kB / 479.7 MB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005992/0.368, allocations: 303.8 kB / 480 MB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0158/0.3838, allocations: 9.676 MB / 489.7 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001059/0.3839, allocations: 47.58 kB / 489.7 MB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003519/0.3842, allocations: 147.9 kB / 489.9 MB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002911/0.3871, allocations: 1.919 MB / 491.8 MB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01468/0.4018, allocations: 7.621 MB / 499.4 MB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04213/0.444, allocations: 35.24 MB / 0.5221 GB, free: 13.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006706/0.4507, allocations: 2.337 MB / 0.5244 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/0.452, allocations: 0.791 MB / 0.5252 GB, free: 10.18 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005921/0.4579, allocations: 2.848 MB / 0.528 GB, free: 7.301 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.62e-05/0.4579, allocations: 51.16 kB / 0.528 GB, free: 7.242 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.527e-06/0.4579, allocations: 0 / 0.528 GB, free: 7.242 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2454/0.7034, allocations: 9.089 MB / 0.5369 GB, free: 101 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.7034, allocations: 144.4 kB / 0.537 GB, free: 100.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005198/0.7086, allocations: 3.7 MB / 0.5406 GB, free: 99.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002125/0.7088, allocations: 46.89 kB / 0.5407 GB, free: 99.58 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001718/0.7106, allocations: 3.233 MB / 0.5438 GB, free: 97.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004557/0.711, allocations: 0.6269 MB / 0.5445 GB, free: 97.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001063/0.7121, allocations: 1.174 MB / 0.5456 GB, free: 96.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.28e-05/0.7121, allocations: 307.5 kB / 0.5459 GB, free: 96.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001916/0.714, allocations: 1.584 MB / 0.5474 GB, free: 95.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003083/0.7171, allocations: 5.36 MB / 0.5527 GB, free: 90.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005699/0.7228, allocations: 7.557 MB / 0.5601 GB, free: 83.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.626e-05/0.7229, allocations: 39.38 kB / 0.5601 GB, free: 83.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008286/0.7312, allocations: 6.653 MB / 0.5666 GB, free: 77.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.333e-05/0.7312, allocations: 63.94 kB / 0.5667 GB, free: 77.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.072e-05/0.7313, allocations: 136 kB / 0.5668 GB, free: 77.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001218/0.7314, allocations: 183.1 kB / 0.567 GB, free: 77.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003284/0.7347, allocations: 1.386 MB / 0.5683 GB, free: 75.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000122/0.7349, allocations: 262.5 kB / 0.5686 GB, free: 75.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003584/0.7384, allocations: 291.2 kB / 0.5688 GB, free: 75.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003189/0.7388, allocations: 364 kB / 0.5692 GB, free: 75 MB / 446.1 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.002325/0.7411, allocations: 1.973 MB / 0.5711 GB, free: 73.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004719/0.7416, allocations: 321.8 kB / 0.5714 GB, free: 72.87 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004621/0.742, allocations: 377.1 kB / 0.5718 GB, free: 72.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-05/0.742, allocations: 16 kB / 0.5718 GB, free: 72.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.576e-05/0.7421, allocations: 1.875 kB / 0.5718 GB, free: 72.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.7421, allocations: 7.969 kB / 0.5718 GB, free: 72.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006576/0.7486, allocations: 4.582 MB / 0.5763 GB, free: 67.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.725e-05/0.7487, allocations: 20 kB / 0.5763 GB, free: 67.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008245/0.7495, allocations: 279.5 kB / 0.5766 GB, free: 67.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.775e-05/0.7495, allocations: 24 kB / 0.5766 GB, free: 67.33 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.616e-05/0.7496, allocations: 52.62 kB / 0.5766 GB, free: 67.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.047e-05/0.7496, allocations: 39.86 kB / 0.5767 GB, free: 67.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.274e-05/0.7496, allocations: 27.88 kB / 0.5767 GB, free: 67.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002761/0.7524, allocations: 3.204 MB / 0.5798 GB, free: 63.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008243/0.7532, allocations: 313.7 kB / 0.5801 GB, free: 63.44 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002812/0.7535, allocations: 55.52 kB / 0.5802 GB, free: 63.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009805/0.7544, allocations: 67.95 kB / 0.5803 GB, free: 63.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.7546, allocations: 147.3 kB / 0.5804 GB, free: 63.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.288e-05/0.7547, allocations: 71.61 kB / 0.5805 GB, free: 63.11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00251/0.7572, allocations: 2.114 MB / 0.5825 GB, free: 61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7572, allocations: 0 / 0.5825 GB, free: 61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004425/0.7616, allocations: 0.8436 MB / 0.5833 GB, free: 60.16 MB / 446.1 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.0003285/0.762, allocations: 198.4 kB / 0.5835 GB, free: 59.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004634/0.7666, allocations: 3.552 MB / 0.587 GB, free: 56.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/0.7666, allocations: 4 kB / 0.587 GB, free: 56.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007417/0.7673, allocations: 0.6871 MB / 0.5877 GB, free: 55.76 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.7695, allocations: 397.5 kB / 0.5881 GB, free: 55.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.7803, allocations: 8.575 MB / 0.5964 GB, free: 46.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002466/0.7828, allocations: 2.557 MB / 0.5989 GB, free: 43.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003148/0.7859, allocations: 1.727 MB / 0.6006 GB, free: 42.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003578/0.7863, allocations: 223.4 kB / 0.6008 GB, free: 41.98 MB / 446.1 MB Notification: Performance of SimCode: time 7.32e-07/0.7863, allocations: 0 / 0.6008 GB, free: 41.98 MB / 446.1 MB Notification: Performance of Templates: time 0.0435/0.8298, allocations: 23.45 MB / 0.6237 GB, free: 19.06 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.221840398386121]