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.001208/0.001208, allocations: 108.3 kB / 18.4 MB, free: 4.699 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.00108/0.00108, allocations: 191 kB / 19.34 MB, free: 3.766 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.417/1.417, allocations: 222.9 MB / 243 MB, free: 15.14 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.2105/0.2105, allocations: 44.18 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 65.06 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1377, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01249/0.1502, allocations: 11.4 MB / 482.1 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008189/0.1585, allocations: 4.042 MB / 486.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001664/0.1602, allocations: 67.81 kB / 486.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004282/0.1645, allocations: 2.488 MB / 488.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004932/0.1695, allocations: 1.875 MB / 490.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001724/0.1712, allocations: 0.776 MB / 491.4 MB, free: 8.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005732/0.177, allocations: 4.416 MB / 495.8 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004146/0.1811, allocations: 3.335 MB / 499.1 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002668/0.1838, allocations: 1.561 MB / 0.4889 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003213/0.187, allocations: 2.223 MB / 0.4911 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007027/0.1878, allocations: 332 kB / 0.4914 GB, free: 13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001985/0.1897, allocations: 0.987 MB / 0.4924 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001973/0.1917, allocations: 1.936 MB / 0.4943 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005174/0.1969, allocations: 2.249 MB / 0.4965 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009125/0.2061, allocations: 6.863 MB / 0.5032 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.2061, allocations: 4 kB / 0.5032 GB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.2062, allocations: 0 / 0.5032 GB, free: 0.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001992/0.2064, allocations: 0 / 0.5032 GB, free: 0.918 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.2724/0.4787, allocations: 4.831 MB / 0.5079 GB, free: 46.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.4788, allocations: 9.781 kB / 0.5079 GB, free: 46.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00774/0.4865, allocations: 1.947 MB / 0.5098 GB, free: 46.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005866/0.4924, allocations: 2.379 MB / 0.5121 GB, free: 45.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002321/0.4927, allocations: 255.3 kB / 0.5124 GB, free: 45.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009576/0.4937, allocations: 327.1 kB / 0.5127 GB, free: 45.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01876/0.5124, allocations: 10.21 MB / 0.5227 GB, free: 39.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001375/0.5126, allocations: 47.3 kB / 0.5227 GB, free: 39.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004359/0.5131, allocations: 162.9 kB / 0.5229 GB, free: 39.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002242/0.5153, allocations: 1.901 MB / 0.5247 GB, free: 38.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01482/0.5301, allocations: 8.146 MB / 0.5327 GB, free: 31.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04387/0.5741, allocations: 39.25 MB / 0.571 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00758/0.5817, allocations: 3.277 MB / 0.5742 GB, free: 3.176 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.5833, allocations: 1.049 MB / 0.5752 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009643/0.593, allocations: 5.901 MB / 0.581 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.155e-05/0.5931, allocations: 51.56 kB / 0.581 GB, free: 11.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 5.48e-06/0.5931, allocations: 0 / 0.581 GB, free: 11.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=160): time 0.02173/0.6148, allocations: 9.436 MB / 0.5902 GB, free: 2.238 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.615, allocations: 196.9 kB / 0.5904 GB, free: 2.004 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005715/0.6207, allocations: 4.051 MB / 0.5944 GB, free: 13.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002407/0.621, allocations: 53.69 kB / 0.5944 GB, free: 13.87 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002142/0.6231, allocations: 3.175 MB / 0.5975 GB, free: 10.64 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000632/0.6238, allocations: 0.6368 MB / 0.5982 GB, free: 10 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001475/0.6253, allocations: 1.226 MB / 0.5994 GB, free: 8.762 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.6254, allocations: 301.1 kB / 0.5997 GB, free: 8.465 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002424/0.6278, allocations: 1.655 MB / 0.6013 GB, free: 6.805 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005833/0.6337, allocations: 5.519 MB / 0.6067 GB, free: 15.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00818/0.6419, allocations: 7.787 MB / 0.6143 GB, free: 5.641 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.312e-05/0.642, 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.0112/0.6532, allocations: 6.906 MB / 0.621 GB, free: 14.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-05/0.6533, allocations: 64 kB / 0.6211 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001462/0.6535, allocations: 140 kB / 0.6212 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001661/0.6536, allocations: 180 kB / 0.6214 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004072/0.6577, allocations: 1.427 MB / 0.6228 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002183/0.6579, allocations: 275.3 kB / 0.6231 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003924/0.6619, allocations: 292.5 kB / 0.6233 GB, free: 12.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006158/0.6625, allocations: 384.9 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.003161/0.6657, allocations: 2.033 MB / 0.6257 GB, free: 9.902 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005868/0.6663, allocations: 355.5 kB / 0.626 GB, free: 9.551 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002119/0.6684, allocations: 1.336 MB / 0.6273 GB, free: 8.207 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.511e-05/0.6684, allocations: 23.98 kB / 0.6274 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.6685, allocations: 0 / 0.6274 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.6685, allocations: 3.984 kB / 0.6274 GB, free: 8.18 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009389/0.6779, allocations: 5.829 MB / 0.6331 GB, free: 2.035 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.869e-05/0.6779, allocations: 19.69 kB / 0.6331 GB, free: 2.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009618/0.6789, allocations: 279.7 kB / 0.6334 GB, free: 1.746 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-05/0.6789, allocations: 27.94 kB / 0.6334 GB, free: 1.719 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.609e-05/0.679, allocations: 55.98 kB / 0.6334 GB, free: 1.664 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-05/0.6791, allocations: 35.86 kB / 0.6335 GB, free: 1.629 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.765e-05/0.6791, allocations: 27.88 kB / 0.6335 GB, free: 1.602 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003863/0.683, allocations: 3.268 MB / 0.6367 GB, free: 14.07 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.684, allocations: 416.5 kB / 0.6371 GB, free: 13.64 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003541/0.6844, allocations: 51.92 kB / 0.6371 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.6855, allocations: 59.8 kB / 0.6372 GB, free: 13.54 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.6857, allocations: 151.4 kB / 0.6373 GB, free: 13.39 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.647e-05/0.6858, allocations: 71.89 kB / 0.6374 GB, free: 13.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003736/0.6896, allocations: 2.511 MB / 0.6399 GB, free: 10.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6896, allocations: 0 / 0.6399 GB, free: 10.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004789/0.6944, allocations: 0.9037 MB / 0.6407 GB, free: 9.898 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.0004165/0.6948, allocations: 203.9 kB / 0.6409 GB, free: 9.695 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005862/0.7007, allocations: 3.826 MB / 0.6447 GB, free: 5.918 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/0.7007, allocations: 1.75 kB / 0.6447 GB, free: 5.918 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.7017, allocations: 0.7529 MB / 0.6454 GB, free: 5.168 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/0.7046, allocations: 474.2 kB / 0.6459 GB, free: 4.711 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01468/0.7193, allocations: 8.716 MB / 0.6544 GB, free: 11.72 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004133/0.7234, allocations: 3.177 MB / 0.6575 GB, free: 8.508 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004164/0.7276, allocations: 1.814 MB / 0.6592 GB, free: 6.688 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006289/0.7283, allocations: 239.4 kB / 0.6595 GB, free: 6.453 MB / 494.1 MB Notification: Performance of SimCode: time 1.112e-06/0.7283, allocations: 0 / 0.6595 GB, free: 6.453 MB / 494.1 MB Notification: Performance of Templates: time 0.05454/0.7828, 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 cvode -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