Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001148/0.001148, allocations: 85.08 kB / 23 MB, free: 1.504 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.00131/0.00131, allocations: 173.4 kB / 26.39 MB, free: 8.145 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.034/1.034, allocations: 158.6 MB / 188.3 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 252.3 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.247e-05/2.395e-05, allocations: 6.25 kB / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008713/0.008737, allocations: 10.14 MB / 262.4 MB, free: 13.04 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007062/0.0158, allocations: 3.768 MB / 266.2 MB, free: 9.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001627/0.01743, allocations: 75.62 kB / 266.3 MB, free: 9.188 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002976/0.0204, allocations: 2.367 MB / 268.6 MB, free: 6.812 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004791/0.02519, allocations: 1.967 MB / 270.6 MB, free: 4.836 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001453/0.02665, allocations: 0.803 MB / 271.4 MB, free: 4.031 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006166/0.03281, allocations: 4.896 MB / 276.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004157/0.03697, allocations: 3.056 MB / 279.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003515/0.04048, allocations: 2.385 MB / 281.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003381/0.04387, allocations: 2.354 MB / 284.1 MB, free: 7.266 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000661/0.04453, allocations: 292 kB / 284.4 MB, free: 6.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.04596, allocations: 0.8893 MB / 285.3 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001504/0.04746, allocations: 1.971 MB / 287.2 MB, free: 4.113 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001448/0.04891, allocations: 1.219 MB / 288.4 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004685/0.0536, allocations: 4.284 MB / 292.7 MB, free: 14.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.0536, allocations: 0 / 292.7 MB, free: 14.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.0536, allocations: 0 / 292.7 MB, free: 14.59 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001119/0.05371, allocations: 0 / 292.7 MB, free: 14.59 MB / 282.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.005493/0.05921, allocations: 4.832 MB / 297.6 MB, free: 9.688 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.05925, allocations: 15.98 kB / 297.6 MB, free: 9.672 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003852/0.0631, allocations: 1.516 MB / 299.1 MB, free: 8.152 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002978/0.06608, allocations: 1.863 MB / 301 MB, free: 6.234 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.06623, allocations: 233.5 kB / 301.2 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004554/0.06668, allocations: 291.8 kB / 301.5 MB, free: 5.719 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008522/0.07521, allocations: 5.484 MB / 307 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/0.07532, allocations: 55.55 kB / 307 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004495/0.07577, allocations: 143.9 kB / 307.1 MB, free: 15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001688/0.07746, allocations: 1.72 MB / 308.9 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005467/0.08293, allocations: 2.345 MB / 311.2 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1882/0.2711, allocations: 43.72 MB / 354.9 MB, free: 88.78 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003529/0.2747, allocations: 1.596 MB / 356.5 MB, free: 88.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004106/0.2751, allocations: 331.4 kB / 356.8 MB, free: 88.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003509/0.2786, allocations: 2.577 MB / 359.4 MB, free: 87.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.2786, allocations: 59.92 kB / 359.5 MB, free: 87.7 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 3.106e-06/0.2786, allocations: 0 / 359.5 MB, free: 87.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.01074/0.2894, allocations: 4.894 MB / 364.4 MB, free: 87.08 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.2894, allocations: 144.5 kB / 364.5 MB, free: 86.92 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002872/0.2923, allocations: 3.446 MB / 368 MB, free: 86.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.821e-05/0.2923, allocations: 43.8 kB / 368 MB, free: 86.36 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001236/0.2936, allocations: 3.414 MB / 371.4 MB, free: 84.46 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003372/0.2939, allocations: 0.6427 MB / 372.1 MB, free: 84.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/0.2949, allocations: 1.282 MB / 373.3 MB, free: 83.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.961e-05/0.295, allocations: 481.5 kB / 373.8 MB, free: 83.26 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000743/0.2957, allocations: 0.4944 MB / 374.3 MB, free: 82.94 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002261/0.298, allocations: 6.121 MB / 380.4 MB, free: 74.64 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003988/0.302, allocations: 7.29 MB / 387.7 MB, free: 65.69 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.502e-05/0.302, allocations: 40 kB / 387.8 MB, free: 65.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.005052/0.3071, allocations: 4.637 MB / 392.4 MB, free: 61.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.916e-05/0.3071, allocations: 67.94 kB / 392.5 MB, free: 60.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.154e-05/0.3072, allocations: 138.1 kB / 392.6 MB, free: 60.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.604e-05/0.3073, allocations: 179.9 kB / 392.8 MB, free: 60.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002027/0.3094, allocations: 1.365 MB / 394.1 MB, free: 59.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001248/0.3095, allocations: 267 kB / 394.4 MB, free: 59.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002748/0.3122, allocations: 259.7 kB / 394.7 MB, free: 58.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000258/0.3125, allocations: 324 kB / 395 MB, free: 58.45 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * 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 (747): * Single equations (assignments): 744 * 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.0009786/0.3135, allocations: 0.6533 MB / 395.6 MB, free: 57.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00045/0.3139, allocations: 357.8 kB / 396 MB, free: 57.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007884/0.3147, allocations: 0.7154 MB / 396.7 MB, free: 56.71 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.3147, allocations: 16 kB / 396.7 MB, free: 56.69 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3147, allocations: 4 kB / 396.7 MB, free: 56.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.3147, allocations: 7.969 kB / 396.7 MB, free: 56.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005146/0.3199, allocations: 4.853 MB / 401.6 MB, free: 51.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/0.3199, allocations: 24.03 kB / 401.6 MB, free: 51.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004931/0.3204, allocations: 263.6 kB / 401.8 MB, free: 51.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.278e-05/0.3204, allocations: 24 kB / 401.9 MB, free: 51.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.678e-05/0.3205, allocations: 44 kB / 401.9 MB, free: 51.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.886e-05/0.3205, allocations: 39.86 kB / 402 MB, free: 51.07 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/0.3205, allocations: 27.88 kB / 402 MB, free: 51.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.322, allocations: 2.398 MB / 404.4 MB, free: 48.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005354/0.3225, allocations: 405.6 kB / 404.8 MB, free: 47.9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002163/0.3227, allocations: 47.98 kB / 404.8 MB, free: 47.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006389/0.3233, allocations: 44 kB / 404.9 MB, free: 47.81 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.604e-05/0.3234, allocations: 147.3 kB / 405 MB, free: 47.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.301e-05/0.3235, allocations: 63.98 kB / 405.1 MB, free: 47.6 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001022/0.3245, allocations: 1.385 MB / 406.5 MB, free: 46.22 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.3245, allocations: 0 / 406.5 MB, free: 46.22 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003401/0.3279, allocations: 0.9725 MB / 407.4 MB, free: 45.25 MB / 330.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 (141): * Single equations (assignments): 138 * 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.0003159/0.3282, allocations: 226.6 kB / 407.7 MB, free: 45.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002529/0.3308, allocations: 2.394 MB / 410 MB, free: 42.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/0.3308, allocations: 4.375 kB / 410 MB, free: 42.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003245/0.3311, allocations: 429.2 kB / 410.5 MB, free: 42.22 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.3326, allocations: 422.2 kB / 410.9 MB, free: 41.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008295/0.3409, allocations: 7.503 MB / 418.4 MB, free: 33.92 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/0.342, allocations: 1.168 MB / 419.6 MB, free: 32.73 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001304/0.3433, allocations: 497.4 kB / 420 MB, free: 32.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005669/0.3439, allocations: 0.5645 MB / 420.6 MB, free: 31.68 MB / 330.7 MB Notification: Performance of SimCode: time 1.903e-06/0.3439, allocations: 0 / 420.6 MB, free: 31.68 MB / 330.7 MB Notification: Performance of Templates: time 0.03976/0.3836, allocations: 24.49 MB / 445.1 MB, free: 7.25 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.008896836079657]