Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 109.3 kB / 18.39 MB, free: 4.629 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.001491/0.001492, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.381/1.381, allocations: 222.9 MB / 243 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2171/0.2171, allocations: 44.18 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 68.25 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.124, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01255/0.1366, allocations: 11.39 MB / 482.1 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009176/0.1458, allocations: 4.049 MB / 486.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002299/0.1482, allocations: 71.69 kB / 486.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005321/0.1535, allocations: 2.484 MB / 488.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005749/0.1593, allocations: 1.879 MB / 490.6 MB, free: 9.684 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002258/0.1616, allocations: 0.7683 MB / 491.3 MB, free: 8.914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007092/0.1687, allocations: 4.42 MB / 495.8 MB, free: 4.484 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005187/0.1739, allocations: 3.335 MB / 499.1 MB, free: 1.102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003265/0.1772, allocations: 1.557 MB / 0.4889 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003944/0.1812, allocations: 2.223 MB / 0.4911 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001386/0.1826, allocations: 332 kB / 0.4914 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002886/0.1855, allocations: 0.9909 MB / 0.4924 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00283/0.1884, allocations: 1.936 MB / 0.4943 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004428/0.1928, allocations: 2.245 MB / 0.4965 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008129/0.2009, allocations: 6.863 MB / 0.5032 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.201, allocations: 0 / 0.5032 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.201, allocations: 4 kB / 0.5032 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002694/0.2013, allocations: 4 kB / 0.5032 GB, free: 0.8984 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.2591/0.4604, allocations: 4.829 MB / 0.5079 GB, free: 46.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/0.4604, allocations: 9.656 kB / 0.5079 GB, free: 46.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008196/0.4687, allocations: 1.94 MB / 0.5098 GB, free: 46.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006778/0.4755, allocations: 2.385 MB / 0.5121 GB, free: 45.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003201/0.4758, allocations: 253.9 kB / 0.5124 GB, free: 45.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0012/0.477, allocations: 331.3 kB / 0.5127 GB, free: 45.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0203/0.4973, allocations: 10.21 MB / 0.5226 GB, free: 39.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.4975, allocations: 47.3 kB / 0.5227 GB, free: 39.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004047/0.4979, allocations: 166.8 kB / 0.5228 GB, free: 39.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002245/0.5002, allocations: 1.898 MB / 0.5247 GB, free: 38.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01383/0.514, allocations: 8.145 MB / 0.5327 GB, free: 31.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04071/0.5548, allocations: 39.25 MB / 0.571 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00827/0.5631, allocations: 3.285 MB / 0.5742 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.5646, allocations: 1.052 MB / 0.5752 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009518/0.5742, allocations: 5.899 MB / 0.581 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.048e-05/0.5742, allocations: 55.5 kB / 0.581 GB, free: 11.78 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 4.138e-06/0.5743, allocations: 0 / 0.581 GB, free: 11.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=160): time 0.02187/0.5961, allocations: 9.431 MB / 0.5902 GB, free: 2.234 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.5963, allocations: 196.9 kB / 0.5904 GB, free: 2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005773/0.6021, allocations: 4.047 MB / 0.5944 GB, free: 13.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000242/0.6023, allocations: 49.7 kB / 0.5944 GB, free: 13.87 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002332/0.6047, allocations: 3.179 MB / 0.5975 GB, free: 10.64 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006888/0.6054, allocations: 0.6404 MB / 0.5982 GB, free: 9.996 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001374/0.6067, allocations: 1.218 MB / 0.5994 GB, free: 8.766 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.897e-05/0.6068, allocations: 309.1 kB / 0.5996 GB, free: 8.461 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002447/0.6093, allocations: 1.648 MB / 0.6013 GB, free: 6.809 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00573/0.615, allocations: 5.523 MB / 0.6066 GB, free: 15.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/0.626, allocations: 7.784 MB / 0.6143 GB, free: 5.641 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001322/0.6261, allocations: 43.94 kB / 0.6143 GB, free: 5.598 MB / 446.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01422/0.6403, allocations: 6.907 MB / 0.621 GB, free: 14.69 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.255e-05/0.6405, allocations: 64 kB / 0.6211 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/0.6406, allocations: 139.9 kB / 0.6212 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001696/0.6408, allocations: 180 kB / 0.6214 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004025/0.6448, allocations: 1.435 MB / 0.6228 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002263/0.6451, allocations: 274.9 kB / 0.6231 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004232/0.6493, allocations: 291.6 kB / 0.6233 GB, free: 12.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005745/0.6499, allocations: 379.1 kB / 0.6237 GB, free: 11.95 MB / 462.1 MB 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.003423/0.6533, allocations: 2.038 MB / 0.6257 GB, free: 9.902 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007182/0.654, allocations: 347.5 kB / 0.626 GB, free: 9.559 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002177/0.6562, allocations: 1.342 MB / 0.6273 GB, free: 8.207 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.413e-05/0.6563, allocations: 16 kB / 0.6274 GB, free: 8.191 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.6563, allocations: 4 kB / 0.6274 GB, free: 8.188 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-05/0.6563, allocations: 3.984 kB / 0.6274 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00949/0.6658, allocations: 5.824 MB / 0.6331 GB, free: 2.047 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.19e-05/0.6659, allocations: 20.22 kB / 0.6331 GB, free: 2.027 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009858/0.6669, allocations: 283.5 kB / 0.6333 GB, free: 1.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.742e-05/0.6669, allocations: 27.94 kB / 0.6334 GB, free: 1.723 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.809e-05/0.667, allocations: 51.98 kB / 0.6334 GB, free: 1.672 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.802e-05/0.667, allocations: 35.88 kB / 0.6335 GB, free: 1.637 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.531e-05/0.6671, allocations: 23.92 kB / 0.6335 GB, free: 1.613 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003803/0.6709, allocations: 3.283 MB / 0.6367 GB, free: 14.07 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.6719, allocations: 412.5 kB / 0.6371 GB, free: 13.64 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003265/0.6723, allocations: 51.92 kB / 0.6371 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.6734, allocations: 59.97 kB / 0.6372 GB, free: 13.54 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.6736, allocations: 147.4 kB / 0.6373 GB, free: 13.39 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-05/0.6737, allocations: 71.98 kB / 0.6374 GB, free: 13.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003712/0.6774, allocations: 2.511 MB / 0.6398 GB, free: 10.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6774, allocations: 0 / 0.6398 GB, free: 10.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005365/0.6828, allocations: 0.9002 MB / 0.6407 GB, free: 9.902 MB / 478.1 MB 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.0004656/0.6833, allocations: 204.2 kB / 0.6409 GB, free: 9.699 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00644/0.6897, allocations: 3.827 MB / 0.6447 GB, free: 5.922 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-05/0.6898, allocations: 4 kB / 0.6447 GB, free: 5.918 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.6909, allocations: 0.757 MB / 0.6454 GB, free: 5.164 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/0.6939, allocations: 470.3 kB / 0.6458 GB, free: 4.707 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.7096, allocations: 8.721 MB / 0.6544 GB, free: 11.71 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003677/0.7133, allocations: 3.173 MB / 0.6575 GB, free: 8.508 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004256/0.7176, allocations: 1.808 MB / 0.6592 GB, free: 6.691 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005632/0.7182, allocations: 243.4 kB / 0.6595 GB, free: 6.453 MB / 494.1 MB Notification: Performance of SimCode: time 1.543e-06/0.7182, allocations: 0 / 0.6595 GB, free: 6.453 MB / 494.1 MB Notification: Performance of Templates: time 0.05229/0.7705, allocations: 23.28 MB / 0.6822 GB, free: 15.3 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches