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.00118/0.00118, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001254/0.001254, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1956/0.1956, allocations: 46.11 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 75.89 kB / 482 MB, free: 4.031 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2743, allocations: 62.44 MB / 0.5317 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01155/0.2859, allocations: 11.37 MB / 0.5428 GB, free: 4.605 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007854/0.2938, allocations: 4.046 MB / 0.5467 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001829/0.2957, allocations: 65.91 kB / 0.5468 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004499/0.3002, allocations: 2.497 MB / 0.5492 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004543/0.3048, allocations: 1.886 MB / 0.5511 GB, free: 13.74 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001536/0.3064, allocations: 0.7682 MB / 0.5518 GB, free: 12.97 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005226/0.3116, allocations: 4.51 MB / 0.5562 GB, free: 8.453 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003455/0.3151, allocations: 3.334 MB / 0.5595 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002242/0.3174, allocations: 1.55 MB / 0.561 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002746/0.3201, allocations: 2.223 MB / 0.5632 GB, free: 1.289 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007743/0.3209, allocations: 332 kB / 0.5635 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001819/0.3227, allocations: 0.9558 MB / 0.5644 GB, free: 8 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001646/0.3244, allocations: 1.921 MB / 0.5663 GB, free: 14.08 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00228/0.3267, allocations: 2.241 MB / 0.5685 GB, free: 11.83 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006509/0.3332, allocations: 6.806 MB / 0.5751 GB, free: 5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.3333, allocations: 0 / 0.5751 GB, free: 5 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.3333, allocations: 0 / 0.5751 GB, free: 5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001712/0.3334, allocations: 3.938 kB / 0.5751 GB, free: 4.996 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.00854/0.342, allocations: 4.78 MB / 0.5798 GB, free: 148 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.3421, allocations: 12.03 kB / 0.5798 GB, free: 136 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006602/0.3487, allocations: 1.949 MB / 0.5817 GB, free: 14.17 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004569/0.3533, allocations: 2.325 MB / 0.584 GB, free: 11.79 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002009/0.3535, allocations: 262.4 kB / 0.5842 GB, free: 11.53 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007983/0.3543, allocations: 323.8 kB / 0.5845 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01566/0.37, allocations: 10.24 MB / 0.5945 GB, free: 180 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001423/0.3702, allocations: 47.52 kB / 0.5946 GB, free: 132 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007269/0.3709, allocations: 163.9 kB / 0.5947 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002544/0.3735, allocations: 1.904 MB / 0.5966 GB, free: 14.06 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01523/0.3887, allocations: 8.173 MB / 0.6046 GB, free: 5.863 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04143/0.4302, allocations: 39.23 MB / 0.6429 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007292/0.4375, allocations: 3.306 MB / 0.6461 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001579/0.4391, allocations: 1.058 MB / 0.6471 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00799/0.4472, allocations: 5.985 MB / 0.653 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.4472, allocations: 63.42 kB / 0.653 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.318e-06/0.4472, allocations: 0 / 0.653 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02174/0.469, allocations: 9.516 MB / 0.6623 GB, free: 8.836 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.4692, allocations: 192.9 kB / 0.6625 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006098/0.4753, allocations: 4.042 MB / 0.6665 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001918/0.4755, allocations: 45.7 kB / 0.6665 GB, free: 4.48 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002029/0.4776, allocations: 3.175 MB / 0.6696 GB, free: 1.258 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006406/0.4782, allocations: 0.6405 MB / 0.6702 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001658/0.4799, allocations: 1.218 MB / 0.6714 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.568e-05/0.48, allocations: 309.1 kB / 0.6717 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002651/0.4826, allocations: 1.66 MB / 0.6733 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005253/0.4879, allocations: 5.542 MB / 0.6788 GB, free: 5.93 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008136/0.4961, allocations: 7.807 MB / 0.6864 GB, free: 12.21 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001199/0.4962, allocations: 39.94 kB / 0.6864 GB, free: 12.17 MB / 0.545 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01115/0.5074, allocations: 6.924 MB / 0.6932 GB, free: 5.234 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.5075, allocations: 64 kB / 0.6932 GB, free: 5.172 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001623/0.5077, allocations: 136 kB / 0.6934 GB, free: 5.039 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.5079, allocations: 183.9 kB / 0.6935 GB, free: 4.859 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004165/0.5121, allocations: 1.439 MB / 0.695 GB, free: 3.418 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002428/0.5123, allocations: 271 kB / 0.6952 GB, free: 3.152 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003526/0.5159, allocations: 299.5 kB / 0.6955 GB, free: 2.859 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006117/0.5165, allocations: 372 kB / 0.6959 GB, free: 2.496 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.0029/0.5194, allocations: 2.041 MB / 0.6978 GB, free: 452 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006152/0.52, allocations: 351.5 kB / 0.6982 GB, free: 96 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008114/0.5208, allocations: 414.7 kB / 0.6986 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.68e-05/0.5209, allocations: 16 kB / 0.6986 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.5209, allocations: 0 / 0.6986 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.891e-05/0.5209, allocations: 15.91 kB / 0.6986 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009758/0.5307, allocations: 5.832 MB / 0.7043 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-05/0.5307, allocations: 16 kB / 0.7043 GB, free: 9.496 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009677/0.5317, allocations: 283.6 kB / 0.7046 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.701e-05/0.5318, allocations: 24 kB / 0.7046 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.5319, allocations: 47.98 kB / 0.7047 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.463e-05/0.5319, allocations: 35.86 kB / 0.7047 GB, free: 9.113 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-05/0.5319, allocations: 27.88 kB / 0.7047 GB, free: 9.086 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003757/0.5357, allocations: 3.307 MB / 0.7079 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008044/0.5365, allocations: 412.5 kB / 0.7083 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004598/0.537, allocations: 51.98 kB / 0.7084 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.5382, allocations: 71.94 kB / 0.7085 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.5383, allocations: 147.4 kB / 0.7086 GB, free: 4.832 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-05/0.5384, allocations: 71.98 kB / 0.7087 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003707/0.5422, allocations: 2.507 MB / 0.7111 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.31e-07/0.5422, allocations: 0 / 0.7111 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004485/0.5467, allocations: 0.8867 MB / 0.712 GB, free: 1.355 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.0005205/0.5472, allocations: 198.7 kB / 0.7122 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005862/0.5531, allocations: 3.836 MB / 0.7159 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/0.5531, allocations: 4.125 kB / 0.7159 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.5541, allocations: 0.764 MB / 0.7167 GB, free: 12.58 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002746/0.5569, allocations: 466.2 kB / 0.7171 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/0.571, allocations: 9.167 MB / 0.7261 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2216/0.7927, allocations: 3.169 MB / 0.7292 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.7938, allocations: 291.4 kB / 0.7294 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of SimCode: time 8.31e-07/0.7938, allocations: 0 / 0.7294 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.0683/0.8622, allocations: 53.6 MB / 0.7818 GB, free: 136.6 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/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