Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001735/0.001735, allocations: 104.2 kB / 16.94 MB, free: 6.176 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.00186/0.00186, allocations: 191.4 kB / 17.86 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.1 MB / 223.7 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2272/0.2272, allocations: 43.52 MB / 314.6 MB, free: 0.5195 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001502, allocations: 67.11 kB / 383.4 MB, free: 56.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1127, allocations: 57.79 MB / 441.2 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01004/0.1227, allocations: 11.44 MB / 452.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008493/0.1313, allocations: 4.062 MB / 456.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001989/0.1333, allocations: 63.81 kB / 456.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004748/0.1381, allocations: 2.495 MB / 459.2 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005351/0.1435, allocations: 1.867 MB / 461.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001755/0.1453, allocations: 0.7877 MB / 461.9 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006014/0.1513, allocations: 4.456 MB / 466.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004031/0.1554, allocations: 3.339 MB / 469.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002471/0.1579, allocations: 1.577 MB / 471.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002983/0.1609, allocations: 2.231 MB / 473.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007041/0.1616, allocations: 336 kB / 473.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002152/0.1637, allocations: 0.9753 MB / 474.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001706/0.1655, allocations: 1.936 MB / 476.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002398/0.1679, allocations: 2.253 MB / 479 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00722/0.1751, allocations: 6.647 MB / 485.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.1752, allocations: 0 / 485.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.1752, allocations: 4 kB / 485.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002111/0.1754, allocations: 0 / 485.6 MB, free: 10.25 MB / 366.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.0103/0.1857, allocations: 4.832 MB / 490.5 MB, free: 5.348 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.1858, allocations: 11.89 kB / 490.5 MB, free: 5.336 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007476/0.1933, allocations: 1.945 MB / 492.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004763/0.198, allocations: 2.442 MB / 494.9 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001992/0.1983, allocations: 258.4 kB / 495.1 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006757/0.199, allocations: 327.8 kB / 495.4 MB, free: 312 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01727/0.2162, allocations: 10.2 MB / 0.4938 GB, free: 5.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001204/0.2164, allocations: 51.52 kB / 0.4938 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004281/0.2168, allocations: 163.8 kB / 0.494 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002825/0.2197, allocations: 1.908 MB / 0.4959 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01778/0.2375, allocations: 8.142 MB / 0.5038 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2832/0.5207, allocations: 39.41 MB / 0.5423 GB, free: 58.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008352/0.5291, allocations: 3.271 MB / 0.5455 GB, free: 57.81 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/0.5308, allocations: 1.056 MB / 0.5465 GB, free: 57.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008048/0.5388, allocations: 5.914 MB / 0.5523 GB, free: 54.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.5389, allocations: 53.78 kB / 0.5523 GB, free: 54.92 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 4.108e-06/0.5389, allocations: 1.219 kB / 0.5523 GB, free: 54.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=160): time 0.02147/0.5604, allocations: 9.483 MB / 0.5616 GB, free: 50.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.5605, allocations: 144.5 kB / 0.5617 GB, free: 50.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005074/0.5655, allocations: 4.073 MB / 0.5657 GB, free: 49.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001807/0.5658, allocations: 51.86 kB / 0.5658 GB, free: 49.15 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001668/0.5674, allocations: 3.18 MB / 0.5689 GB, free: 46.37 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004922/0.5679, allocations: 0.6346 MB / 0.5695 GB, free: 45.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001231/0.5692, allocations: 1.218 MB / 0.5707 GB, free: 45.14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.235e-05/0.5692, allocations: 301.1 kB / 0.571 GB, free: 44.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002062/0.5713, allocations: 1.653 MB / 0.5726 GB, free: 44.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003624/0.5749, allocations: 5.518 MB / 0.578 GB, free: 37.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006441/0.5814, allocations: 7.792 MB / 0.5856 GB, free: 28.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.083e-05/0.5815, allocations: 40 kB / 0.5856 GB, free: 28.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01051/0.592, allocations: 6.902 MB / 0.5924 GB, free: 21.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.037e-05/0.5921, allocations: 64 kB / 0.5924 GB, free: 21.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001074/0.5923, allocations: 136 kB / 0.5926 GB, free: 21.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001271/0.5924, allocations: 187.9 kB / 0.5927 GB, free: 20.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003508/0.5959, allocations: 1.443 MB / 0.5941 GB, free: 19.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001392/0.5961, allocations: 267 kB / 0.5944 GB, free: 19.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003812/0.5999, allocations: 291.6 kB / 0.5947 GB, free: 18.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004032/0.6003, allocations: 379.9 kB / 0.595 GB, free: 18.51 MB / 414.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.002592/0.6029, allocations: 2.036 MB / 0.597 GB, free: 16.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006165/0.6035, allocations: 355.5 kB / 0.5974 GB, free: 16.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/0.6054, allocations: 1.34 MB / 0.5987 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-05/0.6054, allocations: 16 kB / 0.5987 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.6054, allocations: 4 kB / 0.5987 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.6055, allocations: 5.422 kB / 0.5987 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008296/0.6138, allocations: 5.831 MB / 0.6044 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.799e-05/0.6138, allocations: 16 kB / 0.6044 GB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008841/0.6147, allocations: 275.5 kB / 0.6047 GB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.796e-05/0.6147, allocations: 24 kB / 0.6047 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.049e-05/0.6148, allocations: 52.62 kB / 0.6047 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.042e-05/0.6148, allocations: 35.86 kB / 0.6048 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.496e-05/0.6149, allocations: 35.86 kB / 0.6048 GB, free: 8.203 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00318/0.6181, allocations: 3.277 MB / 0.608 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.6191, allocations: 0.532 MB / 0.6085 GB, free: 4.121 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003327/0.6195, allocations: 45.42 kB / 0.6086 GB, free: 4.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.6206, allocations: 59.97 kB / 0.6086 GB, free: 4.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.6207, allocations: 143.4 kB / 0.6088 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-05/0.6208, allocations: 71.98 kB / 0.6088 GB, free: 3.809 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003131/0.624, allocations: 2.523 MB / 0.6113 GB, free: 1.273 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.62e-07/0.624, allocations: 4 kB / 0.6113 GB, free: 1.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005116/0.6291, allocations: 0.9126 MB / 0.6122 GB, free: 376 kB / 414.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.00042/0.6295, allocations: 197.3 kB / 0.6124 GB, free: 176 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006844/0.6364, allocations: 3.974 MB / 0.6163 GB, free: 12.25 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-05/0.6365, allocations: 4 kB / 0.6163 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.6376, allocations: 0.7496 MB / 0.617 GB, free: 11.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003157/0.6408, allocations: 487.2 kB / 0.6175 GB, free: 11.03 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01729/0.6581, allocations: 9.286 MB / 0.6265 GB, free: 1.496 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003529/0.6616, allocations: 3.169 MB / 0.6296 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008682/0.6625, allocations: 291.4 kB / 0.6299 GB, free: 14.02 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6626, allocations: 0 / 0.6299 GB, free: 14.02 MB / 446.1 MB Notification: Performance of Templates: time 0.086/0.7486, allocations: 53.25 MB / 0.6819 GB, free: 8.781 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches