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.001371/0.001371, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001506/0.001506, allocations: 205.1 kB / 23.72 MB, free: 4.391 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.476/1.476, allocations: 230.5 MB / 257.4 MB, free: 7.793 MB / 206.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.002171/0.002171, allocations: 71.84 kB / 378.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2291, allocations: 53.41 MB / 431.6 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01197/0.2411, allocations: 9.333 MB / 441 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008168/0.2493, allocations: 3.705 MB / 444.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.2509, allocations: 75.62 kB / 444.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004394/0.2553, allocations: 2.176 MB / 446.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00554/0.2608, allocations: 1.868 MB / 448.8 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001909/0.2627, allocations: 0.7058 MB / 449.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00599/0.2687, allocations: 4.316 MB / 453.8 MB, free: 288 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003094/0.2718, allocations: 2.431 MB / 456.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002412/0.2742, allocations: 1.491 MB / 457.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003742/0.2779, allocations: 2.141 MB / 459.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008082/0.2788, allocations: 292 kB / 460.2 MB, free: 9.871 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001815/0.2806, allocations: 0.8192 MB / 461 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001852/0.2824, allocations: 1.85 MB / 462.8 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00194/0.2844, allocations: 1.541 MB / 464.4 MB, free: 5.645 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00698/0.2913, allocations: 6.413 MB / 470.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2914, allocations: 7.938 kB / 470.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2914, allocations: 0 / 470.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001276/0.2915, allocations: 0 / 470.8 MB, free: 15.2 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.008757/0.3002, allocations: 4.606 MB / 475.4 MB, free: 10.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3003, allocations: 15.98 kB / 475.4 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007336/0.3076, allocations: 1.948 MB / 477.4 MB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004865/0.3125, allocations: 2.182 MB / 479.6 MB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.3127, allocations: 229.6 kB / 479.8 MB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007056/0.3134, allocations: 291.8 kB / 480.1 MB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01685/0.3303, allocations: 9.688 MB / 489.8 MB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.3304, allocations: 43.58 kB / 489.8 MB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003954/0.3308, allocations: 143.9 kB / 489.9 MB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003012/0.3338, allocations: 1.919 MB / 491.9 MB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.017/0.3508, allocations: 7.633 MB / 499.5 MB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04679/0.3976, allocations: 35.24 MB / 0.5222 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007115/0.4047, allocations: 2.329 MB / 0.5245 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.4061, allocations: 0.7991 MB / 0.5252 GB, free: 10.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005959/0.4121, allocations: 2.856 MB / 0.528 GB, free: 7.145 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.4121, allocations: 43.22 kB / 0.5281 GB, free: 7.094 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.446e-06/0.4121, allocations: 0 / 0.5281 GB, free: 7.094 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2557/0.6679, allocations: 9.087 MB / 0.537 GB, free: 100.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.6679, allocations: 147.9 kB / 0.5371 GB, free: 100.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005272/0.6732, allocations: 3.691 MB / 0.5407 GB, free: 99.31 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002192/0.6734, allocations: 47.2 kB / 0.5407 GB, free: 99.26 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001833/0.6753, allocations: 3.245 MB / 0.5439 GB, free: 97.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004795/0.6757, allocations: 0.6289 MB / 0.5445 GB, free: 96.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00111/0.6768, allocations: 1.173 MB / 0.5457 GB, free: 96.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.831e-05/0.6769, allocations: 308.7 kB / 0.546 GB, free: 95.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001937/0.6788, allocations: 1.581 MB / 0.5475 GB, free: 95.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003209/0.682, allocations: 5.363 MB / 0.5527 GB, free: 89.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006327/0.6884, allocations: 7.556 MB / 0.5601 GB, free: 83.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001269/0.6885, allocations: 36.84 kB / 0.5602 GB, free: 83.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01106/0.6996, allocations: 6.649 MB / 0.5667 GB, free: 77.13 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000133/0.6997, allocations: 60 kB / 0.5667 GB, free: 77.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002352/0.6999, allocations: 139.8 kB / 0.5668 GB, free: 76.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001766/0.7001, allocations: 180 kB / 0.567 GB, free: 76.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004102/0.7042, allocations: 1.383 MB / 0.5684 GB, free: 75.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000209/0.7044, allocations: 266.3 kB / 0.5686 GB, free: 75.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004768/0.7092, allocations: 285.8 kB / 0.5689 GB, free: 75.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/0.7103, allocations: 367.9 kB / 0.5692 GB, free: 74.7 MB / 446.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.003572/0.7138, allocations: 1.971 MB / 0.5712 GB, free: 72.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009764/0.7148, allocations: 325.5 kB / 0.5715 GB, free: 72.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008884/0.7157, allocations: 369.8 kB / 0.5718 GB, free: 72.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.717e-05/0.7157, allocations: 23.52 kB / 0.5719 GB, free: 72.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.743e-05/0.7157, allocations: 0 / 0.5719 GB, free: 72.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.7158, allocations: 7.969 kB / 0.5719 GB, free: 72.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.7259, allocations: 4.581 MB / 0.5763 GB, free: 67.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.864e-05/0.726, allocations: 23.12 kB / 0.5764 GB, free: 67.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.727, allocations: 279.5 kB / 0.5766 GB, free: 67.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-05/0.727, allocations: 31.98 kB / 0.5767 GB, free: 67.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.7271, allocations: 52 kB / 0.5767 GB, free: 67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.131e-05/0.7272, allocations: 35.86 kB / 0.5767 GB, free: 66.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-05/0.7272, allocations: 27.88 kB / 0.5768 GB, free: 66.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003467/0.7306, allocations: 3.204 MB / 0.5799 GB, free: 63.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009198/0.7316, allocations: 317.7 kB / 0.5802 GB, free: 63.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006451/0.7322, allocations: 47.98 kB / 0.5802 GB, free: 63.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.7335, allocations: 59.97 kB / 0.5803 GB, free: 63.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.7336, allocations: 151.3 kB / 0.5804 GB, free: 62.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.898e-05/0.7337, allocations: 71.44 kB / 0.5805 GB, free: 62.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00264/0.7364, allocations: 2.111 MB / 0.5826 GB, free: 60.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7364, allocations: 0 / 0.5826 GB, free: 60.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004659/0.741, allocations: 0.8436 MB / 0.5834 GB, free: 59.89 MB / 446.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.000399/0.7414, allocations: 205.9 kB / 0.5836 GB, free: 59.69 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005082/0.7465, allocations: 3.557 MB / 0.5871 GB, free: 56.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.045e-05/0.7465, allocations: 0 / 0.5871 GB, free: 56.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008541/0.7474, allocations: 0.6883 MB / 0.5877 GB, free: 55.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002772/0.7502, allocations: 398.3 kB / 0.5881 GB, free: 55.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/0.7623, allocations: 8.582 MB / 0.5965 GB, free: 46.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00259/0.7649, allocations: 2.552 MB / 0.599 GB, free: 43.65 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003364/0.7682, allocations: 1.731 MB / 0.6007 GB, free: 41.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004165/0.7687, allocations: 215.4 kB / 0.6009 GB, free: 41.71 MB / 446.1 MB Notification: Performance of SimCode: time 1.392e-06/0.7687, allocations: 4 kB / 0.6009 GB, free: 41.7 MB / 446.1 MB Notification: Performance of Templates: time 0.04403/0.8127, allocations: 23.46 MB / 0.6238 GB, free: 18.78 MB / 446.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 -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/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_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: 6.102496687322855]