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.001096/0.001097, allocations: 119.8 kB / 18.41 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 203.5 kB / 19.36 MB, free: 3.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2072/0.2072, allocations: 46.1 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 71.89 kB / 419 MB, free: 18.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1033, allocations: 62.45 MB / 481.5 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01202/0.1154, allocations: 11.35 MB / 492.8 MB, free: 9.098 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007921/0.1233, allocations: 4.077 MB / 496.9 MB, free: 5.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/0.1246, allocations: 67.81 kB / 497 MB, free: 4.941 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004159/0.1287, allocations: 2.472 MB / 499.4 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004123/0.1329, allocations: 1.84 MB / 0.4895 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001481/0.1344, allocations: 0.7761 MB / 0.4903 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005165/0.1396, allocations: 4.507 MB / 0.4947 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003303/0.1429, allocations: 3.331 MB / 0.4979 GB, free: 7.941 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/0.1448, allocations: 1.55 MB / 0.4994 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002464/0.1472, allocations: 2.216 MB / 0.5016 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005519/0.1478, allocations: 332 kB / 0.5019 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001625/0.1494, allocations: 0.9597 MB / 0.5029 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001565/0.151, allocations: 1.913 MB / 0.5047 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.185/0.336, allocations: 2.232 MB / 0.5069 GB, free: 17.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007821/0.3439, allocations: 6.812 MB / 0.5136 GB, free: 17.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3439, allocations: 0 / 0.5136 GB, free: 17.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3439, allocations: 0 / 0.5136 GB, free: 17.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002404/0.3442, allocations: 0 / 0.5136 GB, free: 17.18 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.01074/0.3549, allocations: 4.783 MB / 0.5182 GB, free: 15.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.355, allocations: 13.19 kB / 0.5183 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007409/0.3624, allocations: 1.947 MB / 0.5202 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005978/0.3684, allocations: 2.32 MB / 0.5224 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002155/0.3686, allocations: 250.8 kB / 0.5227 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001046/0.3697, allocations: 332.7 kB / 0.523 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01733/0.387, allocations: 10.24 MB / 0.533 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001156/0.3872, allocations: 49.5 kB / 0.533 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000413/0.3876, allocations: 158.3 kB / 0.5332 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002275/0.3899, allocations: 1.912 MB / 0.535 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0141/0.404, allocations: 8.17 MB / 0.543 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04549/0.4495, allocations: 39.24 MB / 0.5813 GB, free: 13.18 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007881/0.4574, allocations: 3.286 MB / 0.5845 GB, free: 9.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0016/0.4591, allocations: 1.052 MB / 0.5856 GB, free: 8.668 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008987/0.4681, allocations: 5.987 MB / 0.5914 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.4681, allocations: 54.09 kB / 0.5915 GB, free: 2.285 MB / 430.1 MB Notification: Performance of pre-optimization done (n=148): time 5.19e-06/0.4681, allocations: 3.984 kB / 0.5915 GB, free: 2.281 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.02475/0.4929, allocations: 9.506 MB / 0.6008 GB, free: 8.691 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/0.4931, allocations: 200.9 kB / 0.601 GB, free: 8.449 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006422/0.4995, allocations: 4.035 MB / 0.6049 GB, free: 4.387 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002773/0.4998, allocations: 53.7 kB / 0.6049 GB, free: 4.328 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002597/0.5024, allocations: 3.181 MB / 0.6081 GB, free: 1.152 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008585/0.5033, allocations: 0.6341 MB / 0.6087 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001604/0.5049, allocations: 1.216 MB / 0.6099 GB, free: 15.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.505, allocations: 305.1 kB / 0.6102 GB, free: 15 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/0.5078, allocations: 1.663 MB / 0.6118 GB, free: 13.33 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005019/0.5128, allocations: 5.534 MB / 0.6172 GB, free: 5.926 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008612/0.5215, allocations: 7.804 MB / 0.6248 GB, free: 12.76 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.479e-05/0.5216, allocations: 40 kB / 0.6248 GB, free: 12.72 MB / 478.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01252/0.5341, allocations: 6.923 MB / 0.6316 GB, free: 5.887 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.773e-05/0.5342, allocations: 64 kB / 0.6317 GB, free: 5.824 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001327/0.5344, allocations: 136.9 kB / 0.6318 GB, free: 5.691 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001769/0.5346, allocations: 180 kB / 0.632 GB, free: 5.516 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004392/0.539, allocations: 1.439 MB / 0.6334 GB, free: 4.074 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001987/0.5392, allocations: 271 kB / 0.6336 GB, free: 3.809 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003883/0.5431, allocations: 302 kB / 0.6339 GB, free: 3.516 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005311/0.5436, allocations: 375.9 kB / 0.6343 GB, free: 3.148 MB / 478.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.003469/0.5471, allocations: 2.041 MB / 0.6363 GB, free: 1.094 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005724/0.5477, allocations: 343.5 kB / 0.6366 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007227/0.5484, allocations: 422.5 kB / 0.637 GB, free: 340 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.258e-05/0.5484, allocations: 18.62 kB / 0.637 GB, free: 324 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/0.5484, allocations: 0 / 0.637 GB, free: 324 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.5485, allocations: 7.984 kB / 0.637 GB, free: 316 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01027/0.5587, allocations: 5.844 MB / 0.6427 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.246e-05/0.5588, allocations: 24.06 kB / 0.6428 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.5598, allocations: 283.5 kB / 0.643 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-05/0.5598, allocations: 24 kB / 0.643 GB, free: 9.863 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.682e-05/0.5599, allocations: 50.56 kB / 0.6431 GB, free: 9.816 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.223e-05/0.56, allocations: 39.7 kB / 0.6431 GB, free: 9.781 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-05/0.56, allocations: 27.88 kB / 0.6432 GB, free: 9.754 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004078/0.5641, allocations: 3.3 MB / 0.6464 GB, free: 6.207 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/0.5655, allocations: 416.5 kB / 0.6468 GB, free: 5.777 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003954/0.5659, allocations: 51.98 kB / 0.6468 GB, free: 5.727 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.5671, allocations: 67.95 kB / 0.6469 GB, free: 5.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.5672, allocations: 147.4 kB / 0.647 GB, free: 5.516 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.5673, allocations: 70.48 kB / 0.6471 GB, free: 5.449 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004231/0.5716, allocations: 2.503 MB / 0.6495 GB, free: 2.934 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5716, allocations: 0 / 0.6495 GB, free: 2.934 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005371/0.577, allocations: 0.8867 MB / 0.6504 GB, free: 2.047 MB / 494.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.0004799/0.5775, allocations: 197.2 kB / 0.6506 GB, free: 1.844 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006375/0.5839, allocations: 3.842 MB / 0.6543 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/0.5839, allocations: 4 kB / 0.6544 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.585, allocations: 0.7564 MB / 0.6551 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/0.5878, allocations: 485.3 kB / 0.6556 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01422/0.602, allocations: 8.717 MB / 0.6641 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003497/0.6056, allocations: 3.165 MB / 0.6672 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003826/0.6094, allocations: 1.816 MB / 0.6689 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005205/0.6099, allocations: 251.3 kB / 0.6692 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of SimCode: time 1.032e-06/0.61, allocations: 0 / 0.6692 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of Templates: time 0.05145/0.6614, allocations: 23.14 MB / 0.6918 GB, free: 7.711 MB / 0.5294 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 -s gbode -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/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_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches