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.001492/0.001492, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.909/1.909, allocations: 205.4 MB / 222.5 MB, free: 9.098 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.001127/0.001127, allocations: 106.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003839/0.0003839, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3376, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.154/0.4916, allocations: 93.3 MB / 467.8 MB, free: 3.434 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0009852/0.4927, allocations: 103.9 kB / 467.9 MB, free: 3.332 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5363/1.029, allocations: 66.58 MB / 0.522 GB, free: 92.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.966e-06/1.029, allocations: 4 kB / 0.522 GB, free: 92.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001745/1.029, allocations: 61.42 kB / 0.5221 GB, free: 92.86 MB / 378.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.01142/1.041, allocations: 3.337 MB / 0.5253 GB, free: 90.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/1.041, allocations: 14.94 kB / 0.5253 GB, free: 90.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01322/1.054, allocations: 1.899 MB / 0.5272 GB, free: 88.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006927/1.061, allocations: 1.992 MB / 0.5291 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002397/1.061, allocations: 236 kB / 0.5293 GB, free: 86.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001601/1.063, allocations: 310.3 kB / 0.5296 GB, free: 86.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/1.08, allocations: 7.458 MB / 0.5369 GB, free: 77.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001507/1.08, allocations: 39.62 kB / 0.537 GB, free: 77.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00071/1.081, allocations: 158.3 kB / 0.5371 GB, free: 77.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001238/1.082, allocations: 0.7384 MB / 0.5378 GB, free: 76.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01454/1.097, allocations: 5.709 MB / 0.5434 GB, free: 71.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04117/1.138, allocations: 35.32 MB / 0.5779 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004451/1.143, allocations: 1.661 MB / 0.5795 GB, free: 32.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005525/1.148, allocations: 2.909 MB / 0.5824 GB, free: 29.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.324e-05/1.148, allocations: 46.56 kB / 0.5824 GB, free: 29.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 6.382e-06/1.148, allocations: 3.984 kB / 0.5824 GB, free: 29.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.006842/1.155, allocations: 2.044 MB / 0.5844 GB, free: 27.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/1.155, allocations: 213.6 kB / 0.5846 GB, free: 27.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007071/1.162, allocations: 3.332 MB / 0.5879 GB, free: 24.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001579/1.163, allocations: 37.7 kB / 0.5879 GB, free: 24.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001946/1.165, allocations: 2.629 MB / 0.5905 GB, free: 21.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004825/1.165, allocations: 371.8 kB / 0.5908 GB, free: 21.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003629/1.166, allocations: 92 kB / 0.5909 GB, free: 21.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002848/1.166, allocations: 0.5092 MB / 0.5914 GB, free: 20.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002782/1.169, allocations: 1.216 MB / 0.5926 GB, free: 19.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004389/1.173, allocations: 4.559 MB / 0.5971 GB, free: 13.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004889/1.178, allocations: 2.318 MB / 0.5993 GB, free: 10.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.716e-05/1.178, allocations: 39.94 kB / 0.5994 GB, free: 10.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.01345/1.192, allocations: 5.4 MB / 0.6046 GB, free: 5.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.612e-05/1.192, allocations: 60.03 kB / 0.6047 GB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000149/1.192, allocations: 120 kB / 0.6048 GB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001728/1.192, allocations: 176 kB / 0.605 GB, free: 4.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006049/1.198, allocations: 1.127 MB / 0.6061 GB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001858/1.198, allocations: 235.1 kB / 0.6063 GB, free: 3.543 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005386/1.204, allocations: 0.6959 MB / 0.607 GB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009551/1.205, allocations: 355.9 kB / 0.6073 GB, free: 2.492 MB / 378.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 () * Number of clocked 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.003603/1.208, allocations: 1.715 MB / 0.609 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006979/1.209, allocations: 300.1 kB / 0.6093 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/1.21, allocations: 0.4969 MB / 0.6098 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.899e-05/1.211, allocations: 12 kB / 0.6098 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/1.211, allocations: 4 kB / 0.6098 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/1.211, allocations: 3.984 kB / 0.6098 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009363/1.22, allocations: 3.312 MB / 0.613 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2e-05/1.22, allocations: 4 kB / 0.613 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009953/1.221, allocations: 111.8 kB / 0.6131 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.761e-05/1.221, allocations: 12 kB / 0.6131 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-05/1.221, allocations: 12 kB / 0.6131 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.52e-05/1.221, allocations: 11.94 kB / 0.6132 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/1.221, allocations: 4 kB / 0.6132 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004244/1.225, allocations: 2.509 MB / 0.6156 GB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/1.227, allocations: 476.8 kB / 0.6161 GB, free: 9.246 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004781/1.227, allocations: 19.98 kB / 0.6161 GB, free: 9.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/1.229, allocations: 48.02 kB / 0.6161 GB, free: 9.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/1.229, allocations: 47.84 kB / 0.6162 GB, free: 9.133 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.231e-05/1.229, allocations: 24 kB / 0.6162 GB, free: 9.109 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006921/1.236, allocations: 2.384 MB / 0.6185 GB, free: 6.742 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.236, allocations: 0 / 0.6185 GB, free: 6.742 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005676/1.242, allocations: 0.8294 MB / 0.6193 GB, free: 5.91 MB / 394.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 () * Number of clocked 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.0004556/1.242, allocations: 147 kB / 0.6195 GB, free: 5.754 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007568/1.25, allocations: 2.806 MB / 0.6222 GB, free: 2.977 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/1.25, allocations: 4.062 kB / 0.6222 GB, free: 2.973 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/1.251, allocations: 415.5 kB / 0.6226 GB, free: 2.566 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002751/1.254, allocations: 356.7 kB / 0.623 GB, free: 2.219 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01966/1.274, allocations: 8.25 MB / 0.631 GB, free: 9.887 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005535/1.279, allocations: 2.761 MB / 0.6337 GB, free: 7.098 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001235/1.28, allocations: 263.4 kB / 0.634 GB, free: 6.84 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/1.281, allocations: 0 / 0.634 GB, free: 6.84 MB / 410.7 MB Notification: Performance of Templates: time 0.3893/1.67, allocations: 43.93 MB / 0.6769 GB, free: 99.79 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