Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001137, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 167.4 kB / 25.61 MB, free: 8.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9485/0.9485, allocations: 177 MB / 205.9 MB, free: 4.449 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1645/0.1645, allocations: 34.88 MB / 297.4 MB, free: 13.34 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Planar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.485e-06/2.485e-06, allocations: 0 / 380 MB, free: 22.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.1e-05/3.348e-05, allocations: 3.469 kB / 380 MB, free: 22.74 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.00989/0.009924, allocations: 14.03 MB / 394 MB, free: 8.652 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007339/0.01726, allocations: 4.3 MB / 398.3 MB, free: 4.34 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001464/0.01873, allocations: 91.62 kB / 398.4 MB, free: 4.25 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00206/0.02079, allocations: 2.355 MB / 400.8 MB, free: 1.887 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002412/0.0232, allocations: 2.127 MB / 402.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000894/0.02409, allocations: 0.6742 MB / 403.6 MB, free: 15.07 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003422/0.02751, allocations: 4.686 MB / 408.3 MB, free: 10.38 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002779/0.03029, allocations: 3.016 MB / 411.3 MB, free: 7.309 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002716/0.03301, allocations: 2.561 MB / 413.8 MB, free: 4.742 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001842/0.03485, allocations: 2.307 MB / 416.2 MB, free: 2.43 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000293/0.03514, allocations: 332 kB / 416.5 MB, free: 2.105 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.03634, allocations: 0.9985 MB / 417.5 MB, free: 1.105 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.0375, allocations: 2.076 MB / 419.6 MB, free: 15.02 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001219/0.03872, allocations: 1.292 MB / 420.8 MB, free: 13.73 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003421/0.04214, allocations: 4.887 MB / 425.7 MB, free: 8.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.04215, allocations: 0 / 425.7 MB, free: 8.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.04215, allocations: 3.938 kB / 425.7 MB, free: 8.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.635e-05/0.04218, allocations: 0 / 425.7 MB, free: 8.816 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.00506/0.04724, allocations: 5.421 MB / 431.2 MB, free: 3.324 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.04728, allocations: 8.031 kB / 431.2 MB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004481/0.05176, allocations: 2.011 MB / 433.2 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002311/0.05407, allocations: 1.97 MB / 435.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.05419, allocations: 246.6 kB / 435.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003721/0.05456, allocations: 328.1 kB / 435.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005808/0.06037, allocations: 5.753 MB / 441.5 MB, free: 8.258 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.107e-05/0.06044, allocations: 39.67 kB / 441.5 MB, free: 8.219 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002688/0.06071, allocations: 155.8 kB / 441.7 MB, free: 8.066 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002087/0.06279, allocations: 2.446 MB / 444.1 MB, free: 5.617 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004256/0.06705, allocations: 2.927 MB / 447 MB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02936/0.09641, allocations: 40.08 MB / 487.1 MB, free: 9.289 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003213/0.09963, allocations: 1.536 MB / 488.6 MB, free: 7.742 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005478/0.1002, allocations: 466 kB / 489.1 MB, free: 7.285 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005838/0.106, allocations: 4.133 MB / 493.2 MB, free: 3.121 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.106, allocations: 46.7 kB / 493.3 MB, free: 3.066 MB / 410.7 MB Notification: Performance of pre-optimization done (n=185): time 3.707e-06/0.106, allocations: 0 / 493.3 MB, free: 3.066 MB / 410.7 MB Notification: Performance of matching and sorting (n=198): time 0.1821/0.2881, allocations: 6.267 MB / 499.5 MB, free: 110.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.2881, allocations: 70.75 kB / 499.6 MB, free: 110.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003354/0.2915, allocations: 3.13 MB / 0.491 GB, free: 109.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.207e-05/0.2916, allocations: 49.98 kB / 0.491 GB, free: 109.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/0.2929, allocations: 3.636 MB / 0.4946 GB, free: 107.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003918/0.2932, allocations: 0.8101 MB / 0.4954 GB, free: 107.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001124/0.2944, allocations: 1.311 MB / 0.4966 GB, free: 107.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.634e-05/0.2944, allocations: 476.8 kB / 0.4971 GB, free: 106.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008511/0.2953, allocations: 0.57 MB / 0.4976 GB, free: 106.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002691/0.298, allocations: 5.77 MB / 0.5033 GB, free: 100 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003882/0.3018, allocations: 6.955 MB / 0.5101 GB, free: 93.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.614e-05/0.3019, allocations: 35.31 kB / 0.5101 GB, free: 93.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.004349/0.3062, allocations: 4.647 MB / 0.5146 GB, free: 90.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.443e-05/0.3063, allocations: 59.75 kB / 0.5147 GB, free: 90.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-05/0.3064, allocations: 124 kB / 0.5148 GB, free: 90.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002648/0.3066, allocations: 223.1 kB / 0.515 GB, free: 90.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001836/0.3085, allocations: 1.29 MB / 0.5163 GB, free: 88.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001259/0.3086, allocations: 243.1 kB / 0.5165 GB, free: 88.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/0.3103, allocations: 235.7 kB / 0.5167 GB, free: 88.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/0.3105, allocations: 308 kB / 0.517 GB, free: 88.18 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.001187/0.3117, allocations: 0.6464 MB / 0.5177 GB, free: 87.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002615/0.3119, allocations: 349.9 kB / 0.518 GB, free: 87.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.3132, allocations: 1.177 MB / 0.5192 GB, free: 86.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.908e-05/0.3132, allocations: 24 kB / 0.5192 GB, free: 86.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3132, allocations: 0 / 0.5192 GB, free: 86.17 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.3133, allocations: 7.5 kB / 0.5192 GB, free: 86.17 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005996/0.3192, allocations: 5.637 MB / 0.5247 GB, free: 81.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.3193, allocations: 11.94 kB / 0.5247 GB, free: 81.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005558/0.3198, allocations: 259.6 kB / 0.5249 GB, free: 80.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001509/0.32, allocations: 67.22 kB / 0.525 GB, free: 80.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.315e-05/0.32, allocations: 47.84 kB / 0.5251 GB, free: 80.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.154e-05/0.32, allocations: 19.94 kB / 0.5251 GB, free: 80.76 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/0.32, allocations: 15.94 kB / 0.5251 GB, free: 80.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.3216, allocations: 2.014 MB / 0.5271 GB, free: 78.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000258/0.3219, allocations: 281.9 kB / 0.5273 GB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001938/0.3221, allocations: 36 kB / 0.5274 GB, free: 78.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004627/0.3225, allocations: 35.98 kB / 0.5274 GB, free: 78.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.3227, allocations: 132.5 kB / 0.5275 GB, free: 78.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.46e-05/0.3227, allocations: 52 kB / 0.5276 GB, free: 78.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008084/0.3235, allocations: 1.22 MB / 0.5288 GB, free: 76.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3235, allocations: 4 kB / 0.5288 GB, free: 76.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002602/0.3261, allocations: 0.9999 MB / 0.5297 GB, free: 75.8 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.000333/0.3265, allocations: 197.3 kB / 0.5299 GB, free: 75.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002334/0.3288, allocations: 2.572 MB / 0.5324 GB, free: 73.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.3288, allocations: 4 kB / 0.5324 GB, free: 73.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005237/0.3293, allocations: 0.5804 MB / 0.533 GB, free: 72.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009604/0.3303, allocations: 348.2 kB / 0.5333 GB, free: 72.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008237/0.3385, allocations: 8.667 MB / 0.5418 GB, free: 63.24 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009202/0.3394, allocations: 1.404 MB / 0.5432 GB, free: 61.81 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000925/0.3404, allocations: 488.2 kB / 0.5436 GB, free: 61.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005846/0.341, allocations: 0.545 MB / 0.5442 GB, free: 60.79 MB / 410.7 MB Notification: Performance of SimCode: time 7.41e-07/0.341, allocations: 0 / 0.5442 GB, free: 60.79 MB / 410.7 MB Notification: Performance of Templates: time 0.03795/0.3789, allocations: 26.92 MB / 0.5705 GB, free: 34.34 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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: 4.352802454959601]