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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001093/0.001093, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 64.98 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.088/0.08917, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01111/0.1003, allocations: 10.66 MB / 369.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1606/0.2609, allocations: 3.888 MB / 373.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00126/0.2622, allocations: 62.19 kB / 373.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003781/0.266, allocations: 2.225 MB / 375.7 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003916/0.2699, allocations: 1.799 MB / 377.5 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.2714, allocations: 0.7139 MB / 378.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005162/0.2765, allocations: 4.316 MB / 382.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002902/0.2795, allocations: 2.888 MB / 385.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001803/0.2813, allocations: 1.467 MB / 386.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0021/0.2834, allocations: 2.078 MB / 389 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004845/0.2839, allocations: 292.9 kB / 389.3 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001484/0.2854, allocations: 0.9173 MB / 390.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001325/0.2867, allocations: 1.784 MB / 392 MB, free: 4.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001709/0.2884, allocations: 2.083 MB / 394.1 MB, free: 3.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005595/0.294, allocations: 6.348 MB / 400.4 MB, free: 14.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.2941, allocations: 11.92 kB / 400.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.2941, allocations: 0 / 400.4 MB, free: 14.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002564/0.2943, allocations: 0 / 400.4 MB, free: 14.87 MB / 318.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.008578/0.3029, allocations: 4.565 MB / 405 MB, free: 10.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.303, allocations: 8.031 kB / 405 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00696/0.31, allocations: 1.918 MB / 406.9 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005642/0.3156, allocations: 2.236 MB / 409.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.3159, allocations: 232.7 kB / 409.4 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005909/0.3165, allocations: 298.9 kB / 409.7 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0151/0.3316, allocations: 9.648 MB / 419.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.3317, allocations: 51.52 kB / 419.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003675/0.3321, allocations: 147.5 kB / 419.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002792/0.3349, allocations: 1.918 MB / 421.4 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01579/0.3507, allocations: 7.643 MB / 429.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04429/0.395, allocations: 37.6 MB / 466.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006383/0.4014, allocations: 2.909 MB / 469.6 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/0.4027, allocations: 0.8652 MB / 470.4 MB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006229/0.409, allocations: 3.838 MB / 474.3 MB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/0.409, allocations: 63.08 kB / 474.3 MB, free: 3.172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.036e-06/0.409, allocations: 0 / 474.3 MB, free: 3.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02091/0.43, allocations: 9.039 MB / 483.4 MB, free: 10.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.654e-05/0.4301, allocations: 157.4 kB / 483.5 MB, free: 9.836 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004635/0.4347, allocations: 3.912 MB / 487.5 MB, free: 5.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.265e-05/0.4348, allocations: 45.7 kB / 487.5 MB, free: 5.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001753/0.4366, allocations: 3.081 MB / 490.6 MB, free: 2.812 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004165/0.437, allocations: 0.5978 MB / 491.2 MB, free: 2.219 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001212/0.4382, allocations: 1.169 MB / 492.3 MB, free: 1.039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.653e-05/0.4383, allocations: 305.1 kB / 492.6 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002243/0.4405, allocations: 1.585 MB / 494.2 MB, free: 15.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004397/0.445, allocations: 5.362 MB / 499.6 MB, free: 7.887 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007518/0.4525, allocations: 7.553 MB / 0.4953 GB, free: 14.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.815e-05/0.4526, allocations: 40 kB / 0.4953 GB, free: 14.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009745/0.4623, allocations: 6.66 MB / 0.5018 GB, free: 7.75 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.671e-05/0.4624, allocations: 67.98 kB / 0.5019 GB, free: 7.684 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001182/0.4625, allocations: 132.9 kB / 0.502 GB, free: 7.555 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/0.4627, allocations: 176 kB / 0.5022 GB, free: 7.383 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003622/0.4663, allocations: 1.388 MB / 0.5035 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001753/0.4665, allocations: 267 kB / 0.5038 GB, free: 5.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003135/0.4697, allocations: 286.7 kB / 0.504 GB, free: 5.453 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003695/0.47, allocations: 363.9 kB / 0.5044 GB, free: 5.098 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.002383/0.4724, allocations: 1.99 MB / 0.5063 GB, free: 3.098 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004195/0.4729, allocations: 331.7 kB / 0.5066 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005902/0.4735, allocations: 401.3 kB / 0.507 GB, free: 2.379 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/0.4735, allocations: 20 kB / 0.5071 GB, free: 2.359 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.4735, allocations: 0 / 0.5071 GB, free: 2.359 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.4735, allocations: 7.969 kB / 0.5071 GB, free: 2.352 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00814/0.4817, allocations: 5.75 MB / 0.5127 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.007e-05/0.4817, allocations: 20 kB / 0.5127 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009159/0.4826, allocations: 275.5 kB / 0.513 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.291e-05/0.4827, allocations: 28.66 kB / 0.513 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-05/0.4828, allocations: 52.47 kB / 0.513 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.833e-05/0.4828, allocations: 39.86 kB / 0.5131 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.51e-05/0.4828, allocations: 27.88 kB / 0.5131 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003414/0.4862, allocations: 3.23 MB / 0.5163 GB, free: 8.391 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006651/0.4869, allocations: 412.6 kB / 0.5166 GB, free: 7.965 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002884/0.4872, allocations: 54.73 kB / 0.5167 GB, free: 7.914 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.4882, allocations: 63.97 kB / 0.5168 GB, free: 7.852 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.4884, allocations: 143.4 kB / 0.5169 GB, free: 7.711 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.45e-05/0.4885, allocations: 72.05 kB / 0.517 GB, free: 7.641 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003255/0.4918, allocations: 2.43 MB / 0.5193 GB, free: 5.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4918, allocations: 0 / 0.5193 GB, free: 5.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003965/0.4958, allocations: 0.8398 MB / 0.5202 GB, free: 4.391 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.0003479/0.4961, allocations: 205.9 kB / 0.5204 GB, free: 4.184 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005259/0.5014, allocations: 3.695 MB / 0.524 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/0.5014, allocations: 4.688 kB / 0.524 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1424/0.6438, allocations: 0.7419 MB / 0.5247 GB, free: 142.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002746/0.6466, allocations: 449 kB / 0.5251 GB, free: 142.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.659, allocations: 8.496 MB / 0.5334 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003811/0.6628, allocations: 3.096 MB / 0.5364 GB, free: 138.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004688/0.6675, allocations: 1.761 MB / 0.5382 GB, free: 138.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005626/0.6681, allocations: 234.7 kB / 0.5384 GB, free: 138.3 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6681, allocations: 4 kB / 0.5384 GB, free: 138.3 MB / 446.1 MB Notification: Performance of Templates: time 0.04403/0.7121, allocations: 21.77 MB / 0.5596 GB, free: 127.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (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 gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches