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.001131/0.001132, allocations: 97.69 kB / 17 MB, free: 6.418 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.001441/0.001441, allocations: 188.3 kB / 17.89 MB, free: 5.945 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.51/1.51, allocations: 223.2 MB / 241.9 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2184/0.2184, allocations: 44.25 MB / 337.3 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005808/0.0005811, allocations: 8 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1602/0.1608, allocations: 61.93 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.03897/0.1998, allocations: 38.78 MB / 0.4984 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.348/0.5479, allocations: 8.743 MB / 0.5069 GB, free: 9.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009778/0.5577, allocations: 187.6 kB / 0.5071 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008178/0.5659, allocations: 1.985 MB / 0.5091 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02143/0.5874, allocations: 6.016 MB / 0.5149 GB, free: 9.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003428/0.5908, allocations: 0.6712 MB / 0.5156 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008844/0.5997, allocations: 4.897 MB / 0.5204 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006918/0.6066, allocations: 4.139 MB / 0.5244 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003063/0.6097, allocations: 1.278 MB / 0.5257 GB, free: 7.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003299/0.613, allocations: 2.083 MB / 0.5277 GB, free: 6.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006282/0.6137, allocations: 150.8 kB / 0.5278 GB, free: 6.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001858/0.6155, allocations: 0.7304 MB / 0.5286 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001661/0.6172, allocations: 1.719 MB / 0.5302 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001023/0.6183, allocations: 0.8248 MB / 0.531 GB, free: 5.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005513/0.6238, allocations: 5.215 MB / 0.5361 GB, free: 2.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.6238, allocations: 4 kB / 0.5361 GB, free: 2.715 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.6238, allocations: 2.844 kB / 0.5361 GB, free: 2.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002215/0.624, allocations: 3.938 kB / 0.5361 GB, free: 2.711 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.009654/0.6337, allocations: 4.012 MB / 0.5401 GB, free: 256 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.6338, allocations: 8.969 kB / 0.5401 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007952/0.6417, allocations: 2.063 MB / 0.5421 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005064/0.6468, allocations: 2.301 MB / 0.5443 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002033/0.647, allocations: 256.8 kB / 0.5446 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005418/0.6476, allocations: 323 kB / 0.5449 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01766/0.6653, allocations: 10.2 MB / 0.5548 GB, free: 5.359 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001212/0.6654, allocations: 43.62 kB / 0.5549 GB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004024/0.6658, allocations: 161.2 kB / 0.555 GB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002803/0.6686, allocations: 1.898 MB / 0.5569 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01689/0.6855, allocations: 8.133 MB / 0.5648 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06066/0.7462, allocations: 39.4 MB / 0.6033 GB, free: 6.391 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0113/0.7576, allocations: 3.261 MB / 0.6065 GB, free: 2.965 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/0.7594, allocations: 1.047 MB / 0.6075 GB, free: 1.906 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01204/0.7715, allocations: 5.915 MB / 0.6133 GB, free: 11.68 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.075e-05/0.7716, allocations: 51.5 kB / 0.6133 GB, free: 11.62 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 5.941e-06/0.7716, allocations: 0 / 0.6133 GB, free: 11.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.03234/0.8039, allocations: 9.432 MB / 0.6226 GB, free: 2.094 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.8041, allocations: 149.5 kB / 0.6227 GB, free: 1.918 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006353/0.8104, allocations: 4.024 MB / 0.6266 GB, free: 13.87 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000272/0.8107, allocations: 49.92 kB / 0.6267 GB, free: 13.82 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003742/0.8145, allocations: 3.181 MB / 0.6298 GB, free: 10.65 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009332/0.8154, allocations: 0.6379 MB / 0.6304 GB, free: 10.02 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/0.8157, allocations: 123.9 kB / 0.6305 GB, free: 9.898 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0006025/0.8163, allocations: 0.5623 MB / 0.6311 GB, free: 9.328 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003107/0.8194, allocations: 1.628 MB / 0.6327 GB, free: 7.695 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00689/0.8263, allocations: 5.493 MB / 0.638 GB, free: 272 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004746/0.8311, allocations: 2.932 MB / 0.6409 GB, free: 13.33 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.001e-05/0.8312, allocations: 40 kB / 0.6409 GB, free: 13.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01238/0.8436, allocations: 6.848 MB / 0.6476 GB, free: 6.441 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.485e-05/0.8437, allocations: 65.53 kB / 0.6477 GB, free: 6.379 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/0.8438, allocations: 136 kB / 0.6478 GB, free: 6.246 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001875/0.844, allocations: 207.9 kB / 0.648 GB, free: 6.043 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00407/0.8481, allocations: 1.435 MB / 0.6494 GB, free: 4.605 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002068/0.8483, allocations: 263.3 kB / 0.6497 GB, free: 4.348 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003955/0.8523, allocations: 298.8 kB / 0.6499 GB, free: 4.059 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006208/0.8529, allocations: 380 kB / 0.6503 GB, free: 3.688 MB / 494.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00375/0.8567, allocations: 2.037 MB / 0.6523 GB, free: 1.637 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007343/0.8574, allocations: 351.4 kB / 0.6526 GB, free: 1.289 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002535/0.86, allocations: 1.329 MB / 0.6539 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.808e-05/0.86, allocations: 20 kB / 0.654 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.86, allocations: 3.953 kB / 0.654 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/0.8601, allocations: 7.969 kB / 0.654 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/0.8705, allocations: 5.822 MB / 0.6596 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.202e-05/0.8705, allocations: 17.64 kB / 0.6597 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009609/0.8715, allocations: 279.5 kB / 0.6599 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.963e-05/0.8715, allocations: 28 kB / 0.66 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.301e-05/0.8716, allocations: 48 kB / 0.66 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.552e-05/0.8716, allocations: 35.86 kB / 0.66 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.94e-05/0.8717, allocations: 28.34 kB / 0.6601 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00432/0.876, allocations: 3.262 MB / 0.6633 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/0.8772, allocations: 424.4 kB / 0.6637 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003465/0.8775, allocations: 59.92 kB / 0.6637 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.8786, allocations: 59.97 kB / 0.6638 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.8788, allocations: 143.3 kB / 0.6639 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.495e-05/0.8789, allocations: 67.98 kB / 0.664 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004106/0.883, allocations: 2.484 MB / 0.6664 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.7e-07/0.8831, allocations: 4 kB / 0.6664 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005014/0.8881, allocations: 0.9091 MB / 0.6673 GB, free: 1.711 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004216/0.8885, allocations: 208.4 kB / 0.6675 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006929/0.8955, allocations: 3.758 MB / 0.6712 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/0.8955, allocations: 4 kB / 0.6712 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.8966, allocations: 0.7341 MB / 0.6719 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003774/0.9004, allocations: 467.4 kB / 0.6723 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0198/0.9202, allocations: 10.42 MB / 0.6825 GB, free: 1.898 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005393/0.9257, allocations: 3.181 MB / 0.6856 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005281/0.931, allocations: 1.808 MB / 0.6874 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008494/0.9319, allocations: 247.4 kB / 0.6876 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of SimCode: time 1.322e-06/0.9319, allocations: 0 / 0.6876 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of Templates: time 0.0608/0.9927, allocations: 26.86 MB / 0.7138 GB, free: 1.945 MB / 0.545 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 -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/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_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches