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.001518/0.001518, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 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.001632/0.001632, allocations: 163.4 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9307/0.9307, allocations: 177 MB / 205.9 MB, free: 4.461 MB / 186.7 MB " [Timeout remaining time 179] 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 2.134e-06/2.134e-06, allocations: 0 / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.758e-05/2.972e-05, allocations: 6.25 kB / 274.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008849/0.008878, allocations: 10.07 MB / 284.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00713/0.01601, allocations: 3.776 MB / 288 MB, free: 6.375 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00156/0.01757, allocations: 79.62 kB / 288.1 MB, free: 6.297 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002717/0.02029, allocations: 2.355 MB / 290.4 MB, free: 3.934 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00359/0.02388, allocations: 1.925 MB / 292.3 MB, free: 2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.02521, allocations: 0.7991 MB / 293.1 MB, free: 1.199 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004775/0.02998, allocations: 4.996 MB / 298.1 MB, free: 12.2 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002994/0.03297, allocations: 3.037 MB / 301.2 MB, free: 9.105 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002701/0.03568, allocations: 2.35 MB / 303.5 MB, free: 6.75 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002491/0.03817, allocations: 2.346 MB / 305.9 MB, free: 4.398 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005151/0.03868, allocations: 292 kB / 306.1 MB, free: 4.113 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001362/0.04004, allocations: 0.8698 MB / 307 MB, free: 3.242 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001342/0.04138, allocations: 1.932 MB / 308.9 MB, free: 1.305 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001251/0.04264, allocations: 1.195 MB / 310.1 MB, free: 108 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004218/0.04685, allocations: 4.214 MB / 314.4 MB, free: 11.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.04686, allocations: 4 kB / 314.4 MB, free: 11.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.04686, allocations: 0 / 314.4 MB, free: 11.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.431e-05/0.04695, allocations: 0 / 314.4 MB, free: 11.87 MB / 298.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.005264/0.05222, allocations: 4.781 MB / 319.1 MB, free: 7.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.05226, allocations: 8.031 kB / 319.1 MB, free: 7.012 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003361/0.05562, allocations: 1.508 MB / 320.7 MB, free: 5.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/0.05775, allocations: 1.824 MB / 322.5 MB, free: 3.621 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.05787, allocations: 229.6 kB / 322.7 MB, free: 3.395 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003322/0.05821, allocations: 299.8 kB / 323 MB, free: 3.102 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006436/0.06464, allocations: 5.496 MB / 328.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.815e-05/0.06474, allocations: 47.56 kB / 328.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002652/0.06501, allocations: 143.9 kB / 328.7 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001503/0.06651, allocations: 1.72 MB / 330.4 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00523/0.07174, allocations: 2.361 MB / 332.8 MB, free: 8.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1703/0.2421, allocations: 43.68 MB / 376.4 MB, free: 31.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003685/0.2458, allocations: 1.624 MB / 378.1 MB, free: 31.44 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004982/0.2463, allocations: 327.6 kB / 378.4 MB, free: 31.39 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003557/0.2498, allocations: 2.582 MB / 381 MB, free: 30.46 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.2498, allocations: 48.48 kB / 381 MB, free: 30.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 4.077e-06/0.2498, allocations: 0 / 381 MB, free: 30.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.01041/0.2603, allocations: 4.874 MB / 385.9 MB, free: 29.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.2603, allocations: 142.5 kB / 386 MB, free: 29.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003026/0.2633, allocations: 3.41 MB / 389.4 MB, free: 28.97 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.439e-05/0.2634, allocations: 46.08 kB / 389.5 MB, free: 28.94 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001338/0.2647, allocations: 3.396 MB / 392.9 MB, free: 27.03 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003912/0.2651, allocations: 0.6495 MB / 393.5 MB, free: 26.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009633/0.2661, allocations: 1.29 MB / 394.8 MB, free: 26.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.801e-05/0.2661, allocations: 481.2 kB / 395.3 MB, free: 26.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007825/0.2669, allocations: 0.4923 MB / 395.8 MB, free: 26.03 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002304/0.2692, allocations: 6.129 MB / 401.9 MB, free: 18.74 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004254/0.2735, allocations: 7.291 MB / 409.2 MB, free: 11.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.909e-05/0.2736, allocations: 46.66 kB / 409.2 MB, free: 11.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.00501/0.2786, allocations: 4.621 MB / 413.9 MB, free: 7.512 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.081e-05/0.2786, allocations: 60 kB / 413.9 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.694e-05/0.2787, allocations: 136 kB / 414.1 MB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.316e-05/0.2788, allocations: 178.9 kB / 414.2 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002067/0.2809, allocations: 1.364 MB / 415.6 MB, free: 5.848 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001232/0.281, allocations: 267 kB / 415.9 MB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002511/0.2835, allocations: 263.8 kB / 416.1 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/0.2837, allocations: 324 kB / 416.4 MB, free: 5.016 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.001023/0.2848, allocations: 0.6495 MB / 417.1 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003897/0.2852, allocations: 360.5 kB / 417.4 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002671/0.2854, allocations: 309.7 kB / 417.7 MB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.2854, allocations: 16 kB / 417.8 MB, free: 3.676 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.2855, allocations: 4 kB / 417.8 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.2855, allocations: 7.984 kB / 417.8 MB, free: 3.664 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004954/0.2904, allocations: 4.825 MB / 422.6 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/0.2904, allocations: 22.5 kB / 422.6 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005125/0.2909, allocations: 264.4 kB / 422.9 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.632e-05/0.291, allocations: 24 kB / 422.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.951e-05/0.291, allocations: 55.94 kB / 422.9 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.178e-05/0.291, allocations: 35.86 kB / 423 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.566e-05/0.291, allocations: 27.88 kB / 423 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.2928, allocations: 2.385 MB / 425.4 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004035/0.2932, allocations: 324.3 kB / 425.7 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002086/0.2934, allocations: 59.47 kB / 425.8 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000601/0.294, allocations: 59.11 kB / 425.8 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.2942, allocations: 147.3 kB / 426 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.343e-05/0.2942, allocations: 56 kB / 426 MB, free: 11.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001446/0.2957, allocations: 1.362 MB / 427.4 MB, free: 10.1 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2957, allocations: 0 / 427.4 MB, free: 10.1 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003357/0.299, allocations: 0.9428 MB / 428.3 MB, free: 9.156 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.000415/0.2994, allocations: 216.4 kB / 428.5 MB, free: 8.938 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002947/0.3024, allocations: 2.39 MB / 430.9 MB, free: 6.633 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/0.3024, allocations: 4 kB / 430.9 MB, free: 6.629 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004079/0.3028, allocations: 437.9 kB / 431.4 MB, free: 6.219 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.3043, allocations: 415.4 kB / 431.8 MB, free: 5.824 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009007/0.3133, allocations: 7.47 MB / 439.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.3144, allocations: 1.16 MB / 440.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001209/0.3156, allocations: 492.8 kB / 440.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006341/0.3162, allocations: 0.5684 MB / 441.4 MB, free: 11.75 MB / 362.7 MB Notification: Performance of SimCode: time 1.352e-06/0.3162, allocations: 3.938 kB / 441.5 MB, free: 11.75 MB / 362.7 MB Notification: Performance of Templates: time 0.04012/0.3563, allocations: 23.87 MB / 465.3 MB, free: 4.449 MB / 378.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.7933834232389927]