Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002303/0.002303, allocations: 180.2 kB / 13.65 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.145e-05/3.152e-05, allocations: 4 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09338/0.09344, allocations: 47.58 MB / 369.1 MB, free: 2.184 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4369/0.5304, allocations: 93.21 MB / 462.3 MB, free: 164 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/0.5308, allocations: 88.27 kB / 462.4 MB, free: 116 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.281/0.8118, allocations: 66.6 MB / 0.5166 GB, free: 14.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.8119, allocations: 0 / 0.5166 GB, free: 14.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000256/0.8122, allocations: 64 kB / 0.5167 GB, free: 14.64 MB / 410.7 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.01215/0.8243, allocations: 3.088 MB / 0.5197 GB, free: 11.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.8244, allocations: 8.031 kB / 0.5197 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01411/0.8385, allocations: 1.902 MB / 0.5215 GB, free: 9.574 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007596/0.8462, allocations: 1.977 MB / 0.5235 GB, free: 7.539 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003696/0.8466, allocations: 230.8 kB / 0.5237 GB, free: 7.312 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00184/0.8485, allocations: 303.9 kB / 0.524 GB, free: 7.016 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3173/1.166, allocations: 7.401 MB / 0.5312 GB, free: 97.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003093/1.166, allocations: 43.31 kB / 0.5312 GB, free: 97.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001845/1.168, allocations: 153.9 kB / 0.5314 GB, free: 97.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002709/1.171, allocations: 0.7403 MB / 0.5321 GB, free: 97.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02262/1.194, allocations: 5.603 MB / 0.5376 GB, free: 97.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05308/1.247, allocations: 35.32 MB / 0.5721 GB, free: 73.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004511/1.251, allocations: 1.641 MB / 0.5737 GB, free: 72.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001103/1.252, allocations: 473.1 kB / 0.5741 GB, free: 72.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00601/1.258, allocations: 2.913 MB / 0.577 GB, free: 70.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/1.259, allocations: 44.12 kB / 0.577 GB, free: 70.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=83): time 5.35e-06/1.259, allocations: 3.5 kB / 0.577 GB, free: 70.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.006126/1.265, allocations: 1.428 MB / 0.5784 GB, free: 70.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.44e-05/1.265, allocations: 213.1 kB / 0.5786 GB, free: 69.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007665/1.272, allocations: 3.279 MB / 0.5818 GB, free: 68.85 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001763/1.273, allocations: 38.66 kB / 0.5819 GB, free: 68.81 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002302/1.275, allocations: 2.624 MB / 0.5844 GB, free: 66.92 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005503/1.276, allocations: 373.9 kB / 0.5848 GB, free: 66.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004457/1.276, allocations: 89.56 kB / 0.5849 GB, free: 66.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003074/1.276, allocations: 0.5153 MB / 0.5854 GB, free: 66.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002868/1.279, allocations: 1.182 MB / 0.5865 GB, free: 65.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005007/1.284, allocations: 4.526 MB / 0.5909 GB, free: 60.87 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005107/1.29, allocations: 2.333 MB / 0.5932 GB, free: 60.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/1.29, allocations: 33.16 kB / 0.5933 GB, free: 60.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.01394/1.304, allocations: 5.325 MB / 0.5985 GB, free: 58.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.834e-05/1.304, allocations: 56.91 kB / 0.5985 GB, free: 58.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001744/1.304, allocations: 118.4 kB / 0.5986 GB, free: 58.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002154/1.304, allocations: 180.3 kB / 0.5988 GB, free: 58.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00653/1.311, allocations: 1.131 MB / 0.5999 GB, free: 58.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002409/1.311, allocations: 238.1 kB / 0.6001 GB, free: 57.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005911/1.317, allocations: 0.6938 MB / 0.6008 GB, free: 57.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001036/1.318, allocations: 348 kB / 0.6011 GB, free: 57.51 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 551 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (596): * Single equations (assignments): 593 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009334/1.319, allocations: 0.4953 MB / 0.6016 GB, free: 57.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006707/1.32, allocations: 296.8 kB / 0.6019 GB, free: 56.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/1.321, allocations: 0.4888 MB / 0.6024 GB, free: 56.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.915e-05/1.321, allocations: 10.97 kB / 0.6024 GB, free: 56.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/1.321, allocations: 3.594 kB / 0.6024 GB, free: 56.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/1.321, allocations: 7.641 kB / 0.6024 GB, free: 56.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009169/1.331, allocations: 3.29 MB / 0.6056 GB, free: 55.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.69e-05/1.331, allocations: 7 kB / 0.6056 GB, free: 55.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/1.332, allocations: 115.5 kB / 0.6057 GB, free: 55.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.549e-05/1.332, allocations: 7.781 kB / 0.6057 GB, free: 55.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.519e-05/1.332, allocations: 18.61 kB / 0.6058 GB, free: 55.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-05/1.332, allocations: 6.969 kB / 0.6058 GB, free: 55.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/1.332, allocations: 14.59 kB / 0.6058 GB, free: 55.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003149/1.335, allocations: 2.467 MB / 0.6082 GB, free: 53.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/1.336, allocations: 475.2 kB / 0.6086 GB, free: 53.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005377/1.337, allocations: 19.62 kB / 0.6087 GB, free: 53.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/1.339, allocations: 43.73 kB / 0.6087 GB, free: 53.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/1.339, allocations: 52.84 kB / 0.6087 GB, free: 53.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.497e-05/1.339, allocations: 25.72 kB / 0.6088 GB, free: 53.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005726/1.345, allocations: 2.326 MB / 0.611 GB, free: 52.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.11e-07/1.345, allocations: 3.656 kB / 0.611 GB, free: 52.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005614/1.35, allocations: 0.8301 MB / 0.6119 GB, free: 52.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 2 (prismatic.v,position.s) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 57 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005007/1.351, allocations: 153.8 kB / 0.612 GB, free: 52.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006506/1.357, allocations: 2.766 MB / 0.6147 GB, free: 51.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/1.357, allocations: 0 / 0.6147 GB, free: 51.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008781/1.358, allocations: 407.5 kB / 0.6151 GB, free: 51.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/1.361, allocations: 357.7 kB / 0.6154 GB, free: 50.76 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01525/1.376, allocations: 5.72 MB / 0.621 GB, free: 45.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005135/1.381, allocations: 2.758 MB / 0.6237 GB, free: 43.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/1.383, allocations: 266.5 kB / 0.624 GB, free: 43.24 MB / 410.7 MB Notification: Performance of SimCode: time 1.653e-06/1.383, allocations: 4 kB / 0.624 GB, free: 43.23 MB / 410.7 MB Notification: Performance of Templates: time 0.09073/1.474, allocations: 43.93 MB / 0.6669 GB, free: 4.504 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Surfaces/Surfaces.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches