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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 108.4 kB / 18.36 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.364/1.364, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 55.94 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08807/0.08927, allocations: 46.62 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.00911/0.09841, allocations: 9.034 MB / 337.8 MB, free: 10.67 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00473/0.1032, allocations: 2.664 MB / 340.4 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008219/0.104, allocations: 51.88 kB / 340.5 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003108/0.1072, allocations: 1.814 MB / 342.3 MB, free: 6.125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00287/0.1101, allocations: 1.319 MB / 343.6 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004529/0.1105, allocations: 215.6 kB / 343.8 MB, free: 4.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002665/0.1132, allocations: 2.371 MB / 346.2 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002446/0.1157, allocations: 2.129 MB / 348.3 MB, free: 36 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00157/0.1173, allocations: 1.004 MB / 349.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002746/0.12, allocations: 2.338 MB / 351.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005214/0.1206, allocations: 192 kB / 351.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001087/0.1217, allocations: 475.4 kB / 352.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009913/0.1227, allocations: 1.289 MB / 353.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001329/0.124, allocations: 1.587 MB / 355.2 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005287/0.1293, allocations: 4.833 MB / 360 MB, free: 4.289 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1293, allocations: 8 kB / 360 MB, free: 4.281 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1294, allocations: 0 / 360 MB, free: 4.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001447/0.1295, allocations: 0 / 360 MB, free: 4.281 MB / 302.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.005387/0.1349, allocations: 3.626 MB / 363.7 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.135, allocations: 8.031 kB / 363.7 MB, free: 0.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004649/0.1396, allocations: 1.645 MB / 365.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002865/0.1425, allocations: 1.584 MB / 366.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.916e-05/0.1426, allocations: 147.8 kB / 367 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003211/0.1429, allocations: 203.8 kB / 367.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007892/0.1508, allocations: 6.982 MB / 374.2 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.113e-05/0.1509, allocations: 27.75 kB / 374.3 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002391/0.1512, allocations: 103.9 kB / 374.4 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002009/0.1532, allocations: 1.559 MB / 375.9 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1491/0.3023, allocations: 5.492 MB / 381.4 MB, free: 48.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02473/0.3271, allocations: 27.12 MB / 408.5 MB, free: 27.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002285/0.3294, allocations: 1.638 MB / 410.2 MB, free: 26.53 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000513/0.3299, allocations: 0.4982 MB / 410.7 MB, free: 26.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00332/0.3332, allocations: 2.674 MB / 413.3 MB, free: 24.03 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.3333, allocations: 43.36 kB / 413.4 MB, free: 23.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=89): time 2.294e-06/0.3333, allocations: 0 / 413.4 MB, free: 23.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=89): time 0.003126/0.3364, allocations: 1.768 MB / 415.1 MB, free: 23.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.3365, allocations: 216.2 kB / 415.4 MB, free: 22.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003657/0.3401, allocations: 3.666 MB / 419 MB, free: 21.06 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.223e-05/0.3402, allocations: 37.61 kB / 419.1 MB, free: 21.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.3413, allocations: 2.685 MB / 421.7 MB, free: 18.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.3415, allocations: 387.2 kB / 422.1 MB, free: 18.12 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007753/0.3422, allocations: 0.9595 MB / 423.1 MB, free: 17.15 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.292e-05/0.3423, allocations: 313.1 kB / 423.4 MB, free: 16.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.3436, allocations: 1.2 MB / 424.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002307/0.3459, allocations: 4.534 MB / 429.1 MB, free: 9.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004064/0.35, allocations: 6.288 MB / 435.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.558e-05/0.35, allocations: 32 kB / 435.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.00703/0.3571, allocations: 5.443 MB / 440.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.247e-05/0.3571, allocations: 60.2 kB / 440.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.241e-05/0.3572, allocations: 124 kB / 441.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001239/0.3574, allocations: 156 kB / 441.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002648/0.36, allocations: 1.084 MB / 442.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001565/0.3602, allocations: 231.1 kB / 442.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002741/0.3629, allocations: 0.6801 MB / 443.2 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002994/0.3632, allocations: 316 kB / 443.5 MB, free: 9.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * 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 (589): * Single equations (assignments): 585 * Array equations: 4 * 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.00191/0.3652, allocations: 1.711 MB / 445.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003805/0.3656, allocations: 300.1 kB / 445.5 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007051/0.3663, allocations: 0.4892 MB / 446 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-05/0.3663, allocations: 20 kB / 446 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.3663, allocations: 8 kB / 446 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.677e-06/0.3663, allocations: 7.922 kB / 446 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004967/0.3713, allocations: 3.144 MB / 449.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.3713, allocations: 4 kB / 449.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004264/0.3718, allocations: 107.8 kB / 449.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/0.3718, allocations: 8 kB / 449.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.141e-05/0.3718, allocations: 16 kB / 449.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.426e-06/0.3719, allocations: 7.984 kB / 449.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.3719, allocations: 7.938 kB / 449.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.3739, allocations: 2.217 MB / 451.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006869/0.3746, allocations: 428.9 kB / 452 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002215/0.3748, allocations: 27.91 kB / 452 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008291/0.3757, allocations: 31.97 kB / 452 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.522e-05/0.3758, allocations: 43.83 kB / 452.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.307e-05/0.3758, allocations: 34.17 kB / 452.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002727/0.3786, allocations: 2.337 MB / 454.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3786, allocations: 0 / 454.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003637/0.3822, allocations: 0.8047 MB / 455.2 MB, free: 13.45 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (58): * Single equations (assignments): 54 * Array equations: 4 * 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.0003318/0.3826, allocations: 152.4 kB / 455.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003825/0.3864, allocations: 2.821 MB / 458.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3864, allocations: 0 / 458.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005088/0.3869, allocations: 437.7 kB / 458.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.3887, allocations: 389 kB / 459 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008873/0.3976, allocations: 6.669 MB / 465.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002469/0.4001, allocations: 2.679 MB / 468.4 MB, free: 292 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002973/0.4031, allocations: 1.486 MB / 469.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003788/0.4035, allocations: 203.4 kB / 470.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4035, allocations: 4 kB / 470.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of Templates: time 0.03954/0.443, allocations: 17.8 MB / 487.9 MB, free: 12.81 MB / 382.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Surfaces/Surfaces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches