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.0007901/0.0007901, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00116/0.00195, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007113/0.0007113, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009048/0.001616, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9243/0.9243, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09386/1.018, allocations: 53.64 MB / 243.3 MB, free: 15.58 MB / 250.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.092e-06/1.092e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.975e-06/9.067e-06, allocations: 2.312 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007378/0.007387, allocations: 10.21 MB / 254.7 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005727/0.01311, allocations: 3.968 MB / 258.7 MB, free: 72 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006284/0.01374, allocations: 71.62 kB / 258.8 MB, free: 0 / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002115/0.01586, allocations: 2.273 MB / 261 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002223/0.01808, allocations: 1.897 MB / 262.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008111/0.01889, allocations: 0.7212 MB / 263.7 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003229/0.02212, allocations: 4.857 MB / 268.5 MB, free: 6.227 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001715/0.02383, allocations: 2.635 MB / 271.2 MB, free: 3.523 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001872/0.02571, allocations: 2.439 MB / 273.6 MB, free: 1.078 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1105/0.1362, allocations: 2.212 MB / 275.8 MB, free: 6.191 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007839/0.137, allocations: 292.9 kB / 276.1 MB, free: 6.191 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001447/0.1384, allocations: 0.8927 MB / 277 MB, free: 6.191 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001186/0.1396, allocations: 1.725 MB / 278.7 MB, free: 6.191 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.1407, allocations: 0.9688 MB / 279.7 MB, free: 6.191 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004371/0.1451, allocations: 3.923 MB / 283.6 MB, free: 5.734 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.319e-05/0.1451, allocations: 0 / 283.6 MB, free: 5.734 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1451, allocations: 0 / 283.6 MB, free: 5.734 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.041e-05/0.1451, allocations: 1.312 kB / 283.6 MB, free: 5.734 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.006188/0.1513, allocations: 5.057 MB / 288.7 MB, free: 3.871 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1514, allocations: 8.25 kB / 288.7 MB, free: 3.871 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003922/0.1553, allocations: 1.163 MB / 289.8 MB, free: 3.766 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002305/0.1576, allocations: 1.701 MB / 291.5 MB, free: 3.227 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.1577, allocations: 222.3 kB / 291.7 MB, free: 3.219 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004405/0.1582, allocations: 296.2 kB / 292 MB, free: 3.215 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003757/0.1619, allocations: 4.864 MB / 296.9 MB, free: 1.102 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.311e-05/0.162, allocations: 49.08 kB / 296.9 MB, free: 1.098 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002276/0.1622, allocations: 148.5 kB / 297.1 MB, free: 1.098 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001162/0.1634, allocations: 1.734 MB / 298.8 MB, free: 1.086 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002955/0.1663, allocations: 2.385 MB / 301.2 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01796/0.1843, allocations: 30.98 MB / 332.2 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/0.1868, allocations: 1.533 MB / 333.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000293/0.1871, allocations: 271.3 kB / 334 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002748/0.1898, allocations: 2.425 MB / 336.4 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.1899, allocations: 47.22 kB / 336.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 2.605e-06/0.1899, allocations: 3.281 kB / 336.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.007828/0.1977, allocations: 4.388 MB / 340.9 MB, free: 8.293 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/0.1977, allocations: 153.4 kB / 341 MB, free: 8.117 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/0.1998, allocations: 3.068 MB / 344.1 MB, free: 5.602 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.368e-05/0.1999, allocations: 45.7 kB / 344.1 MB, free: 5.551 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001288/0.2012, allocations: 3.034 MB / 347.2 MB, free: 2.668 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002998/0.2015, allocations: 0.6175 MB / 347.8 MB, free: 2.082 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008087/0.2023, allocations: 1.108 MB / 348.9 MB, free: 1.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.055e-05/0.2023, allocations: 305.1 kB / 349.2 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009077/0.2032, allocations: 0.668 MB / 349.8 MB, free: 116 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002461/0.2057, allocations: 4.333 MB / 354.2 MB, free: 10.11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003679/0.2094, allocations: 5.569 MB / 359.7 MB, free: 2.941 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.796e-05/0.2094, allocations: 40 kB / 359.8 MB, free: 2.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.003808/0.2132, allocations: 3.931 MB / 363.7 MB, free: 14.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.171e-05/0.2133, allocations: 68.03 kB / 363.8 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.919e-05/0.2134, allocations: 136 kB / 363.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.675e-05/0.2135, allocations: 180 kB / 364.1 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00231/0.2158, allocations: 1.532 MB / 365.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001373/0.2159, allocations: 259 kB / 365.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/0.2175, allocations: 275.7 kB / 366.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002503/0.2178, allocations: 312 kB / 366.4 MB, free: 12.22 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.001032/0.2188, allocations: 0.6209 MB / 367.1 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/0.2191, allocations: 199.8 kB / 367.3 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002914/0.2193, allocations: 305.8 kB / 367.6 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/0.2194, allocations: 20 kB / 367.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2194, allocations: 4 kB / 367.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.2194, allocations: 3.984 kB / 367.6 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00408/0.2235, allocations: 4.014 MB / 371.6 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.2235, allocations: 16 kB / 371.6 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005641/0.224, allocations: 307.6 kB / 371.9 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/0.2243, allocations: 316.4 kB / 372.2 MB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.541e-05/0.2243, allocations: 27.94 kB / 372.3 MB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.131e-05/0.2244, allocations: 46.73 kB / 372.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.789e-05/0.2244, allocations: 39.86 kB / 372.3 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/0.2244, allocations: 27.88 kB / 372.4 MB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.2256, allocations: 1.908 MB / 374.3 MB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.2258, allocations: 51.92 kB / 374.3 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005393/0.2264, allocations: 45.61 kB / 374.4 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.2265, allocations: 159.3 kB / 374.5 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.255e-05/0.2265, allocations: 52 kB / 374.6 MB, free: 4.145 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001055/0.2276, allocations: 1.277 MB / 375.9 MB, free: 2.891 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2276, allocations: 0 / 375.9 MB, free: 2.891 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002707/0.2303, allocations: 0.9413 MB / 376.8 MB, free: 1.949 MB / 346.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.0002911/0.2306, allocations: 203.6 kB / 377 MB, free: 1.746 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002065/0.2326, allocations: 2.253 MB / 379.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001637/0.2328, allocations: 105.2 kB / 379.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003092/0.2331, allocations: 388.2 kB / 379.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/0.2345, allocations: 0.6263 MB / 380.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008711/0.2432, allocations: 7.637 MB / 388 MB, free: 6.445 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009572/0.2442, allocations: 1.161 MB / 389.2 MB, free: 5.258 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009991/0.2452, allocations: 491.1 kB / 389.6 MB, free: 4.777 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005994/0.2458, allocations: 0.5285 MB / 390.2 MB, free: 4.246 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/0.2458, allocations: 0 / 390.2 MB, free: 4.246 MB / 362.7 MB Notification: Performance of Templates: time 0.03636/0.2821, allocations: 23.97 MB / 414.1 MB, free: 12.56 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 -ignoreHideResult -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: 3.38032856490463]