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.001323/0.001323, allocations: 118.8 kB / 17.79 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001537/0.001537, allocations: 201.2 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2284/0.2284, allocations: 46.09 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002539/0.002539, allocations: 79.88 kB / 481.3 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.435/0.4376, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01198/0.4496, allocations: 11.36 MB / 0.5421 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009614/0.4592, allocations: 4.06 MB / 0.5461 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.4613, allocations: 65.75 kB / 0.5461 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004449/0.4657, allocations: 2.489 MB / 0.5486 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004506/0.4703, allocations: 1.844 MB / 0.5504 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001504/0.4718, allocations: 0.7644 MB / 0.5511 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005217/0.477, allocations: 4.506 MB / 0.5555 GB, free: 8.543 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003593/0.4806, allocations: 3.338 MB / 0.5588 GB, free: 5.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002384/0.483, allocations: 1.557 MB / 0.5603 GB, free: 3.598 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003479/0.4865, allocations: 2.216 MB / 0.5624 GB, free: 1.375 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008936/0.4874, allocations: 332 kB / 0.5628 GB, free: 1.051 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002206/0.4897, allocations: 0.9597 MB / 0.5637 GB, free: 92 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001653/0.4913, allocations: 1.921 MB / 0.5656 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002138/0.4935, allocations: 2.237 MB / 0.5678 GB, free: 11.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006908/0.5004, allocations: 6.806 MB / 0.5744 GB, free: 5.086 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.5004, allocations: 0 / 0.5744 GB, free: 5.086 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.5004, allocations: 0 / 0.5744 GB, free: 5.086 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001948/0.5006, allocations: 0 / 0.5744 GB, free: 5.086 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.009878/0.5105, allocations: 4.788 MB / 0.5791 GB, free: 232 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.5106, allocations: 12.03 kB / 0.5791 GB, free: 220 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007249/0.5178, allocations: 1.937 MB / 0.581 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004902/0.5228, allocations: 2.333 MB / 0.5833 GB, free: 11.87 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.523, allocations: 254.4 kB / 0.5835 GB, free: 11.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000598/0.5236, allocations: 327.8 kB / 0.5838 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01712/0.5407, allocations: 10.23 MB / 0.5938 GB, free: 276 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001039/0.5408, allocations: 51.53 kB / 0.5939 GB, free: 224 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000376/0.5412, allocations: 159.9 kB / 0.594 GB, free: 64 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002701/0.5439, allocations: 1.904 MB / 0.5959 GB, free: 14.15 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01484/0.5588, allocations: 8.181 MB / 0.6039 GB, free: 5.949 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04708/0.6059, allocations: 39.24 MB / 0.6422 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008721/0.6146, allocations: 3.297 MB / 0.6454 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001716/0.6164, allocations: 1.049 MB / 0.6464 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008669/0.6251, allocations: 5.993 MB / 0.6523 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.468e-05/0.6251, allocations: 55.5 kB / 0.6523 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.228e-06/0.6252, allocations: 0 / 0.6523 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.0242/0.6494, allocations: 9.511 MB / 0.6616 GB, free: 8.934 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.6495, allocations: 196.9 kB / 0.6618 GB, free: 8.695 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005514/0.655, allocations: 4.039 MB / 0.6657 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000181/0.6552, allocations: 53.69 kB / 0.6658 GB, free: 4.57 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002149/0.6574, allocations: 3.175 MB / 0.6689 GB, free: 1.348 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006734/0.6581, allocations: 0.6405 MB / 0.6695 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001428/0.6595, allocations: 1.218 MB / 0.6707 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.6596, allocations: 309 kB / 0.671 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002442/0.6621, allocations: 1.659 MB / 0.6726 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005211/0.6673, allocations: 5.542 MB / 0.678 GB, free: 6.02 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01031/0.6777, allocations: 7.802 MB / 0.6857 GB, free: 12.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000102/0.6778, allocations: 36 kB / 0.6857 GB, free: 12.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01346/0.6913, allocations: 6.924 MB / 0.6925 GB, free: 5.332 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.378e-05/0.6914, allocations: 64.47 kB / 0.6925 GB, free: 5.27 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001374/0.6915, allocations: 136 kB / 0.6926 GB, free: 5.137 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001753/0.6917, allocations: 180 kB / 0.6928 GB, free: 4.961 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004114/0.6958, allocations: 1.439 MB / 0.6942 GB, free: 3.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001959/0.696, allocations: 274.9 kB / 0.6945 GB, free: 3.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003577/0.6996, allocations: 307.5 kB / 0.6948 GB, free: 2.949 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005485/0.7002, allocations: 376 kB / 0.6951 GB, free: 2.582 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.003744/0.7039, allocations: 2.033 MB / 0.6971 GB, free: 0.5352 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007802/0.7047, allocations: 351.5 kB / 0.6975 GB, free: 192 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007683/0.7055, allocations: 410.7 kB / 0.6978 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.672e-05/0.7055, allocations: 19.91 kB / 0.6979 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/0.7056, allocations: 0 / 0.6979 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-05/0.7056, allocations: 15.91 kB / 0.6979 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008675/0.7143, allocations: 5.832 MB / 0.7036 GB, free: 9.602 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-05/0.7143, allocations: 16 kB / 0.7036 GB, free: 9.586 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009601/0.7153, allocations: 291.6 kB / 0.7039 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.476e-05/0.7153, allocations: 24 kB / 0.7039 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.918e-05/0.7154, allocations: 44 kB / 0.7039 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.999e-05/0.7155, allocations: 39.86 kB / 0.704 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-05/0.7155, allocations: 31.81 kB / 0.704 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004019/0.7195, allocations: 3.307 MB / 0.7072 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008885/0.7204, allocations: 412.4 kB / 0.7076 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000331/0.7207, allocations: 55.97 kB / 0.7077 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/0.7218, allocations: 67.95 kB / 0.7077 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.722, allocations: 139.4 kB / 0.7079 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.363e-05/0.7221, allocations: 71.98 kB / 0.7079 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003782/0.7259, allocations: 2.507 MB / 0.7104 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.1e-07/0.7259, allocations: 0 / 0.7104 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005324/0.7312, allocations: 0.8828 MB / 0.7113 GB, free: 1.445 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.000541/0.7318, allocations: 198.7 kB / 0.7114 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006768/0.7385, allocations: 3.837 MB / 0.7152 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.927e-05/0.7386, allocations: 12.19 kB / 0.7152 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.7398, allocations: 0.7527 MB / 0.7159 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002971/0.7427, allocations: 476 kB / 0.7164 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01447/0.7572, allocations: 8.737 MB / 0.7249 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3315/1.089, allocations: 3.169 MB / 0.728 GB, free: 174.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006081/1.095, allocations: 1.815 MB / 0.7298 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008263/1.096, allocations: 242.6 kB / 0.73 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.492e-06/1.096, allocations: 0 / 0.73 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.05421/1.15, 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