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.00168/0.00168, allocations: 108 kB / 17.28 MB, free: 6.199 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.001909/0.001909, allocations: 193.3 kB / 18.21 MB, free: 5.273 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.375/1.375, allocations: 222.9 MB / 241.9 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 44.05 kB / 300.8 MB, free: 5.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09335, allocations: 49.45 MB / 350.2 MB, free: 4.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2022/0.2955, allocations: 38.65 MB / 388.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01933/0.3149, allocations: 8.38 MB / 397.3 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009237/0.3242, allocations: 163 kB / 397.4 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004666/0.329, allocations: 2.144 MB / 399.6 MB, free: 14.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005299/0.3343, allocations: 1.698 MB / 401.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001688/0.336, allocations: 0.6753 MB / 402 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00576/0.3418, allocations: 4.252 MB / 406.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004126/0.3459, allocations: 3.062 MB / 409.3 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002544/0.3485, allocations: 1.498 MB / 410.8 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003154/0.3517, allocations: 2.313 MB / 413.1 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007541/0.3525, allocations: 292 kB / 413.4 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.3545, allocations: 0.9518 MB / 414.3 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00175/0.3563, allocations: 1.847 MB / 416.2 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002122/0.3584, allocations: 2.128 MB / 418.3 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004825/0.3632, allocations: 5.013 MB / 423.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3633, allocations: 0 / 423.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3633, allocations: 0 / 423.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.531e-05/0.3634, allocations: 0 / 423.3 MB, free: 11.56 MB / 334.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.007939/0.3713, allocations: 4.607 MB / 427.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.3714, allocations: 11.89 kB / 427.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007351/0.3787, allocations: 1.922 MB / 429.8 MB, free: 4.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004543/0.3833, allocations: 2.25 MB / 432.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.3835, allocations: 225.6 kB / 432.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006544/0.3842, allocations: 299.8 kB / 432.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/0.3998, allocations: 9.639 MB / 442.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/0.4, allocations: 43.59 kB / 442.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003761/0.4004, allocations: 147.8 kB / 442.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002778/0.4032, allocations: 1.919 MB / 444.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01524/0.4184, allocations: 7.633 MB / 452 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04038/0.4588, allocations: 37.74 MB / 489.7 MB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006596/0.4655, allocations: 2.898 MB / 492.6 MB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001228/0.4667, allocations: 0.8695 MB / 493.5 MB, free: 3.129 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005649/0.4724, allocations: 3.763 MB / 497.3 MB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.4725, allocations: 51.14 kB / 497.3 MB, free: 15.1 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.567e-06/0.4725, allocations: 4 kB / 497.3 MB, free: 15.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02115/0.4936, allocations: 9.014 MB / 0.4945 GB, free: 5.961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.076e-05/0.4938, allocations: 145.5 kB / 0.4946 GB, free: 5.789 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005034/0.4988, allocations: 3.916 MB / 0.4984 GB, free: 1.891 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001678/0.499, allocations: 49.69 kB / 0.4985 GB, free: 1.836 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001908/0.5009, allocations: 3.078 MB / 0.5015 GB, free: 14.71 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004973/0.5014, allocations: 0.6095 MB / 0.5021 GB, free: 14.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/0.5027, allocations: 1.17 MB / 0.5032 GB, free: 12.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.71e-05/0.5028, allocations: 309.1 kB / 0.5035 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002326/0.5051, allocations: 1.573 MB / 0.505 GB, free: 11.03 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004452/0.5096, allocations: 5.362 MB / 0.5103 GB, free: 3.766 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007762/0.5174, allocations: 7.536 MB / 0.5176 GB, free: 10.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-05/0.5175, allocations: 40 kB / 0.5177 GB, free: 10.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01123/0.5287, allocations: 6.666 MB / 0.5242 GB, free: 3.645 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.509e-05/0.5288, allocations: 64.22 kB / 0.5242 GB, free: 3.582 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001176/0.529, allocations: 140 kB / 0.5244 GB, free: 3.445 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000149/0.5291, allocations: 176 kB / 0.5245 GB, free: 3.273 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003845/0.533, allocations: 1.384 MB / 0.5259 GB, free: 1.887 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000181/0.5332, allocations: 263 kB / 0.5261 GB, free: 1.629 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003758/0.5369, allocations: 291.5 kB / 0.5264 GB, free: 1.344 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004597/0.5374, allocations: 368 kB / 0.5268 GB, free: 0.9844 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.2186/0.756, allocations: 1.97 MB / 0.5287 GB, free: 115.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006842/0.7567, allocations: 332.4 kB / 0.529 GB, free: 115.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002498/0.7593, allocations: 1.25 MB / 0.5302 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.521e-05/0.7593, allocations: 19.84 kB / 0.5303 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.7593, allocations: 1.531 kB / 0.5303 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.169e-05/0.7593, allocations: 7.719 kB / 0.5303 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.7701, allocations: 5.75 MB / 0.5359 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.299e-05/0.7702, allocations: 18.47 kB / 0.5359 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009702/0.7712, allocations: 276.7 kB / 0.5362 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.751e-05/0.7712, allocations: 29.22 kB / 0.5362 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.011e-05/0.7713, allocations: 48.3 kB / 0.5362 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.311e-05/0.7714, allocations: 35.3 kB / 0.5363 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.117e-05/0.7714, allocations: 31.47 kB / 0.5363 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00367/0.7751, allocations: 3.216 MB / 0.5394 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007126/0.7758, allocations: 411.6 kB / 0.5398 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003244/0.7761, allocations: 49.7 kB / 0.5399 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.7772, allocations: 57.91 kB / 0.5399 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.7774, allocations: 145.6 kB / 0.5401 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.7775, allocations: 74.77 kB / 0.5401 GB, free: 113.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003468/0.781, allocations: 2.439 MB / 0.5425 GB, free: 112.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.781, allocations: 0 / 0.5425 GB, free: 112.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00455/0.7855, allocations: 0.865 MB / 0.5434 GB, free: 112.8 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.0004203/0.786, allocations: 212.1 kB / 0.5436 GB, free: 112.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005324/0.7913, allocations: 3.817 MB / 0.5473 GB, free: 111.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.702e-05/0.7913, allocations: 7.688 kB / 0.5473 GB, free: 111.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008177/0.7922, allocations: 0.7305 MB / 0.548 GB, free: 111.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002825/0.795, allocations: 446.3 kB / 0.5484 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/0.8087, allocations: 10.91 MB / 0.5591 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002542/0.8113, allocations: 3.084 MB / 0.5621 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006774/0.812, allocations: 285.7 kB / 0.5624 GB, free: 103.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/0.812, allocations: 0 / 0.5624 GB, free: 103.9 MB / 446.1 MB Notification: Performance of Templates: time 0.0627/0.8747, allocations: 51.15 MB / 0.6123 GB, free: 53.83 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