Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring") translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001088/0.001088, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001062/0.001062, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.239/0.239, allocations: 46.09 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 75.88 kB / 481.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4173/0.4188, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.0137/0.4325, allocations: 11.36 MB / 0.5421 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.4428, allocations: 4.057 MB / 0.5461 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002869/0.4457, allocations: 69.59 kB / 0.5461 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005117/0.4509, allocations: 2.484 MB / 0.5485 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005645/0.4566, allocations: 1.89 MB / 0.5504 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001866/0.4585, allocations: 0.7722 MB / 0.5511 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006799/0.4653, allocations: 4.513 MB / 0.5556 GB, free: 8.523 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005205/0.4705, allocations: 3.331 MB / 0.5588 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003443/0.474, allocations: 1.557 MB / 0.5603 GB, free: 3.586 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004265/0.4783, allocations: 2.212 MB / 0.5625 GB, free: 1.367 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001498/0.4798, allocations: 336 kB / 0.5628 GB, free: 1.039 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003582/0.4834, allocations: 0.9597 MB / 0.5637 GB, free: 80 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003465/0.4869, allocations: 1.925 MB / 0.5656 GB, free: 14.15 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005271/0.4922, allocations: 2.237 MB / 0.5678 GB, free: 11.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0114/0.5036, allocations: 6.802 MB / 0.5744 GB, free: 5.074 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.5037, allocations: 0 / 0.5744 GB, free: 5.074 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.5037, allocations: 0 / 0.5744 GB, free: 5.074 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003099/0.504, allocations: 4 kB / 0.5745 GB, free: 5.07 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01328/0.5173, allocations: 4.788 MB / 0.5791 GB, free: 216 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.5174, allocations: 12.03 kB / 0.5791 GB, free: 204 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008059/0.5254, allocations: 1.937 MB / 0.581 GB, free: 14.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006255/0.5317, allocations: 2.329 MB / 0.5833 GB, free: 11.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003161/0.5321, allocations: 258.4 kB / 0.5836 GB, free: 11.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00149/0.5336, allocations: 335.8 kB / 0.5839 GB, free: 11.28 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02374/0.5573, allocations: 10.23 MB / 0.5939 GB, free: 260 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003261/0.5577, allocations: 55.53 kB / 0.5939 GB, free: 204 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001493/0.5592, allocations: 155.9 kB / 0.5941 GB, free: 48 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00391/0.5631, allocations: 1.904 MB / 0.5959 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02159/0.5847, allocations: 8.177 MB / 0.6039 GB, free: 5.938 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05752/0.6423, allocations: 39.23 MB / 0.6422 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/0.6529, allocations: 3.306 MB / 0.6454 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001905/0.6548, allocations: 1.052 MB / 0.6465 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01008/0.6649, allocations: 5.989 MB / 0.6523 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.191e-05/0.665, allocations: 55.5 kB / 0.6524 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.248e-06/0.665, allocations: 0 / 0.6524 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02566/0.6907, allocations: 9.512 MB / 0.6617 GB, free: 8.918 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.6908, allocations: 200.9 kB / 0.6619 GB, free: 8.676 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007415/0.6983, allocations: 4.035 MB / 0.6658 GB, free: 4.613 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000276/0.6986, allocations: 49.69 kB / 0.6658 GB, free: 4.559 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002856/0.7014, allocations: 3.186 MB / 0.669 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008264/0.7023, allocations: 0.6327 MB / 0.6696 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002289/0.7046, allocations: 1.218 MB / 0.6708 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.7047, allocations: 309 kB / 0.6711 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003203/0.7079, allocations: 1.656 MB / 0.6727 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006167/0.7141, allocations: 5.542 MB / 0.6781 GB, free: 6.008 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01088/0.725, allocations: 7.8 MB / 0.6857 GB, free: 12.29 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001792/0.7252, allocations: 43.94 kB / 0.6857 GB, free: 12.25 MB / 0.545 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01443/0.7397, allocations: 6.923 MB / 0.6925 GB, free: 5.316 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.7398, allocations: 64 kB / 0.6926 GB, free: 5.254 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002312/0.7401, allocations: 140 kB / 0.6927 GB, free: 5.117 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002348/0.7403, allocations: 180 kB / 0.6929 GB, free: 4.941 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004865/0.7452, allocations: 1.439 MB / 0.6943 GB, free: 3.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003139/0.7455, allocations: 267 kB / 0.6945 GB, free: 3.238 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004684/0.7502, allocations: 307.5 kB / 0.6948 GB, free: 2.938 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007758/0.751, allocations: 380 kB / 0.6952 GB, free: 2.566 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (775): * Single equations (assignments): 772 * 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.003827/0.7548, allocations: 2.029 MB / 0.6972 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007403/0.7556, allocations: 347.5 kB / 0.6975 GB, free: 184 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.7566, allocations: 410.6 kB / 0.6979 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.144e-05/0.7566, allocations: 20 kB / 0.6979 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/0.7567, allocations: 3.938 kB / 0.6979 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-05/0.7567, allocations: 12.09 kB / 0.6979 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/0.7677, allocations: 5.836 MB / 0.7036 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.515e-05/0.7678, allocations: 20.03 kB / 0.7036 GB, free: 9.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.7688, allocations: 287.5 kB / 0.7039 GB, free: 9.289 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.664e-05/0.7688, allocations: 28 kB / 0.7039 GB, free: 9.262 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.7689, allocations: 48 kB / 0.704 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-05/0.769, allocations: 35.86 kB / 0.704 GB, free: 9.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.89e-05/0.769, allocations: 27.88 kB / 0.7041 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00425/0.7733, allocations: 3.307 MB / 0.7073 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009685/0.7742, allocations: 416.5 kB / 0.7077 GB, free: 5.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005714/0.7748, allocations: 47.98 kB / 0.7077 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.7762, allocations: 67.95 kB / 0.7078 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.7764, allocations: 147.4 kB / 0.7079 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.7765, allocations: 64 kB / 0.708 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004522/0.7811, allocations: 2.507 MB / 0.7104 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7811, allocations: 0 / 0.7104 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005173/0.7863, allocations: 0.8867 MB / 0.7113 GB, free: 1.434 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.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 (145): * Single equations (assignments): 142 * 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.0005131/0.7868, allocations: 190.7 kB / 0.7115 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006744/0.7935, allocations: 3.855 MB / 0.7153 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.01e-05/0.7936, allocations: 4 kB / 0.7153 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.7948, allocations: 0.7558 MB / 0.716 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/0.798, allocations: 471.3 kB / 0.7164 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01866/0.8167, allocations: 8.725 MB / 0.725 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3238/1.141, allocations: 3.173 MB / 0.7281 GB, free: 174.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006433/1.147, allocations: 1.814 MB / 0.7298 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008629/1.148, allocations: 243 kB / 0.7301 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of SimCode: time 2.144e-06/1.148, allocations: 0 / 0.7301 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.05394/1.202, allocations: 25.12 MB / 0.7546 GB, free: 162.8 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches