Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 168.7 kB / 24.91 MB, free: 9.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9867/0.9867, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2776/0.2776, allocations: 34.26 MB / 296.1 MB, free: 0.7188 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 325.2 MB, free: 7.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.004e-05/2.151e-05, allocations: 3.156 kB / 325.2 MB, free: 7.676 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01024/0.01026, allocations: 14.04 MB / 339.3 MB, free: 9.57 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00783/0.01809, allocations: 4.484 MB / 343.8 MB, free: 5.07 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001951/0.02005, allocations: 87.69 kB / 343.9 MB, free: 4.984 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002916/0.02296, allocations: 2.382 MB / 346.2 MB, free: 2.594 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003664/0.02663, allocations: 2.139 MB / 348.4 MB, free: 456 kB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.0277, allocations: 0.6782 MB / 349.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004637/0.03234, allocations: 4.679 MB / 353.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003958/0.0363, allocations: 3.102 MB / 356.8 MB, free: 7.906 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005169/0.04147, allocations: 2.553 MB / 359.4 MB, free: 5.348 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0031/0.04457, allocations: 2.186 MB / 361.6 MB, free: 3.156 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000855/0.04542, allocations: 332 kB / 361.9 MB, free: 2.832 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00159/0.04701, allocations: 0.9946 MB / 362.9 MB, free: 1.836 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001501/0.04851, allocations: 2.076 MB / 365 MB, free: 15.75 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001738/0.05025, allocations: 1.289 MB / 366.3 MB, free: 14.46 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005303/0.05555, allocations: 4.887 MB / 371.1 MB, free: 9.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.05556, allocations: 0 / 371.1 MB, free: 9.555 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.05556, allocations: 4 kB / 371.1 MB, free: 9.551 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002568/0.05582, allocations: 0 / 371.1 MB, free: 9.551 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.006681/0.0625, allocations: 4.726 MB / 375.9 MB, free: 4.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.06254, allocations: 8.031 kB / 375.9 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0039/0.06644, allocations: 1.526 MB / 377.4 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002371/0.06881, allocations: 1.763 MB / 379.2 MB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.06893, allocations: 246.6 kB / 379.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004037/0.06934, allocations: 332.1 kB / 379.7 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006795/0.07613, allocations: 5.35 MB / 385.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.07624, allocations: 31.75 kB / 385.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002974/0.07653, allocations: 151.8 kB / 385.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002225/0.07876, allocations: 2.458 MB / 387.7 MB, free: 8.344 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006276/0.08503, allocations: 2.986 MB / 390.7 MB, free: 5.332 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02968/0.1147, allocations: 30.14 MB / 420.8 MB, free: 6.105 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003307/0.118, allocations: 1.566 MB / 422.4 MB, free: 4.527 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004844/0.1185, allocations: 383.3 kB / 422.8 MB, free: 4.156 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006429/0.1249, allocations: 3.935 MB / 426.7 MB, free: 196 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.125, allocations: 43.88 kB / 426.8 MB, free: 144 kB / 394.7 MB Notification: Performance of pre-optimization done (n=185): time 4.118e-06/0.125, allocations: 0 / 426.8 MB, free: 144 kB / 394.7 MB Notification: Performance of matching and sorting (n=198): time 0.01168/0.1367, allocations: 5.743 MB / 432.5 MB, free: 10.37 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.1367, allocations: 72.72 kB / 432.6 MB, free: 10.28 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002574/0.1393, allocations: 2.806 MB / 435.4 MB, free: 7.449 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.663e-05/0.1394, allocations: 49.69 kB / 435.4 MB, free: 7.395 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001649/0.141, allocations: 3.325 MB / 438.8 MB, free: 4.035 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006936/0.1417, allocations: 0.7751 MB / 439.5 MB, free: 3.254 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009151/0.1426, allocations: 1.113 MB / 440.6 MB, free: 2.129 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.629e-05/0.1427, allocations: 301.1 kB / 440.9 MB, free: 1.832 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.1439, allocations: 0.7346 MB / 441.7 MB, free: 1.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1691/0.313, allocations: 4.09 MB / 445.8 MB, free: 90.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005566/0.3186, allocations: 5.327 MB / 451.1 MB, free: 86.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001937/0.3188, allocations: 34.47 kB / 451.1 MB, free: 86.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.006391/0.3252, allocations: 3.919 MB / 455 MB, free: 86.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.463e-05/0.3252, allocations: 57.81 kB / 455.1 MB, free: 86.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001349/0.3254, allocations: 125.1 kB / 455.2 MB, free: 86.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003447/0.3257, allocations: 219.3 kB / 455.4 MB, free: 86.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002195/0.3279, allocations: 1.292 MB / 456.7 MB, free: 85.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001357/0.328, allocations: 237.6 kB / 457 MB, free: 85.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002504/0.3305, allocations: 226.5 kB / 457.2 MB, free: 85.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003862/0.3309, allocations: 312.9 kB / 457.5 MB, free: 85.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 560 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (736): * Single equations (assignments): 728 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002053/0.333, allocations: 0.5997 MB / 458.1 MB, free: 85.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003754/0.3333, allocations: 196.5 kB / 458.3 MB, free: 85.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.3346, allocations: 0.9909 MB / 459.3 MB, free: 85.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.511e-05/0.3347, allocations: 24.44 kB / 459.3 MB, free: 85.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3347, allocations: 0 / 459.3 MB, free: 85.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.3347, allocations: 11.97 kB / 459.3 MB, free: 85.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005591/0.3403, allocations: 4.656 MB / 464 MB, free: 84.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.3403, allocations: 11.16 kB / 464 MB, free: 84.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005832/0.3409, allocations: 250.8 kB / 464.2 MB, free: 84.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002984/0.3412, allocations: 225.9 kB / 464.4 MB, free: 84.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-05/0.3412, allocations: 33.09 kB / 464.5 MB, free: 84.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-05/0.3412, allocations: 21.22 kB / 464.5 MB, free: 84.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.306e-06/0.3413, allocations: 20 kB / 464.5 MB, free: 84.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.3428, allocations: 1.625 MB / 466.1 MB, free: 83.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003541/0.3431, allocations: 270 kB / 466.4 MB, free: 83.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002139/0.3434, allocations: 37.66 kB / 466.4 MB, free: 83.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000478/0.3438, allocations: 36.2 kB / 466.5 MB, free: 83.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.344, allocations: 129.9 kB / 466.6 MB, free: 83.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.096e-05/0.344, allocations: 47.62 kB / 466.6 MB, free: 83.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008222/0.3449, allocations: 0.9908 MB / 467.6 MB, free: 83.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3449, allocations: 5.938 kB / 467.6 MB, free: 83.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003344/0.3482, allocations: 0.9947 MB / 468.6 MB, free: 82.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * 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 (152): * Single equations (assignments): 144 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000341/0.3485, allocations: 175.8 kB / 468.8 MB, free: 82.78 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003074/0.3516, allocations: 2.356 MB / 471.2 MB, free: 80.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001379/0.3518, allocations: 92.16 kB / 471.3 MB, free: 80.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005376/0.3523, allocations: 0.4996 MB / 471.8 MB, free: 80.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001924/0.3542, allocations: 0.6985 MB / 472.5 MB, free: 80.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.3645, allocations: 8.426 MB / 480.9 MB, free: 72.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/0.3657, allocations: 1.39 MB / 482.3 MB, free: 72.04 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00146/0.3672, allocations: 484.8 kB / 482.7 MB, free: 71.69 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007476/0.3679, allocations: 0.5137 MB / 483.3 MB, free: 71.21 MB / 410.7 MB Notification: Performance of SimCode: time 2.935e-06/0.3679, allocations: 0 / 483.3 MB, free: 71.21 MB / 410.7 MB Notification: Performance of Templates: time 0.04087/0.4088, allocations: 26.23 MB / 0.4975 GB, free: 45.77 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9781983117572963]