Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 105.5 kB / 17.59 MB, free: 5.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 187.3 kB / 18.51 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 242.2 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 50.83 kB / 301.3 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08696/0.08805, allocations: 49.44 MB / 350.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01259/0.1007, allocations: 10.71 MB / 361.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008563/0.1093, allocations: 3.872 MB / 365.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001914/0.1113, allocations: 63.81 kB / 365.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00492/0.1162, allocations: 2.227 MB / 367.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005402/0.1217, allocations: 1.835 MB / 369.4 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001947/0.1237, allocations: 0.7097 MB / 370.1 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1812/0.3049, allocations: 4.219 MB / 374.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004354/0.3093, allocations: 2.9 MB / 377.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003623/0.3129, allocations: 1.475 MB / 378.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004151/0.3171, allocations: 2.085 MB / 380.8 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001291/0.3184, allocations: 292.3 kB / 381.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002861/0.3213, allocations: 0.9482 MB / 382.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003003/0.3243, allocations: 1.807 MB / 383.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003783/0.3281, allocations: 2.097 MB / 386 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007452/0.3356, allocations: 6.177 MB / 392.1 MB, free: 4.582 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.3356, allocations: 3.984 kB / 392.1 MB, free: 4.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3356, allocations: 0 / 392.1 MB, free: 4.578 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002104/0.3358, allocations: 4 kB / 392.1 MB, free: 4.574 MB / 302.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.008596/0.3445, allocations: 4.607 MB / 396.8 MB, free: 1.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.3445, allocations: 16.17 kB / 396.8 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007276/0.3518, allocations: 1.912 MB / 398.7 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004758/0.3566, allocations: 2.253 MB / 400.9 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/0.3568, allocations: 231.6 kB / 401.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008618/0.3576, allocations: 289.6 kB / 401.4 MB, free: 14.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01675/0.3744, allocations: 9.641 MB / 411.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001091/0.3746, allocations: 45.02 kB / 411.1 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004192/0.375, allocations: 146.6 kB / 411.3 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002934/0.3779, allocations: 1.918 MB / 413.2 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01593/0.3939, allocations: 7.632 MB / 420.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04532/0.4392, allocations: 37.74 MB / 458.6 MB, free: 4.621 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006894/0.4462, allocations: 2.882 MB / 461.4 MB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0013/0.4475, allocations: 0.8757 MB / 462.3 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006039/0.4535, allocations: 3.766 MB / 466.1 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.4536, allocations: 53.55 kB / 466.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.53e-06/0.4536, allocations: 7.984 kB / 466.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02195/0.4756, allocations: 9.023 MB / 475.2 MB, free: 3.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.104e-05/0.4757, allocations: 144.3 kB / 475.3 MB, free: 3.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005343/0.4811, allocations: 3.924 MB / 479.2 MB, free: 15.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002274/0.4813, allocations: 45.7 kB / 479.3 MB, free: 15.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002035/0.4834, allocations: 3.07 MB / 482.4 MB, free: 12.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006059/0.484, allocations: 0.6176 MB / 483 MB, free: 11.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001381/0.4854, allocations: 1.159 MB / 484.1 MB, free: 10.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.203e-05/0.4855, allocations: 313 kB / 484.4 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002423/0.4879, allocations: 1.581 MB / 486 MB, free: 8.699 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004682/0.4926, allocations: 5.355 MB / 491.4 MB, free: 1.453 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008034/0.5007, allocations: 7.544 MB / 498.9 MB, free: 8.051 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.862e-05/0.5008, allocations: 40 kB / 499 MB, free: 8.012 MB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01287/0.5137, allocations: 6.657 MB / 0.4938 GB, free: 1.352 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-05/0.5138, allocations: 64 kB / 0.4938 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001376/0.5139, allocations: 132 kB / 0.4939 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001553/0.5141, allocations: 176.8 kB / 0.4941 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004126/0.5182, allocations: 1.392 MB / 0.4955 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001936/0.5185, allocations: 267 kB / 0.4957 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003777/0.5222, allocations: 282.8 kB / 0.496 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000635/0.5229, allocations: 364 kB / 0.4963 GB, free: 14.7 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.003101/0.526, allocations: 1.982 MB / 0.4983 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005876/0.5266, allocations: 335.7 kB / 0.4986 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002093/0.5287, allocations: 1.246 MB / 0.4998 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.53e-05/0.5287, allocations: 23.92 kB / 0.4998 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.5288, allocations: 0 / 0.4998 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.5288, allocations: 11.98 kB / 0.4999 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009564/0.5384, allocations: 5.741 MB / 0.5055 GB, free: 5.051 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.718e-05/0.5384, allocations: 20 kB / 0.5055 GB, free: 5.031 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009888/0.5394, allocations: 275.5 kB / 0.5057 GB, free: 4.762 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.69e-05/0.5394, allocations: 32.41 kB / 0.5058 GB, free: 4.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.134e-05/0.5395, allocations: 47.98 kB / 0.5058 GB, free: 4.684 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.576e-05/0.5396, allocations: 35.86 kB / 0.5059 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.859e-05/0.5396, allocations: 31.88 kB / 0.5059 GB, free: 4.617 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003942/0.5436, allocations: 3.213 MB / 0.509 GB, free: 1.148 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000934/0.5445, allocations: 412.5 kB / 0.5094 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003543/0.5449, allocations: 47.98 kB / 0.5095 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.5459, allocations: 55.97 kB / 0.5095 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.5461, allocations: 151.4 kB / 0.5097 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.562e-05/0.5462, allocations: 74.03 kB / 0.5097 GB, free: 412 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003859/0.5501, allocations: 2.434 MB / 0.5121 GB, free: 13.99 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.202e-06/0.5501, allocations: 0 / 0.5121 GB, free: 13.99 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004673/0.5548, allocations: 0.8709 MB / 0.513 GB, free: 13.12 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.0003942/0.5552, allocations: 202.1 kB / 0.5131 GB, free: 12.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008214/0.5634, allocations: 3.811 MB / 0.5169 GB, free: 9.133 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-05/0.5635, allocations: 4 kB / 0.5169 GB, free: 9.129 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.5652, allocations: 0.7286 MB / 0.5176 GB, free: 8.406 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004864/0.5701, allocations: 461 kB / 0.518 GB, free: 7.961 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1962/0.7663, allocations: 9.023 MB / 0.5268 GB, free: 143.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00553/0.7719, allocations: 3.099 MB / 0.5299 GB, free: 142.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009547/0.7729, allocations: 274.3 kB / 0.5301 GB, free: 142.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.342e-06/0.7729, allocations: 5.188 kB / 0.5301 GB, free: 142.8 MB / 446.1 MB Notification: Performance of Templates: time 0.0842/0.8571, allocations: 51.14 MB / 0.5801 GB, free: 110.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches