Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001027/0.001027, allocations: 187 kB / 17.92 MB, free: 3.855 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.143/1.143, allocations: 205.1 MB / 223.7 MB, free: 8.48 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.0008678/0.0008678, allocations: 106.2 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007573/0.0007575, allocations: 39.94 kB / 327.2 MB, free: 320 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1772, allocations: 46.61 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.02082/0.1981, allocations: 33.51 MB / 407.3 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.2083, allocations: 6.623 MB / 414 MB, free: 9.254 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003529/0.2119, allocations: 139.7 kB / 414.1 MB, free: 9.117 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002438/0.2143, allocations: 1.8 MB / 415.9 MB, free: 7.312 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001915/0.2163, allocations: 1.234 MB / 417.1 MB, free: 6.074 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003202/0.2166, allocations: 191.8 kB / 417.3 MB, free: 5.887 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002904/0.2195, allocations: 4.302 MB / 421.6 MB, free: 1.578 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001683/0.2212, allocations: 2.118 MB / 423.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009015/0.2221, allocations: 0.8949 MB / 424.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001685/0.2238, allocations: 1.67 MB / 426.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002571/0.2241, allocations: 148 kB / 426.4 MB, free: 12.69 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007544/0.2248, allocations: 459.3 kB / 426.9 MB, free: 12.24 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008925/0.2258, allocations: 1.293 MB / 428.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001093/0.2269, allocations: 1.568 MB / 429.7 MB, free: 9.367 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0034/0.2303, allocations: 4.531 MB / 434.3 MB, free: 4.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2303, allocations: 4 kB / 434.3 MB, free: 4.816 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2303, allocations: 0 / 434.3 MB, free: 4.816 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.054e-05/0.2303, allocations: 0 / 434.3 MB, free: 4.816 MB / 314.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.004967/0.2353, allocations: 3.629 MB / 437.9 MB, free: 1.121 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.2354, allocations: 8.031 kB / 437.9 MB, free: 1.113 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004561/0.2399, allocations: 1.649 MB / 439.6 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002552/0.2425, allocations: 1.553 MB / 441.1 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.2426, allocations: 155.7 kB / 441.3 MB, free: 13.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/0.2429, allocations: 203.8 kB / 441.5 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007464/0.2504, allocations: 6.979 MB / 448.5 MB, free: 5.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.953e-05/0.2504, allocations: 27.75 kB / 448.5 MB, free: 5.941 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002113/0.2507, allocations: 103.9 kB / 448.6 MB, free: 5.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001876/0.2526, allocations: 1.559 MB / 450.1 MB, free: 4.281 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007559/0.2601, allocations: 5.478 MB / 455.6 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02402/0.2842, allocations: 27.25 MB / 482.9 MB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.2865, allocations: 1.588 MB / 484.5 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005458/0.287, allocations: 468.9 kB / 484.9 MB, free: 424 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003282/0.2903, allocations: 2.584 MB / 487.5 MB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.2904, allocations: 50.39 kB / 487.6 MB, free: 13.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 2.655e-06/0.2904, allocations: 4 kB / 487.6 MB, free: 13.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=80): time 0.003067/0.2934, allocations: 1.648 MB / 489.2 MB, free: 11.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.754e-05/0.2935, allocations: 183.9 kB / 489.4 MB, free: 11.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003965/0.2975, allocations: 3.71 MB / 493.1 MB, free: 8.031 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.989e-05/0.2975, allocations: 41.69 kB / 493.1 MB, free: 7.984 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001485/0.299, allocations: 2.718 MB / 495.9 MB, free: 5.227 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002323/0.2993, allocations: 359.9 kB / 496.2 MB, free: 4.871 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009039/0.3002, allocations: 0.9676 MB / 497.2 MB, free: 3.891 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.769e-05/0.3003, allocations: 301.4 kB / 497.5 MB, free: 3.594 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.3017, allocations: 1.196 MB / 498.7 MB, free: 2.391 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003126/0.3048, allocations: 4.568 MB / 0.4914 GB, free: 12.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005359/0.3102, allocations: 6.319 MB / 0.4976 GB, free: 4.082 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.583e-05/0.3103, allocations: 36 kB / 0.4976 GB, free: 4.047 MB / 394.7 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.137/0.4472, allocations: 5.445 MB / 0.503 GB, free: 118.6 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.4474, allocations: 57.38 kB / 0.503 GB, free: 118.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001312/0.4475, allocations: 121.5 kB / 0.5031 GB, free: 118.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001498/0.4477, allocations: 157.3 kB / 0.5033 GB, free: 118.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002634/0.4503, allocations: 1.098 MB / 0.5043 GB, free: 118.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001583/0.4505, allocations: 241 kB / 0.5046 GB, free: 118.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002567/0.4531, allocations: 0.6859 MB / 0.5052 GB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003111/0.4534, allocations: 316 kB / 0.5056 GB, free: 118.4 MB / 394.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001896/0.4553, allocations: 1.72 MB / 0.5072 GB, free: 118.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003727/0.4557, allocations: 297.8 kB / 0.5075 GB, free: 118.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000701/0.4564, allocations: 496.9 kB / 0.508 GB, free: 118 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.4564, allocations: 12.25 kB / 0.508 GB, free: 118 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.4564, allocations: 4.031 kB / 0.508 GB, free: 118 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.4564, allocations: 4.766 kB / 0.508 GB, free: 118 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.4604, allocations: 3.126 MB / 0.5111 GB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4605, allocations: 3.969 kB / 0.5111 GB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.4608, allocations: 105.3 kB / 0.5112 GB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.4609, allocations: 7.906 kB / 0.5112 GB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.361e-05/0.4609, allocations: 19.77 kB / 0.5112 GB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.4609, allocations: 11.38 kB / 0.5112 GB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4609, allocations: 7.469 kB / 0.5112 GB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00438/0.4653, allocations: 5.659 MB / 0.5167 GB, free: 113.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005086/0.4658, allocations: 428.5 kB / 0.5171 GB, free: 113.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/0.466, allocations: 20.16 kB / 0.5172 GB, free: 113.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007133/0.4667, allocations: 32.38 kB / 0.5172 GB, free: 113.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.327e-05/0.4668, allocations: 46.61 kB / 0.5172 GB, free: 113.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.4669, allocations: 30.89 kB / 0.5173 GB, free: 113.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002141/0.469, allocations: 2.368 MB / 0.5196 GB, free: 112.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.469, allocations: 0 / 0.5196 GB, free: 112.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003149/0.4722, allocations: 0.9924 MB / 0.5206 GB, free: 112.3 MB / 394.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 (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.0002076/0.4724, allocations: 145.6 kB / 0.5207 GB, free: 112.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002724/0.4751, allocations: 2.764 MB / 0.5234 GB, free: 110.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4752, allocations: 4 kB / 0.5234 GB, free: 110.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003622/0.4755, allocations: 411.1 kB / 0.5238 GB, free: 110.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.4771, allocations: 353.4 kB / 0.5241 GB, free: 109.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006927/0.484, allocations: 8.727 MB / 0.5326 GB, free: 101.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001722/0.4858, allocations: 2.698 MB / 0.5353 GB, free: 98.39 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002793/0.4886, allocations: 1.51 MB / 0.5368 GB, free: 96.87 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002758/0.4889, allocations: 197.7 kB / 0.5369 GB, free: 96.68 MB / 394.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4889, allocations: 0 / 0.5369 GB, free: 96.68 MB / 394.7 MB Notification: Performance of Templates: time 0.02949/0.5184, allocations: 22.14 MB / 0.5586 GB, free: 74.62 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches