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.001107/0.001107, allocations: 122.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001053, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2305/0.2305, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 72.16 kB / 481.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.435/0.4363, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.0148/0.4512, allocations: 11.37 MB / 0.5421 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01211/0.4634, allocations: 4.054 MB / 0.5461 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004573/0.468, allocations: 65.09 kB / 0.5461 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006164/0.4742, allocations: 2.492 MB / 0.5486 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007579/0.4819, allocations: 1.828 MB / 0.5503 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002439/0.4843, allocations: 0.7761 MB / 0.5511 GB, free: 13.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00773/0.4921, allocations: 4.511 MB / 0.5555 GB, free: 8.574 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005341/0.4974, allocations: 3.328 MB / 0.5588 GB, free: 5.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00341/0.5009, allocations: 1.55 MB / 0.5603 GB, free: 3.645 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003939/0.5048, allocations: 2.223 MB / 0.5624 GB, free: 1.414 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001275/0.5061, allocations: 336 kB / 0.5628 GB, free: 1.086 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002996/0.5091, allocations: 0.9481 MB / 0.5637 GB, free: 140 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003497/0.5127, allocations: 1.921 MB / 0.5656 GB, free: 14.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006034/0.5187, allocations: 2.229 MB / 0.5677 GB, free: 11.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01364/0.5324, allocations: 6.835 MB / 0.5744 GB, free: 5.109 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.5324, allocations: 0 / 0.5744 GB, free: 5.109 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5324, allocations: 0 / 0.5744 GB, free: 5.109 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003341/0.5328, allocations: 0 / 0.5744 GB, free: 5.109 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.01436/0.5472, allocations: 4.92 MB / 0.5792 GB, free: 112 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.5472, allocations: 12.03 kB / 0.5792 GB, free: 100 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007163/0.5544, allocations: 1.964 MB / 0.5811 GB, free: 14.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004981/0.5594, allocations: 2.338 MB / 0.5834 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/0.5596, allocations: 257.9 kB / 0.5837 GB, free: 11.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006179/0.5603, allocations: 327.8 kB / 0.584 GB, free: 11.16 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01754/0.5778, allocations: 10.24 MB / 0.594 GB, free: 120 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001228/0.578, allocations: 47.64 kB / 0.594 GB, free: 72 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004326/0.5784, allocations: 155.9 kB / 0.5942 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002816/0.5812, allocations: 1.911 MB / 0.596 GB, free: 14 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01872/0.6, allocations: 8.181 MB / 0.604 GB, free: 5.797 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04705/0.6471, allocations: 39.3 MB / 0.6424 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008338/0.6554, allocations: 3.301 MB / 0.6456 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.6572, allocations: 1.057 MB / 0.6467 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008743/0.6659, allocations: 6.006 MB / 0.6525 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.666, allocations: 51.56 kB / 0.6526 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 3.536e-06/0.666, allocations: 0 / 0.6526 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02259/0.6886, allocations: 9.746 MB / 0.6621 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.6888, allocations: 200.8 kB / 0.6623 GB, free: 8.25 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006322/0.6951, allocations: 4.051 MB / 0.6663 GB, free: 4.172 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002284/0.6953, allocations: 45.7 kB / 0.6663 GB, free: 4.121 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002546/0.6979, allocations: 3.31 MB / 0.6695 GB, free: 0.7773 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008389/0.6988, allocations: 0.6669 MB / 0.6702 GB, free: 108 kB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/0.7004, allocations: 1.227 MB / 0.6714 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.7006, allocations: 305.1 kB / 0.6717 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002688/0.7033, allocations: 1.663 MB / 0.6733 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005568/0.7088, allocations: 5.534 MB / 0.6787 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009037/0.7179, allocations: 7.8 MB / 0.6863 GB, free: 11.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.028e-05/0.718, allocations: 40 kB / 0.6864 GB, free: 11.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01145/0.7295, allocations: 6.94 MB / 0.6931 GB, free: 4.719 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.713e-05/0.7296, allocations: 65 kB / 0.6932 GB, free: 4.656 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001508/0.7297, allocations: 136 kB / 0.6933 GB, free: 4.523 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001801/0.7299, allocations: 184 kB / 0.6935 GB, free: 4.344 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004116/0.7341, allocations: 1.439 MB / 0.6949 GB, free: 2.902 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002162/0.7343, allocations: 270.9 kB / 0.6952 GB, free: 2.637 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003973/0.7383, allocations: 295.7 kB / 0.6954 GB, free: 2.348 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005256/0.7388, allocations: 384 kB / 0.6958 GB, free: 1.973 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.003392/0.7422, allocations: 2.037 MB / 0.6978 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006649/0.7429, allocations: 369.5 kB / 0.6982 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007166/0.7436, allocations: 410.6 kB / 0.6985 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-05/0.7437, allocations: 19.44 kB / 0.6986 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/0.7437, allocations: 7.938 kB / 0.6986 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.7437, allocations: 15.97 kB / 0.6986 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008605/0.7523, allocations: 5.836 MB / 0.7043 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.04e-05/0.7524, allocations: 16 kB / 0.7043 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009749/0.7533, allocations: 287.5 kB / 0.7046 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.339e-05/0.7534, allocations: 24 kB / 0.7046 GB, free: 8.641 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.102e-05/0.7535, allocations: 48 kB / 0.7046 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.547e-05/0.7535, allocations: 35.92 kB / 0.7047 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.484e-05/0.7535, allocations: 24.31 kB / 0.7047 GB, free: 8.535 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003746/0.7573, allocations: 3.336 MB / 0.708 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006881/0.758, allocations: 434.5 kB / 0.7084 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003046/0.7583, allocations: 47.98 kB / 0.7084 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.7593, allocations: 71.94 kB / 0.7085 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.7595, allocations: 147.4 kB / 0.7086 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.838e-05/0.7596, allocations: 64 kB / 0.7087 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003502/0.7631, allocations: 2.503 MB / 0.7111 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.81e-07/0.7631, allocations: 0 / 0.7111 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00435/0.7675, allocations: 0.8867 MB / 0.712 GB, free: 0.7773 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.0003663/0.7679, allocations: 202.6 kB / 0.7122 GB, free: 0.5703 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005774/0.7736, allocations: 3.846 MB / 0.7159 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/0.7737, allocations: 0 / 0.7159 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.7747, allocations: 0.7508 MB / 0.7167 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002544/0.7772, allocations: 485.6 kB / 0.7171 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/0.7912, allocations: 8.878 MB / 0.7258 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3392/1.13, allocations: 3.164 MB / 0.7289 GB, free: 175.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00498/1.136, allocations: 1.82 MB / 0.7307 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000614/1.136, allocations: 240.6 kB / 0.7309 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.262e-06/1.136, allocations: 0 / 0.7309 GB, free: 175.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.0511/1.187, allocations: 25.12 MB / 0.7554 GB, free: 162.3 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