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.00147/0.00147, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001601/0.001601, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2255/0.2255, allocations: 46.09 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 78.28 kB / 417.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1368, allocations: 62.45 MB / 480 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01164/0.1485, allocations: 11.35 MB / 491.4 MB, free: 9.902 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008492/0.157, allocations: 4.057 MB / 495.4 MB, free: 5.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002368/0.1594, allocations: 71.75 kB / 495.5 MB, free: 5.766 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004604/0.1641, allocations: 2.488 MB / 498 MB, free: 3.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005309/0.1694, allocations: 1.828 MB / 499.8 MB, free: 1.434 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001886/0.1713, allocations: 0.78 MB / 0.4889 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006683/0.178, allocations: 4.503 MB / 0.4933 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004651/0.1827, allocations: 3.343 MB / 0.4965 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002741/0.1855, allocations: 1.542 MB / 0.498 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003237/0.1888, allocations: 2.216 MB / 0.5002 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007562/0.1895, allocations: 332 kB / 0.5005 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002025/0.1916, allocations: 0.9597 MB / 0.5014 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001874/0.1934, allocations: 1.913 MB / 0.5033 GB, free: 1.777 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2605/0.4539, allocations: 2.232 MB / 0.5055 GB, free: 18.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/0.4663, allocations: 6.566 MB / 0.5119 GB, free: 17.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.4663, allocations: 1.406 kB / 0.5119 GB, free: 17.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4664, allocations: 3.031 kB / 0.5119 GB, free: 17.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000318/0.4667, allocations: 0 / 0.5119 GB, free: 17.86 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.01617/0.4829, allocations: 4.785 MB / 0.5166 GB, free: 15.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.4829, allocations: 8.625 kB / 0.5166 GB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008324/0.4912, allocations: 1.951 MB / 0.5185 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006634/0.4979, allocations: 2.288 MB / 0.5207 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002944/0.4982, allocations: 250.7 kB / 0.521 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001411/0.4997, allocations: 330.4 kB / 0.5213 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02333/0.523, allocations: 10.23 MB / 0.5313 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001474/0.5232, allocations: 51.44 kB / 0.5313 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004714/0.5237, allocations: 154.3 kB / 0.5315 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002606/0.5263, allocations: 1.91 MB / 0.5333 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01633/0.5426, allocations: 8.17 MB / 0.5413 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0581/0.6008, allocations: 39.4 MB / 0.5798 GB, free: 14.7 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008846/0.6097, allocations: 3.308 MB / 0.583 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001746/0.6115, allocations: 1.054 MB / 0.5841 GB, free: 10.17 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009136/0.6206, allocations: 5.998 MB / 0.5899 GB, free: 3.84 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.965e-05/0.6207, allocations: 43.56 kB / 0.59 GB, free: 3.789 MB / 430.1 MB Notification: Performance of pre-optimization done (n=148): time 4.779e-06/0.6207, allocations: 0 / 0.59 GB, free: 3.789 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.02475/0.6455, allocations: 9.515 MB / 0.5992 GB, free: 10.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.551e-05/0.6456, allocations: 141.5 kB / 0.5994 GB, free: 10.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006521/0.6521, allocations: 4.039 MB / 0.6033 GB, free: 5.957 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003443/0.6525, allocations: 49.7 kB / 0.6034 GB, free: 5.902 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002422/0.6549, allocations: 3.176 MB / 0.6065 GB, free: 2.727 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008275/0.6558, allocations: 0.6414 MB / 0.6071 GB, free: 2.09 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001652/0.6574, allocations: 1.212 MB / 0.6083 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.6576, allocations: 305.1 kB / 0.6086 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002774/0.6603, allocations: 1.663 MB / 0.6102 GB, free: 14.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005143/0.6655, allocations: 5.523 MB / 0.6156 GB, free: 7.512 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009408/0.6749, allocations: 7.805 MB / 0.6232 GB, free: 14.34 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001389/0.6751, allocations: 40 kB / 0.6233 GB, free: 14.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01421/0.6893, allocations: 6.917 MB / 0.63 GB, free: 7.555 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.365e-05/0.6894, allocations: 64 kB / 0.6301 GB, free: 7.492 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001824/0.6896, allocations: 140 kB / 0.6302 GB, free: 7.355 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001755/0.6898, allocations: 184.7 kB / 0.6304 GB, free: 7.176 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004501/0.6943, allocations: 1.439 MB / 0.6318 GB, free: 5.734 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001981/0.6945, allocations: 267.7 kB / 0.632 GB, free: 5.473 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004541/0.6991, allocations: 295.6 kB / 0.6323 GB, free: 5.184 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000631/0.6997, allocations: 382.9 kB / 0.6327 GB, free: 4.812 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.00398/0.7037, allocations: 2.044 MB / 0.6347 GB, free: 2.754 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006496/0.7044, allocations: 343.5 kB / 0.635 GB, free: 2.414 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008062/0.7052, allocations: 410.6 kB / 0.6354 GB, free: 2.004 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.153e-05/0.7052, allocations: 20 kB / 0.6354 GB, free: 1.984 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.554e-05/0.7053, allocations: 3.844 kB / 0.6354 GB, free: 1.984 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.7053, allocations: 9.719 kB / 0.6354 GB, free: 1.977 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009649/0.7149, allocations: 5.847 MB / 0.6411 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.507e-05/0.715, allocations: 16 kB / 0.6412 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009944/0.716, allocations: 288.3 kB / 0.6414 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.173e-05/0.716, allocations: 24 kB / 0.6415 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.334e-05/0.7161, allocations: 56 kB / 0.6415 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.713e-05/0.7162, allocations: 31.92 kB / 0.6415 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-05/0.7162, allocations: 27.88 kB / 0.6416 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004629/0.7208, allocations: 3.31 MB / 0.6448 GB, free: 7.863 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/0.722, allocations: 416.5 kB / 0.6452 GB, free: 7.434 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003808/0.7223, allocations: 48.08 kB / 0.6452 GB, free: 7.387 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.7235, allocations: 63.95 kB / 0.6453 GB, free: 7.324 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.7237, allocations: 151.4 kB / 0.6454 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-05/0.7238, allocations: 68 kB / 0.6455 GB, free: 7.109 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004449/0.7283, allocations: 2.507 MB / 0.648 GB, free: 4.59 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7283, allocations: 0 / 0.648 GB, free: 4.59 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005536/0.7338, allocations: 0.8906 MB / 0.6488 GB, free: 3.699 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.0004883/0.7343, allocations: 189.9 kB / 0.649 GB, free: 3.504 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007067/0.7414, allocations: 4.011 MB / 0.6529 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.13e-05/0.7415, allocations: 0 / 0.6529 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.7426, allocations: 0.7609 MB / 0.6537 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003524/0.7461, allocations: 471 kB / 0.6541 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01812/0.7643, allocations: 8.83 MB / 0.6627 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004145/0.7685, allocations: 3.173 MB / 0.6658 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004867/0.7734, allocations: 1.816 MB / 0.6676 GB, free: 192 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006436/0.7741, allocations: 239.5 kB / 0.6678 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of SimCode: time 1.262e-06/0.7741, allocations: 0 / 0.6678 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of Templates: time 0.06431/0.8384, allocations: 28.52 MB / 0.6957 GB, free: 3.629 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 -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