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.0009638/0.0009638, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.001028/0.001028, allocations: 140 kB / 24.89 MB, free: 9.227 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.8974/0.8974, allocations: 173.3 MB / 201.5 MB, free: 9.242 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.242e-06/1.242e-06, allocations: 0 / 268.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.4e-05/1.524e-05, allocations: 2.312 kB / 268.5 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007524/0.007539, allocations: 10.15 MB / 278.7 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005208/0.01275, allocations: 3.918 MB / 282.6 MB, free: 8.035 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005469/0.01329, allocations: 75.62 kB / 282.7 MB, free: 7.961 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002224/0.01552, allocations: 2.359 MB / 285 MB, free: 5.594 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002335/0.01785, allocations: 1.928 MB / 287 MB, free: 3.656 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009103/0.01876, allocations: 0.7991 MB / 287.8 MB, free: 2.855 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1098/0.1285, allocations: 4.859 MB / 292.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003799/0.1323, allocations: 2.899 MB / 295.5 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003695/0.136, allocations: 2.297 MB / 297.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002752/0.1388, allocations: 2.243 MB / 300 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004583/0.1392, allocations: 292.2 kB / 300.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001334/0.1406, allocations: 0.9134 MB / 301.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001035/0.1416, allocations: 1.968 MB / 303.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008442/0.1424, allocations: 1.215 MB / 304.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002512/0.145, allocations: 4.276 MB / 308.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.145, allocations: 0.5 kB / 308.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.145, allocations: 2.656 kB / 308.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.942e-05/0.145, allocations: 0 / 308.7 MB, free: 12.68 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.003009/0.148, allocations: 4.274 MB / 313 MB, free: 10.13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.927e-05/0.148, allocations: 10.44 kB / 313 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002536/0.1506, allocations: 1.094 MB / 314.1 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/0.1519, allocations: 1.703 MB / 315.8 MB, free: 8.109 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.594e-05/0.152, allocations: 222.3 kB / 316 MB, free: 7.926 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000251/0.1523, allocations: 300.7 kB / 316.3 MB, free: 7.672 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003501/0.1558, allocations: 4.853 MB / 321.2 MB, free: 2.508 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.057e-05/0.1558, allocations: 46.72 kB / 321.2 MB, free: 2.488 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002448/0.1561, allocations: 150.4 kB / 321.3 MB, free: 2.379 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001119/0.1572, allocations: 1.717 MB / 323.1 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003179/0.1604, allocations: 2.383 MB / 325.4 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01784/0.1782, allocations: 30.99 MB / 356.4 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00261/0.1808, allocations: 1.534 MB / 358 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002951/0.1811, allocations: 265.1 kB / 358.2 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002664/0.1838, allocations: 2.433 MB / 360.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.1838, allocations: 55.06 kB / 360.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 2.625e-06/0.1838, allocations: 0 / 360.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.008209/0.192, allocations: 4.466 MB / 365.2 MB, free: 6.828 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.1921, allocations: 149.5 kB / 365.3 MB, free: 6.652 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002106/0.1942, allocations: 3.072 MB / 368.4 MB, free: 4.133 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.992e-05/0.1942, allocations: 51.73 kB / 368.4 MB, free: 4.078 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.1953, allocations: 3.038 MB / 371.5 MB, free: 1.191 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002861/0.1956, allocations: 0.6155 MB / 372.1 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007873/0.1964, allocations: 1.109 MB / 373.2 MB, free: 15.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.954e-05/0.1965, allocations: 305.1 kB / 373.5 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008894/0.1973, allocations: 0.668 MB / 374.2 MB, free: 14.56 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002388/0.1997, allocations: 4.334 MB / 378.5 MB, free: 8.383 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003314/0.2031, allocations: 5.559 MB / 384.1 MB, free: 1.008 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-05/0.2031, allocations: 39.94 kB / 384.1 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.003634/0.2067, allocations: 3.94 MB / 388 MB, free: 13.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.036e-05/0.2068, allocations: 64 kB / 388.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.406e-05/0.2068, allocations: 132 kB / 388.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.909e-05/0.2069, allocations: 180.8 kB / 388.4 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002213/0.2092, allocations: 1.431 MB / 389.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001285/0.2093, allocations: 266.9 kB / 390.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.2109, allocations: 255.8 kB / 390.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002549/0.2112, allocations: 324 kB / 390.7 MB, free: 10.38 MB / 346.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.000959/0.2122, allocations: 0.6146 MB / 391.3 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002338/0.2124, allocations: 207.7 kB / 391.5 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006168/0.213, allocations: 0.6156 MB / 392.1 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.213, allocations: 16 kB / 392.1 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.213, allocations: 0 / 392.1 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.213, allocations: 7.984 kB / 392.1 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00385/0.2169, allocations: 4.026 MB / 396.2 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.2169, allocations: 20 kB / 396.2 MB, free: 4.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005482/0.2174, allocations: 279.5 kB / 396.4 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-05/0.2175, allocations: 24.66 kB / 396.5 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-05/0.2175, allocations: 55.88 kB / 396.5 MB, free: 4.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.788e-05/0.2175, allocations: 43.75 kB / 396.6 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/0.2175, allocations: 27.88 kB / 396.6 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.2187, allocations: 1.915 MB / 398.5 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000257/0.219, allocations: 309.7 kB / 398.8 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001886/0.2192, allocations: 59.92 kB / 398.9 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005441/0.2197, allocations: 39.98 kB / 398.9 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.2198, allocations: 159.3 kB / 399.1 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.546e-05/0.2199, allocations: 59.98 kB / 399.1 MB, free: 1.352 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001171/0.221, allocations: 1.275 MB / 400.4 MB, free: 84 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.221, allocations: 0 / 400.4 MB, free: 84 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.002482/0.2235, allocations: 0.9686 MB / 401.4 MB, free: 15.11 MB / 362.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.0002893/0.2238, allocations: 211.6 kB / 401.6 MB, free: 14.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.2256, allocations: 2.242 MB / 403.8 MB, free: 12.67 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001419/0.2258, allocations: 101.9 kB / 403.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.2261, allocations: 380.9 kB / 404.3 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.2273, allocations: 430.3 kB / 404.7 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006888/0.2342, allocations: 7.39 MB / 412.1 MB, free: 4.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009007/0.2351, allocations: 1.152 MB / 413.3 MB, free: 2.887 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001094/0.2362, allocations: 498.7 kB / 413.7 MB, free: 2.398 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000614/0.2368, allocations: 0.5285 MB / 414.3 MB, free: 1.871 MB / 362.7 MB Notification: Performance of SimCode: time 9.01e-07/0.2368, allocations: 0 / 414.3 MB, free: 1.871 MB / 362.7 MB Notification: Performance of Templates: time 0.1269/0.3637, allocations: 23.56 MB / 437.8 MB, free: 118.6 MB / 378.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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.304586812388152]