Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001528/0.001528, allocations: 202.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.5 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007111/0.0007111, allocations: 103.2 kB / 296.8 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002296/0.0002296, allocations: 8 kB / 356.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1946, allocations: 51.29 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.01987/0.2145, allocations: 30.3 MB / 438.3 MB, free: 13.34 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01285/0.2274, allocations: 6.353 MB / 444.7 MB, free: 6.98 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005607/0.233, allocations: 143.6 kB / 444.8 MB, free: 6.84 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004336/0.2374, allocations: 1.547 MB / 446.4 MB, free: 5.285 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.011/0.2484, allocations: 4.58 MB / 451 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.2498, allocations: 219.7 kB / 451.2 MB, free: 484 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.03723/0.2871, allocations: 31.17 MB / 482.4 MB, free: 1.258 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003458/0.2906, allocations: 2.681 MB / 485 MB, free: 14.49 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/0.2918, allocations: 0.8327 MB / 485.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001664/0.2935, allocations: 1.371 MB / 487.2 MB, free: 12.28 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003029/0.2938, allocations: 96 kB / 487.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/0.2948, allocations: 0.5343 MB / 487.9 MB, free: 11.65 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001111/0.2959, allocations: 1.266 MB / 489.1 MB, free: 10.38 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001156/0.2971, allocations: 1.352 MB / 490.5 MB, free: 9.016 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003017/0.3001, allocations: 3.519 MB / 494 MB, free: 5.488 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3001, allocations: 0 / 494 MB, free: 5.488 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3001, allocations: 0 / 494 MB, free: 5.488 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.027e-05/0.3002, allocations: 0 / 494 MB, free: 5.488 MB / 362.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.004681/0.3049, allocations: 2.815 MB / 496.8 MB, free: 2.609 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.305, allocations: 12.03 kB / 496.8 MB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005612/0.3106, allocations: 1.72 MB / 498.5 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002747/0.3134, allocations: 1.483 MB / 0.4883 GB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.577e-05/0.3135, allocations: 155.7 kB / 0.4885 GB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003638/0.3139, allocations: 199.9 kB / 0.4887 GB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009622/0.3235, allocations: 6.959 MB / 0.4954 GB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.191e-05/0.3236, allocations: 31.75 kB / 0.4955 GB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002557/0.3239, allocations: 95.89 kB / 0.4956 GB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002102/0.326, allocations: 1.566 MB / 0.4971 GB, free: 5.789 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009108/0.3351, allocations: 5.454 MB / 0.5024 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1847/0.5198, allocations: 27.18 MB / 0.529 GB, free: 73.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002132/0.522, allocations: 1.587 MB / 0.5305 GB, free: 72.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005149/0.5225, allocations: 476.8 kB / 0.531 GB, free: 72.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002823/0.5253, allocations: 2.572 MB / 0.5335 GB, free: 69.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.5254, allocations: 46.42 kB / 0.5335 GB, free: 69.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 2.535e-06/0.5254, allocations: 0 / 0.5335 GB, free: 69.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=80): time 0.003051/0.5284, allocations: 1.639 MB / 0.5351 GB, free: 69.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.5285, allocations: 188 kB / 0.5353 GB, free: 68.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003446/0.532, allocations: 3.427 MB / 0.5387 GB, free: 65.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.468e-05/0.532, allocations: 37.83 kB / 0.5387 GB, free: 65.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.5331, allocations: 2.59 MB / 0.5412 GB, free: 62.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/0.5333, allocations: 366.7 kB / 0.5416 GB, free: 62.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.5335, allocations: 92.94 kB / 0.5417 GB, free: 62.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.5336, allocations: 0.509 MB / 0.5422 GB, free: 61.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/0.535, allocations: 1.18 MB / 0.5433 GB, free: 60.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002349/0.5374, allocations: 4.545 MB / 0.5478 GB, free: 54.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004419/0.5418, allocations: 6.3 MB / 0.5539 GB, free: 46.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.643e-05/0.5419, allocations: 36 kB / 0.5539 GB, free: 46.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.007135/0.5491, allocations: 5.38 MB / 0.5592 GB, free: 40.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.849e-05/0.5491, allocations: 56 kB / 0.5592 GB, free: 40.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.891e-05/0.5492, allocations: 127.9 kB / 0.5594 GB, free: 40.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001003/0.5493, allocations: 156 kB / 0.5595 GB, free: 40.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002698/0.552, allocations: 1.107 MB / 0.5606 GB, free: 39.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001126/0.5522, allocations: 231.1 kB / 0.5608 GB, free: 39.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/0.555, allocations: 0.7012 MB / 0.5615 GB, free: 38.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003329/0.5553, allocations: 316 kB / 0.5618 GB, free: 38.21 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001676/0.557, allocations: 1.677 MB / 0.5634 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003016/0.5573, allocations: 268.4 kB / 0.5637 GB, free: 36.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006341/0.558, allocations: 474.3 kB / 0.5642 GB, free: 35.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/0.558, allocations: 13.17 kB / 0.5642 GB, free: 35.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.558, allocations: 0 / 0.5642 GB, free: 35.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.558, allocations: 7.984 kB / 0.5642 GB, free: 35.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003958/0.562, allocations: 3.035 MB / 0.5671 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/0.562, allocations: 4 kB / 0.5671 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004384/0.5625, allocations: 107.8 kB / 0.5672 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.117e-06/0.5625, allocations: 4 kB / 0.5672 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/0.5625, allocations: 16 kB / 0.5673 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.5626, allocations: 11.94 kB / 0.5673 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.5626, allocations: 4 kB / 0.5673 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/0.5642, allocations: 2.007 MB / 0.5692 GB, free: 30.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005713/0.5648, allocations: 417.3 kB / 0.5696 GB, free: 30.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002078/0.565, allocations: 20.06 kB / 0.5697 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007228/0.5658, allocations: 27.97 kB / 0.5697 GB, free: 29.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.31e-05/0.5659, allocations: 53.94 kB / 0.5697 GB, free: 29.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.44e-05/0.5659, allocations: 27.98 kB / 0.5698 GB, free: 29.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0024/0.5683, allocations: 2.165 MB / 0.5719 GB, free: 27.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5683, allocations: 0 / 0.5719 GB, free: 27.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003126/0.5715, allocations: 0.819 MB / 0.5727 GB, free: 26.93 MB / 378.7 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 (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.000316/0.5718, allocations: 160.1 kB / 0.5728 GB, free: 26.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003265/0.5751, allocations: 2.756 MB / 0.5755 GB, free: 24.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5751, allocations: 4 kB / 0.5755 GB, free: 24.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004155/0.5755, allocations: 403.5 kB / 0.5759 GB, free: 23.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00291/0.5784, allocations: 355.8 kB / 0.5762 GB, free: 23.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008594/0.587, allocations: 8.213 MB / 0.5843 GB, free: 15.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001853/0.5889, allocations: 2.55 MB / 0.5868 GB, free: 12.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004806/0.5894, allocations: 223.4 kB / 0.587 GB, free: 12.24 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5894, allocations: 3.938 kB / 0.587 GB, free: 12.23 MB / 378.7 MB Notification: Performance of Templates: time 0.07636/0.6658, allocations: 63.27 MB / 0.6488 GB, free: 12.97 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Surfaces/Surfaces.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches