Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009841/0.000984, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002457/0.0002458, allocations: 8 kB / 308.4 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09133/0.09159, allocations: 51.52 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.1975/0.2891, allocations: 32.31 MB / 392.2 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01592/0.3051, allocations: 6.552 MB / 398.8 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008009/0.3132, allocations: 143.3 kB / 398.9 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.3149, allocations: 339 kB / 399.2 MB, free: 14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004342/0.3192, allocations: 1.238 MB / 400.5 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008127/0.3201, allocations: 204.9 kB / 400.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00681/0.3269, allocations: 4.559 MB / 405.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00462/0.3316, allocations: 2.751 MB / 408 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001735/0.3334, allocations: 0.7614 MB / 408.8 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002545/0.3359, allocations: 1.513 MB / 410.3 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005832/0.3365, allocations: 98.31 kB / 410.4 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001313/0.3379, allocations: 431.3 kB / 410.8 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001331/0.3392, allocations: 1.207 MB / 412 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001992/0.3412, allocations: 1.483 MB / 413.5 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003846/0.3451, allocations: 3.585 MB / 417.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.619e-05/0.3451, allocations: 0 / 417.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.3451, allocations: 3.938 kB / 417.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001844/0.3453, allocations: 8 kB / 417.1 MB, free: 1.656 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.006255/0.3516, allocations: 2.971 MB / 420 MB, free: 14.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.3517, allocations: 8.031 kB / 420.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006508/0.3582, allocations: 1.751 MB / 421.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00324/0.3614, allocations: 1.565 MB / 423.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.3616, allocations: 155.7 kB / 423.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007092/0.3624, allocations: 191.9 kB / 423.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01271/0.3751, allocations: 6.979 MB / 430.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/0.3752, allocations: 27.75 kB / 430.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006195/0.3759, allocations: 99.88 kB / 430.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002599/0.3785, allocations: 1.57 MB / 432.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01043/0.3889, allocations: 5.485 MB / 437.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03326/0.4222, allocations: 27.28 MB / 465.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002992/0.4253, allocations: 1.584 MB / 466.7 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007202/0.426, allocations: 483.8 kB / 467.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004082/0.4301, allocations: 2.562 MB / 469.8 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.4302, allocations: 46.5 kB / 469.8 MB, free: 10.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 3.837e-06/0.4302, allocations: 0 / 469.8 MB, free: 10.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.004053/0.4343, allocations: 1.663 MB / 471.5 MB, free: 9.301 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/0.4344, allocations: 192.3 kB / 471.7 MB, free: 9.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006508/0.441, allocations: 3.71 MB / 475.4 MB, free: 5.371 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001399/0.4411, allocations: 41.64 kB / 475.4 MB, free: 5.324 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002292/0.4434, allocations: 2.717 MB / 478.1 MB, free: 2.566 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005354/0.444, allocations: 363.9 kB / 478.5 MB, free: 2.207 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006543/0.4447, allocations: 404.3 kB / 478.9 MB, free: 1.805 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.4448, allocations: 309.1 kB / 479.2 MB, free: 1.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002184/0.447, allocations: 1.2 MB / 480.4 MB, free: 300 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00473/0.4517, allocations: 4.572 MB / 485 MB, free: 9.992 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007678/0.4594, allocations: 6.308 MB / 491.3 MB, free: 1.988 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001308/0.4596, allocations: 36 kB / 491.3 MB, free: 1.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01162/0.4713, allocations: 5.449 MB / 496.7 MB, free: 12.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001875/0.4715, allocations: 60.25 kB / 496.8 MB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00026/0.4718, allocations: 120 kB / 496.9 MB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/0.472, allocations: 163.9 kB / 497.1 MB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003496/0.4755, allocations: 1.103 MB / 498.2 MB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002402/0.4758, allocations: 239.1 kB / 498.4 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004021/0.4798, allocations: 0.688 MB / 499.1 MB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006757/0.4805, allocations: 320 kB / 499.4 MB, free: 9.816 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (597): * Single equations (assignments): 594 * 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.003218/0.4838, allocations: 1.708 MB / 0.4894 GB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006574/0.4844, allocations: 304.1 kB / 0.4897 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.4857, allocations: 0.4982 MB / 0.4902 GB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.178e-05/0.4857, allocations: 12 kB / 0.4902 GB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.4858, allocations: 4 kB / 0.4902 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.4858, allocations: 11.92 kB / 0.4902 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006678/0.4925, allocations: 3.115 MB / 0.4932 GB, free: 4.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.586e-05/0.4925, allocations: 4 kB / 0.4932 GB, free: 4.062 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005217/0.4931, allocations: 112.4 kB / 0.4933 GB, free: 3.953 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.304e-05/0.4931, allocations: 4 kB / 0.4933 GB, free: 3.949 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.179e-05/0.4932, allocations: 16 kB / 0.4934 GB, free: 3.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-05/0.4932, allocations: 15.92 kB / 0.4934 GB, free: 3.918 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.4932, allocations: 4 kB / 0.4934 GB, free: 3.914 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/0.4957, allocations: 2.045 MB / 0.4954 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008785/0.4966, allocations: 440.9 kB / 0.4958 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004514/0.4971, allocations: 12 kB / 0.4958 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.4981, allocations: 36.03 kB / 0.4958 GB, free: 1.328 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.4982, allocations: 47.83 kB / 0.4959 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.014e-05/0.4983, allocations: 27.98 kB / 0.4959 GB, free: 1.254 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004429/0.5027, allocations: 2.369 MB / 0.4982 GB, free: 14.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5028, allocations: 0 / 0.4982 GB, free: 14.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004322/0.5071, allocations: 0.7982 MB / 0.499 GB, free: 14.1 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.v,position.s) * 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 (57): * Single equations (assignments): 54 * 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.0004373/0.5076, allocations: 143.1 kB / 0.4991 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005078/0.5127, allocations: 2.78 MB / 0.5019 GB, free: 11.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.5127, allocations: 0 / 0.5019 GB, free: 11.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006278/0.5133, allocations: 404.2 kB / 0.5022 GB, free: 10.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004252/0.5176, allocations: 364.2 kB / 0.5026 GB, free: 10.45 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/0.532, allocations: 8.627 MB / 0.511 GB, free: 1.75 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003831/0.5359, allocations: 2.679 MB / 0.5136 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006918/0.5366, allocations: 231.4 kB / 0.5138 GB, free: 14.82 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5366, allocations: 0 / 0.5138 GB, free: 14.82 MB / 446.1 MB Notification: Performance of Templates: time 0.2405/0.7771, allocations: 42.93 MB / 0.5558 GB, free: 132 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Surfaces/Surfaces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches