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.0008534/0.0008534, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003804/0.003804, allocations: 160.2 kB / 24.7 MB, free: 9.426 MB / 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.8695/0.8695, allocations: 177.1 MB / 205 MB, free: 5.73 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.553e-06/1.553e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.292e-05/2.448e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007305/0.00733, allocations: 9.372 MB / 335.2 MB, free: 6.016 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004948/0.01228, allocations: 3.717 MB / 338.9 MB, free: 2.289 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006259/0.0129, allocations: 75.62 kB / 339 MB, free: 2.215 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002124/0.01503, allocations: 2.277 MB / 341.3 MB, free: 15.92 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002186/0.01721, allocations: 1.917 MB / 343.2 MB, free: 14 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008034/0.01802, allocations: 0.7874 MB / 344 MB, free: 13.21 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003192/0.02121, allocations: 5 MB / 349 MB, free: 8.203 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002166/0.02337, allocations: 2.926 MB / 351.9 MB, free: 5.223 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001715/0.02509, allocations: 2.28 MB / 354.2 MB, free: 2.938 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001733/0.02682, allocations: 2.385 MB / 356.6 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002903/0.02711, allocations: 300 kB / 356.9 MB, free: 260 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009706/0.02808, allocations: 0.8815 MB / 357.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001204/0.02929, allocations: 1.936 MB / 359.7 MB, free: 13.43 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008015/0.03009, allocations: 1.199 MB / 360.9 MB, free: 12.23 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004048/0.03414, allocations: 6.401 MB / 367.3 MB, free: 5.805 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.03414, allocations: 0 / 367.3 MB, free: 5.805 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.03414, allocations: 0 / 367.3 MB, free: 5.805 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.859e-05/0.0342, allocations: 0 / 367.3 MB, free: 5.805 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.004438/0.03864, allocations: 4.679 MB / 372 MB, free: 1.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.03868, allocations: 8.031 kB / 372 MB, free: 1.062 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003776/0.04245, allocations: 1.991 MB / 374 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/0.04467, allocations: 2.174 MB / 376.1 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.04478, allocations: 229.6 kB / 376.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003056/0.04509, allocations: 299.8 kB / 376.7 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008145/0.05323, allocations: 9.688 MB / 386.3 MB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.694e-05/0.0533, allocations: 43.64 kB / 386.4 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002375/0.05354, allocations: 147.8 kB / 386.5 MB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001727/0.05526, allocations: 1.915 MB / 388.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008188/0.06345, allocations: 7.644 MB / 396.1 MB, free: 8.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02449/0.08794, allocations: 35.42 MB / 431.5 MB, free: 3.516 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003653/0.09159, allocations: 2.434 MB / 433.9 MB, free: 1.043 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007411/0.09233, allocations: 0.7948 MB / 434.7 MB, free: 244 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003248/0.09558, allocations: 2.961 MB / 437.7 MB, free: 13.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.09561, allocations: 51.16 kB / 437.7 MB, free: 13.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 3.226e-06/0.09562, allocations: 0 / 437.7 MB, free: 13.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.01316/0.1088, allocations: 9.52 MB / 447.3 MB, free: 3.613 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.1088, allocations: 141.5 kB / 447.4 MB, free: 3.441 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1555/0.2643, allocations: 3.844 MB / 451.2 MB, free: 113.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002518/0.2646, allocations: 52.55 kB / 451.3 MB, free: 113.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002235/0.2668, allocations: 3.201 MB / 454.5 MB, free: 112.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004533/0.2672, allocations: 0.6256 MB / 455.1 MB, free: 111.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00117/0.2684, allocations: 1.158 MB / 456.3 MB, free: 111.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.058e-05/0.2684, allocations: 303.4 kB / 456.6 MB, free: 110.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.27, allocations: 1.588 MB / 458.2 MB, free: 110.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002406/0.2724, allocations: 5.361 MB / 463.5 MB, free: 104.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004914/0.2773, allocations: 7.554 MB / 471.1 MB, free: 98.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.847e-05/0.2774, allocations: 35.41 kB / 471.1 MB, free: 98.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.005598/0.283, allocations: 6.654 MB / 477.8 MB, free: 93.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.906e-05/0.283, allocations: 64.03 kB / 477.8 MB, free: 93.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.182e-05/0.2831, allocations: 136 kB / 478 MB, free: 93.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.408e-05/0.2832, allocations: 176 kB / 478.1 MB, free: 93.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/0.2851, allocations: 1.382 MB / 479.5 MB, free: 91.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.912e-05/0.2851, allocations: 265.7 kB / 479.8 MB, free: 91.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002156/0.2873, allocations: 355 kB / 480.1 MB, free: 91.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/0.2875, allocations: 363.8 kB / 480.5 MB, free: 91.11 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.001624/0.2891, allocations: 1.977 MB / 482.5 MB, free: 89.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.2893, allocations: 313.9 kB / 482.8 MB, free: 89.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000269/0.2896, allocations: 371.5 kB / 483.1 MB, free: 88.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/0.2896, allocations: 16.19 kB / 483.1 MB, free: 88.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.2896, allocations: 8 kB / 483.2 MB, free: 88.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.2896, allocations: 10.73 kB / 483.2 MB, free: 88.74 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003611/0.2932, allocations: 4.651 MB / 487.8 MB, free: 84.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.2932, allocations: 24.25 kB / 487.8 MB, free: 84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004473/0.2937, allocations: 277.7 kB / 488.1 MB, free: 83.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.096e-05/0.2937, allocations: 24 kB / 488.1 MB, free: 83.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-05/0.2937, allocations: 52 kB / 488.2 MB, free: 83.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-05/0.2938, allocations: 35.86 kB / 488.2 MB, free: 83.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.2938, allocations: 27.88 kB / 488.2 MB, free: 83.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.2954, allocations: 3.185 MB / 491.4 MB, free: 80.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000242/0.2957, allocations: 333.7 kB / 491.8 MB, free: 79.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001588/0.2958, allocations: 55.81 kB / 491.8 MB, free: 79.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006032/0.2964, allocations: 95.89 kB / 491.9 MB, free: 79.69 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.093e-05/0.2965, allocations: 151.3 kB / 492.1 MB, free: 79.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-05/0.2966, allocations: 67.98 kB / 492.1 MB, free: 79.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001417/0.298, allocations: 2.232 MB / 494.4 MB, free: 77.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.298, allocations: 4 kB / 494.4 MB, free: 77.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002151/0.3001, allocations: 0.9335 MB / 495.3 MB, free: 76.31 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.0002755/0.3004, allocations: 215.1 kB / 495.5 MB, free: 76.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002397/0.3028, allocations: 3.551 MB / 499.1 MB, free: 72.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.3028, allocations: 4 kB / 499.1 MB, free: 72.58 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004554/0.3033, allocations: 0.6954 MB / 499.8 MB, free: 71.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.3045, allocations: 409 kB / 0.4884 GB, free: 71.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006273/0.3108, allocations: 8.877 MB / 0.4971 GB, free: 62.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001509/0.3123, allocations: 2.552 MB / 0.4996 GB, free: 59.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/0.3126, allocations: 272.5 kB / 0.4998 GB, free: 59.5 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3126, allocations: 0 / 0.4998 GB, free: 59.5 MB / 410.7 MB Notification: Performance of Templates: time 0.03236/0.3449, allocations: 52.28 MB / 0.5509 GB, free: 7.32 MB / 410.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=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.807055201381445]