Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001324, allocations: 77.78 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001486/0.001486, allocations: 159.2 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 177.1 MB / 204.7 MB, free: 8.941 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 65.84 kB / 325.5 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1049, allocations: 53.38 MB / 378.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01224/0.1171, allocations: 9.362 MB / 388.3 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008717/0.1259, allocations: 3.701 MB / 392 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001466/0.1273, allocations: 79.62 kB / 392.1 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004564/0.1319, allocations: 2.172 MB / 394.2 MB, free: 236 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005298/0.1372, allocations: 1.856 MB / 396.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.1391, allocations: 0.7136 MB / 396.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00716/0.1462, allocations: 4.305 MB / 401.1 MB, free: 9.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003941/0.1502, allocations: 2.435 MB / 403.5 MB, free: 6.852 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002916/0.1531, allocations: 1.495 MB / 405 MB, free: 5.352 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004006/0.1571, allocations: 2.141 MB / 407.2 MB, free: 3.203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00107/0.1582, allocations: 292 kB / 407.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002351/0.1605, allocations: 0.827 MB / 408.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002775/0.1633, allocations: 1.846 MB / 410.1 MB, free: 244 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003502/0.1668, allocations: 1.541 MB / 411.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008302/0.1751, allocations: 6.407 MB / 418.1 MB, free: 8.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.1751, allocations: 0 / 418.1 MB, free: 8.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.1751, allocations: 0 / 418.1 MB, free: 8.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001782/0.1753, allocations: 3.938 kB / 418.1 MB, free: 8.246 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.009284/0.1846, allocations: 4.61 MB / 422.7 MB, free: 3.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1846, allocations: 11.98 kB / 422.7 MB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008287/0.1929, allocations: 2.092 MB / 424.8 MB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005115/0.198, allocations: 2.186 MB / 427 MB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002129/0.1982, allocations: 225.6 kB / 427.2 MB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008802/0.1991, allocations: 299.8 kB / 427.5 MB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01756/0.2167, allocations: 9.699 MB / 437.2 MB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001308/0.2168, allocations: 51.58 kB / 437.2 MB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004157/0.2172, allocations: 143.8 kB / 437.4 MB, free: 4.055 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003219/0.2204, allocations: 1.919 MB / 439.3 MB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01725/0.2377, allocations: 7.656 MB / 447 MB, free: 10.45 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2441/0.4818, allocations: 35.34 MB / 482.3 MB, free: 55.84 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007091/0.4889, allocations: 2.432 MB / 484.7 MB, free: 55.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.4903, allocations: 0.7967 MB / 485.5 MB, free: 55.7 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005901/0.4962, allocations: 2.879 MB / 488.4 MB, free: 55.03 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.4962, allocations: 45.44 kB / 488.5 MB, free: 54.98 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 4.969e-06/0.4962, allocations: 4.422 kB / 488.5 MB, free: 54.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.01968/0.5159, allocations: 9.451 MB / 497.9 MB, free: 51.05 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.5159, allocations: 148 kB / 498.1 MB, free: 50.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003836/0.5198, allocations: 3.686 MB / 0.49 GB, free: 49.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.66e-05/0.5199, allocations: 45.11 kB / 0.49 GB, free: 49.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.5211, allocations: 3.238 MB / 0.4932 GB, free: 47.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/0.5215, allocations: 0.6349 MB / 0.4938 GB, free: 46.71 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/0.5225, allocations: 1.172 MB / 0.4949 GB, free: 46.12 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.609e-05/0.5226, allocations: 304.6 kB / 0.4952 GB, free: 45.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002184/0.5247, allocations: 1.609 MB / 0.4968 GB, free: 45.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003298/0.528, allocations: 5.374 MB / 0.5021 GB, free: 39.14 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005794/0.5338, allocations: 7.578 MB / 0.5095 GB, free: 29.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.39e-05/0.5339, allocations: 41.78 kB / 0.5095 GB, free: 29.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009851/0.5438, allocations: 6.695 MB / 0.516 GB, free: 23.15 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.299e-05/0.5438, allocations: 64 kB / 0.5161 GB, free: 23.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/0.544, allocations: 132.9 kB / 0.5162 GB, free: 22.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001212/0.5441, allocations: 176 kB / 0.5164 GB, free: 22.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003762/0.5478, allocations: 1.404 MB / 0.5178 GB, free: 21.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001221/0.548, allocations: 266.9 kB / 0.518 GB, free: 21.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003659/0.5516, allocations: 327.6 kB / 0.5183 GB, free: 20.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000437/0.5521, allocations: 371.9 kB / 0.5187 GB, free: 20.44 MB / 430.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.002693/0.5548, allocations: 1.972 MB / 0.5206 GB, free: 18.46 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006133/0.5554, allocations: 325.8 kB / 0.5209 GB, free: 18.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005805/0.5559, allocations: 365.8 kB / 0.5213 GB, free: 17.78 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.531e-05/0.556, allocations: 23.94 kB / 0.5213 GB, free: 17.75 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.828e-05/0.556, allocations: 0 / 0.5213 GB, free: 17.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.556, allocations: 7.969 kB / 0.5213 GB, free: 17.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007012/0.563, allocations: 4.604 MB / 0.5258 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/0.563, allocations: 16 kB / 0.5258 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008947/0.5639, allocations: 284 kB / 0.5261 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.016e-05/0.564, allocations: 27.98 kB / 0.5261 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.235e-05/0.564, allocations: 53.08 kB / 0.5262 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.809e-05/0.564, allocations: 35.86 kB / 0.5262 GB, free: 12.49 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.3e-05/0.5641, allocations: 31.81 kB / 0.5262 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003144/0.5672, allocations: 3.201 MB / 0.5294 GB, free: 8.996 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006691/0.5679, allocations: 309.8 kB / 0.5296 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/0.5681, allocations: 55.98 kB / 0.5297 GB, free: 8.637 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.5692, allocations: 71.94 kB / 0.5298 GB, free: 8.566 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.5694, allocations: 155.3 kB / 0.5299 GB, free: 8.414 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.214e-05/0.5694, allocations: 71.92 kB / 0.53 GB, free: 8.344 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002673/0.5721, allocations: 2.114 MB / 0.532 GB, free: 6.238 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5721, allocations: 3.938 kB / 0.5321 GB, free: 6.234 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005157/0.5773, allocations: 0.8474 MB / 0.5329 GB, free: 5.391 MB / 430.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.00054/0.5778, allocations: 198.3 kB / 0.5331 GB, free: 5.191 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005593/0.5834, allocations: 3.575 MB / 0.5366 GB, free: 1.652 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.969e-05/0.5834, allocations: 0 / 0.5366 GB, free: 1.652 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008188/0.5842, allocations: 0.6865 MB / 0.5372 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/0.5868, allocations: 390.1 kB / 0.5376 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01503/0.6018, allocations: 8.58 MB / 0.546 GB, free: 7.742 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003558/0.6054, allocations: 2.56 MB / 0.5485 GB, free: 5.145 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004162/0.6096, allocations: 1.723 MB / 0.5502 GB, free: 3.418 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005246/0.6101, allocations: 224.5 kB / 0.5504 GB, free: 3.199 MB / 446.1 MB Notification: Performance of SimCode: time 1.523e-06/0.6101, allocations: 0 / 0.5504 GB, free: 3.199 MB / 446.1 MB Notification: Performance of Templates: time 0.05027/0.6604, allocations: 19.26 MB / 0.5692 GB, free: 488 kB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.9626702279783785]